drv_dtv_common.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef _DTV_COMMON_H_
  2. #define _DTV_COMMON_H_
  3. /*************Deumx Type********************/
  4. #define TS_DEMUX_TYPE_NONE 0
  5. #define TS_DEMUX_TYPE_PES_VIDEO 1
  6. #define TS_DEMUX_TYPE_PES_AUDIO 2
  7. #define TS_DEMUX_TYPE_PES_SP 3
  8. #define TS_DEMUX_TYPE_PES_TT 4
  9. #define TS_DEMUX_TYPE_ERROR 5
  10. #define TS_DEMUX_TYPE_DVB_EIT 6
  11. #define TS_DEMUX_TYPE_DVB_SDT 7
  12. #define TS_DEMUX_TYPE_PSIP_MGT 8
  13. #define TS_DEMUX_TYPE_PSIP_STT 9
  14. #define TS_DEMUX_TYPE_PSIP_EAM 10
  15. #define TS_DEMUX_TYPE_PSI_TDT 11
  16. #define TS_DEMUX_TYPE_PSI_TOT 12
  17. #define TS_DEMUX_TYPE_PSI_MULTI_PMT 13
  18. #define TS_DEMUX_TYPE_OB_SI 14 // only for OceanBlue
  19. #define TS_DEMUX_TYPE_PES_DATA 15
  20. #define TS_DEMUX_TYPE_PES_ADAUDIO 16
  21. #define TS_DEMUX_TYPE_TS_RECORD 17
  22. #define TS_DEMUX_TYPE_TS_PLAY 18
  23. #define TS_DEMUX_TYPE_DVB_NIT 19
  24. #define TS_DEMUX_TYPE_PSI_EIT26 20
  25. #define TS_DEMUX_TYPE_PSI_EIT27 21
  26. #define TS_DEMUX_TYPE_SSU 22
  27. #define TS_DEMUX_TYPE_SSU2 23
  28. #define TS_DEMUX_TYPE_PSI 24
  29. #define TS_DEMUX_TYPE_EWS_AUDIO 25
  30. /*************Stream Type********************/
  31. //==========Video Stream Type==========//
  32. #define Video_MPEG1 0x01
  33. #define Video_MPEG2 0x02
  34. #define Video_DCII 0x80
  35. #define Video_AVS 0x42
  36. #define Video_H264 0x1B
  37. #define Video_HEVC 0x24
  38. //==========Audio Stream Type==========//
  39. typedef enum _DTV_AUDIO_TYPE
  40. {
  41. Audio_MPEG1, //stream type 0x03
  42. Audio_MPEG2, //stream type 0x04
  43. Audio_MPEG2_AAC, //stream type 0x0f AAC ADTS format
  44. Audio_MPEG4, //stream type 0x11, AAC LATM format
  45. Audio_AC3, //stream type 0x81 or stream type 0x06 with AC3 descriptor
  46. Audio_EAC3, //stream type 0x87 or stream type 0x06 with EAC3 descriptor
  47. Audio_DRA, //stream type 0x06 with dra descriptor or the format_identifier in Rrgistration descriptor is 0x44524131("DRA1")
  48. }DTV_AUDIO_TYPE;
  49. #define Audio_LPCM 0x00
  50. #define PrivateData 0x06
  51. #define DTV_Subtitle 0xF1
  52. #define DTV_TeleText 0xF2
  53. #define DTV_SI 0xFF
  54. /***********Picture Type***********************/
  55. #define I_TYPE 0x1
  56. #define P_TYPE 0x2
  57. #define B_TYPE 0x3
  58. #define S_TYPE 0x4
  59. #endif /* _DTV_COMMON_H_ */