libdvbv5  1.16.3
Library to work with Digital TV devices on Linux
desc_extension.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2014 - Mauro Carvalho Chehab <m.chehab@samsung.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation version 2.1 of the License.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
17  *
18  */
19 
39 #ifndef _EXTENSION_DESC_H
40 #define _EXTENSION_DESC_H
41 
42 #include <libdvbv5/descriptors.h>
43 
44 struct dvb_v5_fe_parms;
45 
92  CP_descriptor = 0x02,
102 };
103 
116  uint8_t type;
117  uint8_t length;
118  struct dvb_desc *next;
119 
120  uint8_t extension_code;
121 
123 } __attribute__((packed));
124 
125 
135 typedef int (*dvb_desc_ext_init_func) (struct dvb_v5_fe_parms *parms,
136  const uint8_t *buf,
137  struct dvb_extension_descriptor *ext,
138  void *desc);
148 typedef void (*dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms,
149  const struct dvb_extension_descriptor *ext,
150  const void *desc);
157 typedef void (*dvb_desc_ext_free_func) (const void *desc);
158 
172  const char *name;
176  ssize_t size;
177 };
178 
179 
180 #ifdef __cplusplus
181 extern "C" {
182 #endif
183 
200  const uint8_t *buf, struct dvb_desc *desc);
201 
210  const struct dvb_desc *desc);
211 
219 
220 #ifdef __cplusplus
221 }
222 #endif
223 
224 #endif
target_region_descriptor
@ target_region_descriptor
target region descriptor
Definition: desc_extension.h:99
service_relocated_descriptor
@ service_relocated_descriptor
service relocated descriptor
Definition: desc_extension.h:101
dvb_ext_descriptor::init
dvb_desc_ext_init_func init
Definition: desc_extension.h:173
dvb_extension_descriptor::descriptor
struct dvb_desc * descriptor
Definition: desc_extension.h:122
target_region_name_descriptor
@ target_region_name_descriptor
target region name descriptor
Definition: desc_extension.h:100
dvb_extension_descriptor::length
uint8_t length
Definition: desc_extension.h:117
dvb_ext_descriptor::print
dvb_desc_ext_print_func print
Definition: desc_extension.h:174
dvb_ext_descriptor::free
dvb_desc_ext_free_func free
Definition: desc_extension.h:175
dvb_extension_descriptor::extension_code
uint8_t extension_code
Definition: desc_extension.h:120
dvb_desc_ext_free_func
void(* dvb_desc_ext_free_func)(const void *desc)
Function prototype for the extended descriptors parsing free code.
Definition: desc_extension.h:157
CP_descriptor
@ CP_descriptor
Content Protection descriptor.
Definition: desc_extension.h:92
dvb_extension_descriptor
Structure containing the extended descriptors.
Definition: desc_extension.h:115
dvb_extension_descriptor_init
int dvb_extension_descriptor_init(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Initializes and parses the extended descriptor.
dvb_v5_fe_parms
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117
dvb_desc_ext_init_func
int(* dvb_desc_ext_init_func)(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_extension_descriptor *ext, void *desc)
Function prototype for the extended descriptors parsing init code.
Definition: desc_extension.h:135
image_icon_descriptor
@ image_icon_descriptor
image icon descriptor
Definition: desc_extension.h:90
extension_descriptors
extension_descriptors
List containing all extended descriptors used by Digital TV MPEG-TS as defined at ETSI EN 300 468 V1....
Definition: desc_extension.h:89
dvb_extension_descriptor_print
void dvb_extension_descriptor_print(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Prints the content of the extended descriptor.
T2_delivery_system_descriptor
@ T2_delivery_system_descriptor
DVB-T2 delivery system descriptor.
Definition: desc_extension.h:94
dvb_ext_descriptor
Structure that describes the parser functions for the extended descriptors.
Definition: desc_extension.h:171
dvb_ext_descriptor::name
const char * name
Definition: desc_extension.h:172
dvb_desc_ext_print_func
void(* dvb_desc_ext_print_func)(struct dvb_v5_fe_parms *parms, const struct dvb_extension_descriptor *ext, const void *desc)
Function prototype for the extended descriptors parsing print code.
Definition: desc_extension.h:148
dvb_extension_descriptor::next
struct dvb_desc * next
Definition: desc_extension.h:118
dvb_extension_descriptor::type
uint8_t type
Definition: desc_extension.h:116
message_descriptor
@ message_descriptor
message descriptor
Definition: desc_extension.h:98
descriptors.h
Provides a way to handle MPEG-TS descriptors found on Digital TV streams.
SH_delivery_system_descriptor
@ SH_delivery_system_descriptor
DVB-SH delivery system descriptor.
Definition: desc_extension.h:95
supplementary_audio_descriptor
@ supplementary_audio_descriptor
supplementary audio descriptor
Definition: desc_extension.h:96
CP_identifier_descriptor
@ CP_identifier_descriptor
Content Protection identifier descriptor.
Definition: desc_extension.h:93
dvb_desc
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
dvb_extension_descriptor_free
void dvb_extension_descriptor_free(struct dvb_desc *desc)
Frees all data allocated by the extended descriptor.
dvb_ext_descriptor::size
ssize_t size
Definition: desc_extension.h:176
network_change_notify_descriptor
@ network_change_notify_descriptor
network change notify descriptor
Definition: desc_extension.h:97
cpcm_delivery_signalling_descriptor
@ cpcm_delivery_signalling_descriptor
Content Protection/Copy Management (CPCM) delivery signalling descriptor.
Definition: desc_extension.h:91