libdvbv5: Add ATSC specific descriptors
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 13 Nov 2013 20:54:33 +0000 (18:54 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 13 Nov 2013 21:05:19 +0000 (19:05 -0200)
Add the ATSC descriptors described at ATSC Document A/65:2009.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/descriptors.h
lib/libdvbv5/descriptors.c

index 2bea8ea..e537ed6 100644 (file)
@@ -266,6 +266,21 @@ enum descriptors {
        emergency_information_descriptor                = 0xfc,
        data_component_descriptor                       = 0xfd,
        system_management_descriptor                    = 0xfe,
+
+       /* ATSC descriptors - ATSC A/65:2009 spec */
+       atsc_stuffing_descriptor                        = 0x80,
+       atsc_ac3_audio_descriptor                       = 0x81,
+       atsc_caption_service_descriptor                 = 0x86,
+       atsc_content_advisory_descriptor                = 0x87,
+       atsc_extended_channel_descriptor                = 0xa0,
+       atsc_service_location_descriptor                = 0xa1,
+       atsc_time_shifted_service_descriptor            = 0xa2,
+       atsc_component_name_descriptor                  = 0xa3,
+       atsc_DCC_departing_request_descriptor           = 0xa8,
+       atsc_DCC_arriving_request_descriptor            = 0xa9,
+       atsc_redistribution_control_descriptor          = 0xaa,
+       atsc_ATSC_private_information_descriptor        = 0xad,
+       atsc_genre_descriptor                           = 0xab,
 };
 
 
index 3937629..44be7ac 100644 (file)
@@ -297,6 +297,19 @@ const struct dvb_descriptor dvb_descriptors[] = {
        [emergency_information_descriptor] = { "emergency_information_descriptor", NULL, NULL, NULL, 0 },
        [data_component_descriptor] = { "data_component_descriptor", NULL, NULL, NULL, 0 },
        [system_management_descriptor] = { "system_management_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_stuffing_descriptor] = { "atsc_stuffing_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_ac3_audio_descriptor] = { "atsc_ac3_audio_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_caption_service_descriptor] = { "atsc_caption_service_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_content_advisory_descriptor] = { "atsc_content_advisory_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_extended_channel_descriptor] = { "atsc_extended_channel_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_service_location_descriptor] = { "atsc_service_location_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_time_shifted_service_descriptor] = { "atsc_time_shifted_service_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_component_name_descriptor] = { "atsc_component_name_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_DCC_departing_request_descriptor] = { "atsc_DCC_departing_request_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_DCC_arriving_request_descriptor] = { "atsc_DCC_arriving_request_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_redistribution_control_descriptor] = { "atsc_redistribution_control_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_ATSC_private_information_descriptor] = { "atsc_ATSC_private_information_descriptor", NULL, NULL, NULL, 0 },
+       [atsc_genre_descriptor] = { "atsc_genre_descriptor", NULL, NULL, NULL, 0 },
 };
 
 static const char *extension_descriptors[] = {