sbtvddb.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * Copyright(c) 2012 Sunplus-Prof Technologies - All Rights Reserved.
  3. *
  4. * @file
  5. * Common macros, declarations and definitions of SBTVD Database.
  6. *
  7. * @author baoxing.zhong
  8. *
  9. */
  10. #ifndef _SBTVDDB_H_
  11. #define _SBTVDDB_H_
  12. #include "db_common.h"
  13. #ifdef __cplusplus
  14. extern "C"{
  15. #endif
  16. /**
  17. * @addtogroup SBTVD_APIS Common macros, declarations and definitions of SBTVD Database.
  18. * @{
  19. */
  20. /** Exported constants */
  21. enum
  22. {
  23. SBTVDDB_MAX_PRIVDATA = 0, /**< Max private data length in bytes */
  24. };
  25. /**
  26. * @Note !!!!!!!!!!!!!!!
  27. * If you have modified the following three structures(SSBTVDDBNetworkInfo_t, SSBTVDDBNetworkInfo_t and SSBTVDDBServInfo_t),
  28. * Please don't forget to call genDBSymbol.pl manually to refresh the DB Symbol Information(which used by Get/UpdateRecordbysymbol)
  29. */
  30. /** Network details define for SBTVD Database */
  31. typedef struct SSBTVDDBNetworkInfo
  32. {
  33. UINT16 usNetId;
  34. UINT8 szNetName[DB_DVB_MAX_NETNAME_LEN]; /**< Area Name */
  35. } SSBTVDDBNetworkInfo_t;
  36. /** Multiplex details define for SBTVD Database */
  37. typedef struct SSBTVDDBMultiplexInfo
  38. {
  39. UINT8 ucBandwidth; /**< bandwidth : 6, 7, 8 MHz */
  40. UINT8 ucHierarchyMode; /**< */
  41. UINT16 ucAreaIndex; /**< */
  42. UINT8 szTpName[DB_DVB_MAX_MULTIPNAME_LEN]; /**< Transponder Name */
  43. UINT16 usTsId; /**< transport stream id */
  44. UINT16 usOrigNetId; /**< usOrigNetId */
  45. UINT16 usEMMPID; /**< emm pid*/
  46. UINT32 uiFreqK; /**< tuning frequency in KHz */
  47. UINT8 ucSignalQuality; /**< multiplex signal quality*/
  48. UINT8 ucSignalStrength; /**< multiplex signal Strength*/
  49. UINT16 usNetId; /**< Network id */
  50. UINT8/*EDVBDeliveryType_t*/ ucTp_dvb_type; /**< DVB-T delivery type(T or T2) */
  51. } SSBTVDDBMultiplexInfo_t;
  52. /** Service details define for SBTVD Database */
  53. typedef struct SSBTVDDBServInfo
  54. {
  55. UINT8 szProgName[DB_DVB_MAX_CHNAME_LEN]; /**< program name*/
  56. UINT8/*EServSDTType_t*/ eSDTSrvType; /**< service type in Service Descriptor of SDT*/
  57. UINT8/*EServiceType_t*/ eTvRadioType; /**< TV/Radio or Data Service */
  58. UINT16 usProgNo; /**< this is the virtual program number */
  59. UINT16 usServiceId; /**< service id */
  60. UINT16 usTsId; /**< transport stream id */
  61. UINT16 usTsId_pat; /**< transport stream id for pat */
  62. UINT16 usOrigNetId; /**< original network id */
  63. DBPIDInfo_t stVideoPid; /**< video pid info,include data pid and ecm pid*/
  64. DBPIDInfo_t stAudioPid[DB_DVB_MAX_AUDIO_NUM]; /**< audio pid info,include data pid and ecm pid the 3rd one is AD*/
  65. UINT16 usPcrPid; /**< pcr pid */
  66. DBServAttrib_t stProgAttrib; /**< program attribute*/
  67. UINT16 usPMTPid; /**< PMT pid */
  68. DBPIDInfo_t stPrvPid[DB_DVB_MAX_PRV_COMP_NUM]; /**< for private components, which may use in MHEG5 applications */
  69. UINT8 szlangCode3[4];
  70. UINT16 usCASystemID; /**< CA system id */
  71. UINT16 usLinkOrgNetID;
  72. UINT16 usLinkServiceID;
  73. UINT8 acPrivateData[SBTVDDB_MAX_PRIVDATA];
  74. DBCIProtection_t usCIShunningData; /** CI Shunning data */
  75. } SSBTVDDBServInfo_t;
  76. /**
  77. * @}
  78. */
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif