libdvbv5 1.22.1
Library to work with Digital TV devices on Linux
descriptors.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2012 - Mauro Carvalho Chehab
3 * Copyright (c) 2012-2014 - Andre Roth <neolynx@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation version 2.1 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18 */
19
44#ifndef _DESCRIPTORS_H
45#define _DESCRIPTORS_H
46
47#include <unistd.h>
48#include <stdint.h>
49#include <arpa/inet.h>
50
55#define DVB_MAX_PAYLOAD_PACKET_SIZE 4096
56
61#define DVB_CRC_SIZE 4
62
63
64#ifndef _DOXYGEN
65struct dvb_v5_fe_parms;
66#endif
67
79typedef void (*dvb_table_init_func)(struct dvb_v5_fe_parms *parms,
80 const uint8_t *buf, ssize_t buflen,
81 void **table);
82
88
89#ifndef _DOXYGEN
90#define bswap16(b) do {\
91 b = ntohs(b); \
92} while (0)
93
94#define bswap32(b) do {\
95 b = ntohl(b); \
96} while (0)
97
98/* Deprecated */
99#define DVB_DESC_HEADER() \
100 uint8_t type; \
101 uint8_t length; \
102 struct dvb_desc *next
103
104#endif /* _DOXYGEN */
105
117struct dvb_desc {
118 uint8_t type;
119 uint8_t length;
120 struct dvb_desc *next;
121
122 uint8_t data[];
123} __attribute__((packed));
124
125#ifndef _DOXYGEN
126
127#define dvb_desc_foreach( _desc, _tbl ) \
128 if (_tbl && _tbl->descriptor) \
129 for( struct dvb_desc *_desc = _tbl->descriptor; _desc; _desc = _desc->next ) \
130
131#define dvb_desc_find(_struct, _desc, _tbl, _type) \
132 if (_tbl && _tbl->descriptor) \
133 for( _struct *_desc = (_struct *) _tbl->descriptor; _desc; _desc = (_struct *) _desc->next ) \
134 if(_desc->type == _type) \
135
136#endif /* _DOXYGEN */
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
148uint32_t dvb_bcd(uint32_t bcd);
149
159void dvb_hexdump(struct dvb_v5_fe_parms *parms, const char *prefix,
160 const unsigned char *buf, int len);
161
183int dvb_desc_parse(struct dvb_v5_fe_parms *parms, const uint8_t *buf,
184 uint16_t buflen, struct dvb_desc **head_desc);
185
192void dvb_desc_free (struct dvb_desc **list);
193
201void dvb_desc_print(struct dvb_v5_fe_parms *parms, struct dvb_desc *desc);
202
203#ifdef __cplusplus
204}
205#endif
206
215typedef int (*dvb_desc_init_func) (struct dvb_v5_fe_parms *parms,
216 const uint8_t *buf, struct dvb_desc *desc);
217
225typedef void (*dvb_desc_print_func)(struct dvb_v5_fe_parms *parms,
226 const struct dvb_desc *desc);
227
234typedef void (*dvb_desc_free_func) (struct dvb_desc *desc);
235
250 const char *name;
254 ssize_t size;
255};
256
261extern const struct dvb_descriptor dvb_descriptors[];
262
593 /* ISO/IEC 13818-1 */
611
630
631 /* ETSI EN 300 468 V1.11.1 (2010-04) */
632
697
698 /* SCTE 35 2004 */
700
703 /* From http://www.etherguidesystems.com/Help/SDOs/ATSC/Semantics/Descriptors/Default.aspx */
705
706 /* From http://www.coolstf.com/tsreader/descriptors.html */
708
709 /* ISDB Descriptors, as defined on ABNT NBR 15603-1 2007 */
710
714
754
755 /* ATSC descriptors - ATSC A/65:2009 spec */
769};
770
771
772/*
773 * NOTE: this is here just to avoid API break. There was a typo
774 * on the name of this descriptor
775 */
776#define TS_Information_descriptior TS_Information_descriptor
777
778/* Please see desc_extension.h for extension_descriptor types */
779
780#endif
@ video_window_descriptor
video_window descriptor - ISO/IEC 13818-1
Definition: descriptors.h:600
@ terrestrial_delivery_system_descriptor
terrestrial_delivery_system descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:659
@ fmxbuffersize_descriptor
fmxbuffersize descriptor - ISO/IEC 13818-1
Definition: descriptors.h:619
@ atsc_time_shifted_service_descriptor
atsc_time_shifted_service descriptor - ATSC A/65:2009
Definition: descriptors.h:762
@ cell_frequency_link_descriptor
cell_frequency_link descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:678
@ download_content_descriptor
download_content descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:724
@ FTA_content_management_descriptor
FTA_content_management descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:695
@ data_broadcast_descriptor
data_broadcast descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:669
@ AVC_video_descriptor
AVC_video descriptor - ISO/IEC 13818-1.
Definition: descriptors.h:625
@ content_labeling_descriptor
content_labeling descriptor - ISO/IEC 13818-1
Definition: descriptors.h:621
@ muxcode_descriptor
muxcode descriptor - ISO/IEC 13818-1
Definition: descriptors.h:618
@ adaptation_field_data_descriptor
adaptation_field_data descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:681
@ multilingual_service_name_descriptor
multilingual_service_name descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:662
@ logical_channel_number_descriptor
logical_channel_number descriptor - SCTE 35 2004
Definition: descriptors.h:707
@ short_node_information_descriptor
short_node_information descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:734
@ AAC_descriptor
AAC descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:693
@ LDT_linkage_descriptor
LDT_linkage descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:743
@ subtitling_descriptor
subtitling descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:658
@ service_list_descriptor
service_list descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:634
@ metadata_std_descriptor
metadata_std descriptor - ISO/IEC 13818-1
Definition: descriptors.h:624
@ reference_descriptor
reference descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:732
@ telephone_descriptor
telephone descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:656
@ maximum_bitrate_descriptor
maximum_bitrate descriptor - ISO/IEC 13818-1
Definition: descriptors.h:606
@ network_identifier_descriptor
network_identifier descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:717
@ atsc_DCC_arriving_request_descriptor
atsc_DCC_arriving_request descriptor - ATSC A/65:2009
Definition: descriptors.h:765
@ node_relation_descriptor
node_relation descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:733
@ multilingual_network_name_descriptor
multilingual_network_name descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:660
@ mpeg4_audio_descriptor
mpeg4_audio descriptor - ISO/IEC 13818-1
Definition: descriptors.h:613
@ partial_transport_stream_time_descriptor
partial_transport_stream_time descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:718
@ parental_rating_descriptor
parental_rating descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:654
@ series_descriptor
series descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:736
@ SI_parameter_descriptor
SI_parameter descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:738
@ linkage_descriptor
linkage descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:643
@ frequency_list_descriptor
frequency_list descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:667
@ network_name_descriptor
network_name descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:633
@ PDC_descriptor
PDC descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:674
@ hierarchical_transmission_descriptor
hierarchical_transmission descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:715
@ broadcaster_Name_Descriptor
broadcaster_Name descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:739
@ data_broadcast_id_descriptor
data_broadcast_id descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:671
@ service_descriptor
service descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:641
@ carousel_compatible_composite_descriptor
carousel_compatible_composite descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:747
@ SI_prime_TS_descriptor
SI_prime_transport_stream descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:741
@ country_availability_descriptor
country_availability descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:642
@ basic_local_event_descriptor
basic_local_event descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:731
@ content_descriptor
content descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:653
@ CA_identifier_descriptor
CA_identifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:652
@ teletext_descriptor
teletext descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:655
@ related_content_descriptor
related_content descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:685
@ bouquet_name_descriptor
bouquet_name descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:640
@ default_authority_descriptor
default_authority descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:684
@ video_decode_control_descriptor
video_decode_control descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:723
@ conditional_playback_descriptor
conditional_playback descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:748
@ partial_reception_descriptor
partial_reception descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:750
@ atsc_redistribution_control_descriptor
atsc_redistribution_control descriptor - ATSC A/65:2009
Definition: descriptors.h:766
@ ds_alignment_descriptor
ds_alignment descriptor - ISO/IEC 13818-1
Definition: descriptors.h:598
@ multilingual_component_descriptor
multilingual_component descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:663
@ target_background_grid_descriptor
target_background_grid descriptor - ISO/IEC 13818-1
Definition: descriptors.h:599
@ service_move_descriptor
service_move descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:665
@ logo_transmission_descriptor
logo_transmission descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:730
@ atsc_genre_descriptor
atsc_genre descriptor - ATSC A/65:2009
Definition: descriptors.h:768
@ cable_delivery_system_descriptor
cable_delivery_system descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:637
@ multilingual_bouquet_name_descriptor
multilingual_bouquet_name descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:661
@ DSNG_descriptor
DSNG descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:673
@ component_name_descriptor
component_name descriptor - SCTE 35 2004
Definition: descriptors.h:704
@ flexmux_timing_descriptor
flexmux_timing descriptor - ISO/IEC 13818-1
Definition: descriptors.h:629
@ enhanced_AC_3_descriptor
enhanced_AC_3 descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:691
@ local_time_offset_descriptor
local_time_offset descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:657
@ ibp_descriptor
ibp descriptor - ISO/IEC 13818-1
Definition: descriptors.h:610
@ deferred_association_tags_descriptor
deferred_association_tags descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:713
@ atsc_ATSC_private_information_descriptor
atsc_ATSC_private_information descriptor - ATSC A/65:2009
Definition: descriptors.h:767
@ hyperlink_descriptor
hyperlink descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:720
@ external_es_id_descriptor
external_es_id descriptor - ISO/IEC 13818-1
Definition: descriptors.h:617
@ S2_satellite_delivery_system_descriptor
S2_satellite_delivery_system descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:690
@ mosaic_descriptor
mosaic descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:650
@ DTS_descriptor
DTS descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:692
@ announcement_support_descriptor
announcement_support descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:679
@ transport_stream_descriptor
transport_stream descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:672
@ system_clock_descriptor
system_clock descriptor - ISO/IEC 13818-1
Definition: descriptors.h:603
@ NVOD_reference_descriptor
NVOD_reference descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:644
@ extension_descriptor
extension descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:696
@ sl_descriptor
sl descriptor - ISO/IEC 13818-1
Definition: descriptors.h:615
@ CA_service_descriptor
CA_service descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:727
@ atsc_content_advisory_descriptor
atsc_content_advisory descriptor - ATSC A/65:2009
Definition: descriptors.h:759
@ atsc_caption_service_descriptor
atsc_caption_service descriptor - ATSC A/65:2009
Definition: descriptors.h:758
@ event_group_descriptor
event_group descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:737
@ atsc_component_name_descriptor
atsc_component_name descriptor - ATSC A/65:2009
Definition: descriptors.h:763
@ multiplexbuffer_descriptor
multiplexbuffer descriptor - ISO/IEC 13818-1
Definition: descriptors.h:620
@ conditional_access_descriptor
conditional_access descriptor - ISO/IEC 13818-1
Definition: descriptors.h:601
@ AC_3_descriptor
AC_3 descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:675
@ copyright_descriptor
copyright descriptor - ISO/IEC 13818-1
Definition: descriptors.h:605
@ CA_EMM_TS_descriptor
CA_EMM_TS descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:725
@ multiplex_buffer_utilization_descriptor
multiplex_buffer_utilization descriptor - ISO/IEC 13818-1
Definition: descriptors.h:604
@ video_stream_descriptor
video_stream descriptor - ISO/IEC 13818-1
Definition: descriptors.h:594
@ stream_identifier_descriptor
stream_identifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:651
@ XAIT_location_descriptor
XAIT_location descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:694
@ audio_component_descriptor
audio_component descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:719
@ std_descriptor
std descriptor - ISO/IEC 13818-1
Definition: descriptors.h:609
@ service_group_descriptor
service_group descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:746
@ CUE_identifier_descriptor
CUE_identifier descriptor - SCTE 35 2004.
Definition: descriptors.h:699
@ registration_descriptor
registration descriptor - ISO/IEC 13818-1
Definition: descriptors.h:597
@ ancillary_data_descriptor
ancillary_data descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:676
@ time_slice_fec_identifier_descriptor
time_slice_fec_identifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:688
@ atsc_stuffing_descriptor
atsc_stuffing descriptor - ATSC A/65:2009
Definition: descriptors.h:756
@ audio_stream_descriptor
audio_stream descriptor - ISO/IEC 13818-1
Definition: descriptors.h:595
@ data_contents_descriptor
data_contents descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:722
@ ipmp_descriptor
ipmp descriptor - ISO/IEC 13818-1
Definition: descriptors.h:626
@ service_identifier_descriptor
service_identifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:682
@ hierarchy_descriptor
hierarchy descriptor - ISO/IEC 13818-1
Definition: descriptors.h:596
@ AVC_timing_and_HRD_descriptor
AVC_timing_and_HRD descriptor - ISO/IEC 13818-1.
Definition: descriptors.h:627
@ target_area_descriptor
target_area descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:721
@ association_tag_descriptor
association_tag descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:712
@ atsc_ac3_audio_descriptor
atsc_ac3_audio descriptor - ATSC A/65:2009
Definition: descriptors.h:757
@ scrambling_descriptor
scrambling descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:670
@ extended_event_descriptor
extended_event descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:647
@ mpeg2_aac_audio_descriptor
mpeg2_aac_audio descriptor - ISO/IEC 13818-1
Definition: descriptors.h:628
@ connected_transmission_descriptor
connected_transmission descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:744
@ atsc_extended_channel_descriptor
atsc_extended_channel descriptor - ATSC A/65:2009
Definition: descriptors.h:760
@ time_shifted_service_descriptor
time_shifted_service descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:645
@ service_availability_descriptor
service_availability descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:683
@ service_location
service_location descriptor - SCTE 35 2004
Definition: descriptors.h:702
@ content_identifier_descriptor
content_identifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:687
@ satellite_delivery_system_descriptor
satellite_delivery_system descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:636
@ metadata_descriptor
metadata descriptor - ISO/IEC 13818-1
Definition: descriptors.h:623
@ component_descriptor
component descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:649
@ content_availability_descriptor
content_availability descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:745
@ mpeg4_video_descriptor
mpeg4_video descriptor - ISO/IEC 13818-1
Definition: descriptors.h:612
@ short_event_descriptor
short_event descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:646
@ iso639_language_descriptor
iso639_language descriptor - ISO/IEC 13818-1
Definition: descriptors.h:602
@ stuffing_descriptor
stuffing descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:635
@ CA_contract_information_descriptor
CA_contract_information descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:726
@ system_management_descriptor
system_management descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:753
@ emergency_information_descriptor
emergency_information descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:751
@ metadata_pointer_descriptor
metadata_pointer descriptor - ISO/IEC 13818-1
Definition: descriptors.h:622
@ digital_copy_control_descriptor
digital_copy_control descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:716
@ atsc_DCC_departing_request_descriptor
atsc_DCC_departing_request descriptor - ATSC A/65:2009
Definition: descriptors.h:764
@ atsc_service_location_descriptor
atsc_service_location descriptor - ATSC A/65:2009
Definition: descriptors.h:761
@ time_shifted_event_descriptor
time_shifted_event descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:648
@ extended_broadcaster_descriptor
extended_broadcaster descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:729
@ smoothing_buffer_descriptor
smoothing_buffer descriptor - ISO/IEC 13818-1
Definition: descriptors.h:608
@ cell_list_descriptor
cell_list descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:677
@ board_information_descriptor
board_information descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:742
@ private_data_indicator_descriptor
private_data_indicator descriptor - ISO/IEC 13818-1
Definition: descriptors.h:607
@ fmc_descriptor
fmc descriptor - ISO/IEC 13818-1
Definition: descriptors.h:616
@ application_signalling_descriptor
application_signalling descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:680
@ data_component_descriptor
data_component descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:752
@ VBI_data_descriptor
VBI_data descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:638
@ partial_transport_stream_descriptor
partial_transport_stream descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:668
@ extended_channel_name
extended_channel_name descriptor - SCTE 35 2004
Definition: descriptors.h:701
@ component_group_descriptor
component_group descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:740
@ STC_reference_descriptor
STC_reference descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:735
@ short_smoothing_buffer_descriptor
short_smoothing_buffer descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:666
@ TS_Information_descriptor
transport_stream_information descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:728
@ ECM_repetition_rate_descriptor
ECM_repetition_rate descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:689
@ VBI_teletext_descriptor
VBI_teletext descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:639
@ carousel_id_descriptor
carousel_id descriptor - ABNT NBR 15603-1 2007
Definition: descriptors.h:711
@ iod_descriptor
iod descriptor - ISO/IEC 13818-1
Definition: descriptors.h:614
@ TVA_id_descriptor
TVA_id descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:686
@ ISDBT_delivery_system_descriptor
ISDBT terrestrial_delivery_system descriptor - ABNT NBR 15603-1 2007.
Definition: descriptors.h:749
@ private_data_specifier_descriptor
private_data_specifier descriptor - ETSI EN 300 468 V1.11.1 (2010-04)
Definition: descriptors.h:664
void dvb_desc_free(struct dvb_desc **list)
frees a dvb_desc linked list
void(* dvb_desc_free_func)(struct dvb_desc *desc)
Function prototype for the descriptors memory free code.
Definition: descriptors.h:234
descriptors
List containing all descriptors used by Digital TV MPEG-TS.
Definition: descriptors.h:592
void dvb_hexdump(struct dvb_v5_fe_parms *parms, const char *prefix, const unsigned char *buf, int len)
dumps data into the logs in hexadecimal format
void dvb_desc_print(struct dvb_v5_fe_parms *parms, struct dvb_desc *desc)
prints the contents of a struct dvb_desc linked list
const struct dvb_descriptor dvb_descriptors[]
Contains the parsers for the several descriptors.
void(* dvb_desc_print_func)(struct dvb_v5_fe_parms *parms, const struct dvb_desc *desc)
Function prototype for the descriptors parsing print code.
Definition: descriptors.h:225
const dvb_table_init_func dvb_table_initializers[256]
Table with all possible descriptors.
void(* dvb_table_init_func)(struct dvb_v5_fe_parms *parms, const uint8_t *buf, ssize_t buflen, void **table)
Function prototype for a function that initializes the descriptors parsing on a table.
Definition: descriptors.h:79
uint32_t dvb_bcd(uint32_t bcd)
Converts from BCD to CPU integer internal representation.
int(* dvb_desc_init_func)(struct dvb_v5_fe_parms *parms, const uint8_t *buf, struct dvb_desc *desc)
Function prototype for the descriptors parsing init code.
Definition: descriptors.h:215
int dvb_desc_parse(struct dvb_v5_fe_parms *parms, const uint8_t *buf, uint16_t buflen, struct dvb_desc **head_desc)
parse MPEG-TS descriptors
Linked list containing the several descriptors found on a MPEG-TS table.
Definition: descriptors.h:117
uint8_t type
Definition: descriptors.h:118
uint8_t data[]
Definition: descriptors.h:122
uint8_t length
Definition: descriptors.h:119
struct dvb_desc * next
Definition: descriptors.h:120
Contains the parser information for the MPEG-TS parser code.
Definition: descriptors.h:249
dvb_desc_init_func init
Definition: descriptors.h:251
const char * name
Definition: descriptors.h:250
dvb_desc_free_func free
Definition: descriptors.h:253
dvb_desc_print_func print
Definition: descriptors.h:252
Keeps data needed to handle the DVB frontend.
Definition: dvb-fe.h:117