📄 dsmcc_str.c
字号:
/*$Id: dsmcc_str.c,v 1.34 2004/07/25 20:12:59 rasc Exp $ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de -- DSM-CC -Strings$Log: dsmcc_str.c,v $Revision 1.34 2004/07/25 20:12:59 rasc - New: content_identifier_descriptor (TS 102 323) - New: TVA_id_descriptor (TS 102 323) - New: related_content_descriptor (TS 102 323) - New: default_authority_descriptor (TS 102 323)Revision 1.33 2004/07/24 11:44:45 rascEN 301 192 update - New: ECM_repetition_rate_descriptor (EN 301 192 v1.4.1) - New: time_slice_fec_identifier_descriptor (EN 301 192 v1.4.1) - New: Section MPE_FEC EN 301 192 v1.4 - BugfixesRevision 1.32 2004/02/24 23:03:07 rascprivate data of DSMCC::DSIBIOP::ServiceGatewayInformation()IOP::IOR()Revision 1.31 2004/02/20 23:13:17 rascBIOP: TapUseRevision 1.30 2004/02/20 22:18:42 rascDII complete (hopefully)BIOP::ModuleInfo (damned, who is spreading infos over several standards???)maybe someone give me a hint on the selector_byte info!!!some minor changes...Revision 1.29 2004/02/15 20:46:10 rascDSM-CC data/object carousell continued (DSI, DII, DDB, DCancel)Revision 1.28 2004/02/15 18:58:30 rascDSM-CC data/object carousell continued (DSI, DII, DDB, DCancel)Revision 1.27 2004/02/15 01:01:04 rascDSM-CC DDB (DownloadDataBlock Message)DSM-CC U-N-Message startedCarousel Descriptors completedRevision 1.26 2004/02/14 01:24:45 rascDSM-CC started (DSI/DII, DDB)Revision 1.25 2004/02/12 21:21:22 rascMHP AIT descriptorssome smaller changesRevision 1.24 2004/02/07 01:28:07 rascMHP Application Information Tablesome AIT descriptorsRevision 1.23 2004/01/25 21:37:28 rascbugfixes, minor changes & enhancmentsRevision 1.22 2004/01/17 23:06:10 rascminor stuff, some restructs in outputRevision 1.21 2004/01/15 21:27:22 rascDSM-CC stream descriptorsRevision 1.20 2004/01/12 22:49:53 rascget rid of stream descriptor moduleRevision 1.19 2004/01/11 21:01:33 rascPES stream directory, PES restructuredRevision 1.18 2004/01/05 02:12:20 rascno messageRevision 1.17 2004/01/02 22:25:39 rascDSM-CC MODULEs descriptors completeRevision 1.16 2004/01/02 16:40:43 rascDSM-CC INT/UNT descriptors completeminor changes and fixesRevision 1.15 2004/01/02 02:18:34 rascmore DSM-CC INT/UNT descriptorsRevision 1.14 2004/01/01 20:09:40 rascDSM-CC INT/UNT descriptorsPES-sync changed, TS sync changed,descriptor scopeother changesRevision 1.13 2003/12/29 22:14:54 rascmore dsm-cc INT UNT descriptorsRevision 1.12 2003/12/28 22:53:41 rascsome minor changes/cleanupRevision 1.11 2003/12/27 22:02:44 rascdsmcc INT UNT descriptors startedRevision 1.10 2003/12/27 18:17:18 rascdsmcc PES dsmcc_program_stream_descriptorlistRevision 1.9 2003/12/26 23:27:40 rascDSM-CC UNT sectionRevision 1.8 2003/12/17 23:15:05 rascPES DSM-CC ack and control commands according ITU H.222.0 Annex BRevision 1.7 2003/11/29 23:11:43 rascno messageRevision 1.6 2003/11/26 23:54:49 rasc-- bugfixes on Linkage descriptorRevision 1.5 2003/11/01 21:40:27 rascsome broadcast/linkage descriptor stuffRevision 1.4 2003/10/29 20:54:57 rascmore PES stuff, DSM descriptors, testdataRevision 1.3 2003/10/26 21:36:20 rascprivate DSM-CC descriptor Tags started,INT-Section completed..Revision 1.2 2003/10/25 19:11:50 rascno messageRevision 1.1 2003/10/16 19:02:28 rascsome updates to dvbsnoop...- small bugfixes- tables updates from ETR 162*/#include "dvbsnoop.h"#include "dsmcc_str.h"#include "strtable_misc.h"/* -- DSM-CC CAROUSEL Descriptors -- Private Tag Space (DII, DSI) -- see EN 301 192 -- ... shows in DVB-descriptor lower ranges */char *dsmccStrDSMCC_CAROUSEL_DescriptorTAG (u_int i){ STR_TABLE Table[] = { { 0x00, 0x00, "reserved" }, { 0x01, 0x01, "type_descriptor" }, { 0x02, 0x02, "name_descriptor" }, { 0x03, 0x03, "info_descriptor" }, { 0x04, 0x04, "module_link_descriptor" }, { 0x05, 0x05, "CRC32_descriptor" }, { 0x06, 0x06, "location_descriptor" }, { 0x07, 0x07, "estimated_download_time_descriptor" }, { 0x08, 0x08, "group_link_descriptor" }, { 0x09, 0x09, "compressed_module_descriptor" }, { 0x0A, 0x0A, "subgroup_association_descriptor" }, { 0x0B, 0x6F, "reserved for future use by DVB" }, { 0x70, 0x70, "label_descriptor" }, // MHP { 0x71, 0x71, "caching_priority_descriptor" }, // MHP { 0x72, 0x7F, "reserved MHP" }, { 0x80, 0xFF, "private_descriptor" }, { 0,0, NULL } }; return findTableID (Table, i);}/* -- DSM-CC INT (UNT, SSU-UNT) Descriptors -- Private INT, UNT, SSU-UNT Tag Space -- see EN 301 192 // TS 102 006 */char *dsmccStrDSMCC_INT_UNT_DescriptorTAG (u_int i){ STR_TABLE Table[] = { { 0x00, 0x00, "reserved" }, { 0x01, 0x01, "scheduling_descriptor" }, { 0x02, 0x02, "update_descriptor" }, { 0x03, 0x03, "ssu_location_descriptor" }, { 0x04, 0x04, "message_descriptor" }, { 0x05, 0x05, "ssu_event_name_descriptor" }, { 0x06, 0x06, "target_smartcard_descriptor" }, { 0x07, 0x07, "target_MAC_address_descriptor" }, { 0x08, 0x08, "target_serial_number_descriptor" }, { 0x09, 0x09, "target_IP_address_descriptor" }, { 0x0A, 0x0A, "target_IPv6_address_descriptor" }, { 0x0B, 0x0B, "ssu_subgroup_association_descriptor" }, { 0x0C, 0x0C, "IP/MAC_platform_name_descriptor" }, { 0x0D, 0x0D, "IP/MAC_platform_provider_name_descriptor" }, { 0x0E, 0x0E, "target_MAC_address_range_descriptor" }, { 0x0F, 0x0F, "target_IP_slash_descriptor" }, { 0x10, 0x10, "target_IP_source_slash_descriptor" }, { 0x11, 0x11, "target_IPv6_slash_descriptor" }, { 0x12, 0x12, "target_IPv6_source_slash_descriptor" }, { 0x13, 0x13, "IP/MAC_stream_location_descriptor" }, { 0x14, 0x14, "ISP_access_mode_descriptor" }, { 0x15, 0x3F, "reserved" },// { 0x40, 0x7F, "DVB-SI scope" }, Telphone, private_data_spec, use: dvb scope { 0x80, 0xFE, "user_private_descriptor" }, { 0xFF, 0xFF, "reserved" }, { 0,0, NULL } }; return findTableID (Table, i);}/* -- MHP AIT Descriptors -- Private Tag Space (AIT) -- see TS 102 812 */char *dsmccStrMHP_AIT_DescriptorTAG (u_int i){ STR_TABLE Table[] = { { 0x00, 0x00, "Application descriptor" }, { 0x01, 0x01, "Application name descriptor" }, { 0x02, 0x02, "Transport protocol descriptor" }, { 0x03, 0x03, "DVB-J application descriptor" }, { 0x04, 0x04, "DVB-J application location descriptor" }, { 0x05, 0x05, "External application authorisation descriptor" }, { 0x06, 0x06, "Routing Descriptor IPv4" }, { 0x07, 0x07, "Routing Descriptor IPv6" }, { 0x08, 0x08, "DVB-HTML application descriptor" }, { 0x09, 0x09, "DVB-HTML application location descriptor" }, { 0x0A, 0x0A, "DVB-HTML application boundary descriptor" }, { 0x0B, 0x0B, "Application icons descriptor" }, { 0x0C, 0x0C, "Pre-fetch descriptor" }, { 0x0D, 0x0D, "DII location descriptor" }, { 0x0E, 0x0E, "delegated application descriptor" }, { 0x0F, 0x0F, "Plug-in descriptor" }, { 0x10, 0x10, "Application storage descriptor" }, { 0x11, 0x5E, "reserved to MHP" }, { 0x5F, 0x5F, "private data specifier descriptor" }, { 0x60, 0x7F, "reserved to MHP" }, { 0x80, 0xFF, "user defined" }, { 0,0, NULL } }; return findTableID (Table, i);}/* -- MHP Organisations*/char *dsmccStrMHPOrg (u_int id){ STR_TABLE TableIDs[] = { // --{ MHP Organisation ID, MHP Organisation ID, "Organisation Supplying MHP Applications" }, { 0x0000, 0x0000, "Reserved" }, { 0x0001, 0x0001, "MTV Oy" }, { 0x0002, 0x0002, "Digita Oy" }, { 0x0003, 0x0003, "NRK" }, { 0x0004, 0x0004, "Premiere Medien GmbH & Co KG" }, { 0x0005, 0x0005, "Platco Oy" }, { 0x0006, 0x0006, "NOB" }, { 0x0007, 0x0007, "Sofia Digital Oy" }, { 0x0008, 0x0008, "YLE (Finnish Broadcasting Company)" }, { 0x0009, 0x0009, "IRT (Institut f黵 Rundfunktechnik GmbH)" }, { 0x000A, 0x000A, "Cardinal Information Systems Ltd" }, { 0x000B, 0x000B, "Mediaset s.p.a." }, { 0x000C, 0x000C, "Ortikon Interactive Oy" }, { 0x000D, 0x000D, "Austrian Broadcastion Corporation (ORF)" }, { 0x000E, 0x000E, "Strategy & Technology Ltd" }, { 0x000F, 0x000F, "Canal+ Technologies" }, { 0x0010, 0x0010, "TV2Nord Digital" }, { 0x0011, 0x0011, "Zweites Deutsches Fernsehen - ZDF" }, { 0x0012, 0x0012, "SCIP AG" }, { 0x0013, 0x0013, "ARD" }, { 0x0014, 0x0014, "Sveng.com" }, { 0x0015, 0x0015, "UniSoft Corporation" }, { 0x0016, 0x0016, "Microsoft Corp" }, { 0x0017, 0x0017, "Nokia" }, { 0x0018, 0x0018, "SWelcom Oy" }, { 0x0019, 0x0019, "Fraunhofer Institut Medienkommunikation - IMK" }, { 0x001A, 0x001A, "RTL NewMedia GmbH" }, { 0x001B, 0x001B, "Fraunhofer FOKUS" }, { 0x001C, 0x001C, "TwonkyVision GmbH" }, { 0x001D, 0x001D, "Gist Communications" }, { 0x001E, 0x001E, "Televisi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -