atsc_psip_section.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef __ATSC_PSIP_SECTION_H_
  2. #define __ATSC_PSIP_SECTION_H_
  3. #include "section.h"
  4. #define ATSC_EXTENDED_CHANNEL_NAME_DESCRIPTOR_ID 0xA0
  5. struct ATSC_extended_channel_name_descriptor {
  6. u8 descriptor_tag : 8;
  7. u8 descriptor_length : 8;
  8. u8 TODO : 1;
  9. } PACKED;
  10. struct ATSC_extended_channel_name_descriptor read_ATSC_extended_channel_name_descriptor(const u8 *);
  11. #define ATSC_SERVICE_LOCATION_DESCRIPTOR_ID 0xA1
  12. struct ATSC_service_location_descriptor {
  13. u8 descriptor_tag : 8;
  14. u8 descriptor_length : 8;
  15. u8 reserved : 3;
  16. u16 PCR_PID :13;
  17. u8 number_elements : 8;
  18. } PACKED;
  19. struct ATSC_service_location_descriptor read_ATSC_service_location_descriptor(const u8 *);
  20. struct ATSC_service_location_element {
  21. u8 stream_type : 8;
  22. u8 reserved : 3;
  23. u16 elementary_PID :13;
  24. u32 ISO_639_language_code :24;
  25. } PACKED;
  26. struct ATSC_service_location_element read_ATSC_service_location_element(const u8 *);
  27. struct tvct_channel {
  28. u16 short_name0 :16;
  29. u16 short_name1 :16;
  30. u16 short_name2 :16;
  31. u16 short_name3 :16;
  32. u16 short_name4 :16;
  33. u16 short_name5 :16;
  34. u16 short_name6 :16;
  35. u8 reserved0 : 4;
  36. u16 major_channel_number :10;
  37. u16 minor_channel_number :10;
  38. u8 modulation_mode : 8;
  39. u32 carrier_frequency :32;
  40. u16 channel_TSID :16;
  41. u16 program_number :16;
  42. u8 ETM_location : 2;
  43. u8 access_controlled : 1;
  44. u8 hidden : 1;
  45. u8 reserved1 : 2;
  46. u8 hide_guide : 1;
  47. u8 reserved2 : 3;
  48. u8 service_type : 6;
  49. u16 source_id :16;
  50. u8 reserved3 : 6;
  51. u16 descriptors_length :10;
  52. } PACKED;
  53. struct tvct_channel read_tvct_channel(const u8 *);
  54. #endif