diff options
author | Debian VDR Team <pkg-vdr-dvb-devel@lists.alioth.debian.org> | 2006-06-03 13:12:54 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:40 +0200 |
commit | 43dd9e25dce3963f25444533466ad1f8faa66e47 (patch) | |
tree | 134e7e7d2a0f0df1e731e65bffc445bd026539fb /util/scan/atsc_psip_section.h | |
parent | 2ade78e0b7545aa63792aa4b08f0f88eba0b0e3e (diff) | |
parent | 6b350466c4902c5b137e0efaf1d189128a7f18f5 (diff) | |
download | linux-dvb-apps-debian/1.1.1-1.tar.gz |
Imported Debian patch 1.1.1-1debian/1.1.1-1
Diffstat (limited to 'util/scan/atsc_psip_section.h')
-rw-r--r-- | util/scan/atsc_psip_section.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/util/scan/atsc_psip_section.h b/util/scan/atsc_psip_section.h new file mode 100644 index 0000000..c76bce7 --- /dev/null +++ b/util/scan/atsc_psip_section.h @@ -0,0 +1,60 @@ +#ifndef __ATSC_PSIP_SECTION_H_ +#define __ATSC_PSIP_SECTION_H_ + +#include "section.h" + +#define ATSC_EXTENDED_CHANNEL_NAME_DESCRIPTOR_ID 0xA0 +struct ATSC_extended_channel_name_descriptor { + u8 descriptor_tag : 8; + u8 descriptor_length : 8; + u8 TODO : 1; +} PACKED; +struct ATSC_extended_channel_name_descriptor read_ATSC_extended_channel_name_descriptor(const u8 *); + +#define ATSC_SERVICE_LOCATION_DESCRIPTOR_ID 0xA1 +struct ATSC_service_location_descriptor { + u8 descriptor_tag : 8; + u8 descriptor_length : 8; + u8 reserved : 3; + u16 PCR_PID :13; + u8 number_elements : 8; +} PACKED; +struct ATSC_service_location_descriptor read_ATSC_service_location_descriptor(const u8 *); + +struct ATSC_service_location_element { + u8 stream_type : 8; + u8 reserved : 3; + u16 elementary_PID :13; + u32 ISO_639_language_code :24; +} PACKED; +struct ATSC_service_location_element read_ATSC_service_location_element(const u8 *); + +struct tvct_channel { + u16 short_name0 :16; + u16 short_name1 :16; + u16 short_name2 :16; + u16 short_name3 :16; + u16 short_name4 :16; + u16 short_name5 :16; + u16 short_name6 :16; + u8 reserved0 : 4; + u16 major_channel_number :10; + u16 minor_channel_number :10; + u8 modulation_mode : 8; + u32 carrier_frequency :32; + u16 channel_TSID :16; + u16 program_number :16; + u8 ETM_location : 2; + u8 access_controlled : 1; + u8 hidden : 1; + u8 reserved1 : 2; + u8 hide_guide : 1; + u8 reserved2 : 3; + u8 service_type : 6; + u16 source_id :16; + u8 reserved3 : 6; + u16 descriptors_length :10; +} PACKED; +struct tvct_channel read_tvct_channel(const u8 *); + +#endif |