CCMPEG.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:5k
源码类别:

DVD

开发平台:

Others

  1. /***********************************************************************/
  2. /* File:                                                               */
  3. /* =====                                                               */
  4. /* Descripton:                                                         */
  5. /* ===========                                                         */
  6. /*                                                                     */
  7. /* Log:                                                                */
  8. /* =====                                                                 */
  9. /*
  10.  $Name: V_1_11 V_1_10 V_1_08 V_1_06 V_1_05 V_1_04 V_1_03 V_1_02 V_1_01 V_1_00 B_0_90.1 B_0_90 B_0_87 B_0_86 B_0_84 B_0_82 B_0_81 B_0_8 A_0_5 A_0_4 A_0_3 A_0_2 A_0_1 $                                                             
  11.  $Header: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/CCMPEG.H 2     12/30/03 11:27a Leonh $                                                           
  12.  $Log: /I76/I76_Common/I76_Reference/Playcore/Nav_DVD/Header/CCMPEG.H $                                                              
  13.  * 
  14.  * 2     12/30/03 11:27a Leonh
  15.  * Angieh:Change for DVD AUDIO navigator header.
  16.  * 
  17.  * 1     03-04-28 11:15 Fwang
  18.  * Initial for DVDA
  19.  * 
  20.  * 3     4/26/02 12:45p Leslie
  21.  * Add new member "resume_lbn" in S_DATA_CONTAINER
  22.  * 
  23.  * 2     23/04/02 9:34 Nirm
  24.  * - Added dependency in "Config.h".
  25.  * 
  26.  * 1     2/17/02 12:12 Rinata
  27.  * 
  28.  * 1     2/17/02 11:38 Rinata
  29.  * 
  30.  * 2     8/01/02 16:24 Nirm
  31.  * Corrected Include-Paths.
  32.  Revision 1.3  2000/06/14 02:46:09Z  tia                                                              
  33.  Revision 1.2  2000/05/17 02:41:25  tia                                                              
  34.  Revision 1.1  2000/04/14 02:02:02  tia                                                              
  35.  Initial revision                                                              
  36.  */
  37. /***********************************************************************/
  38. #include "Config.h" // Global Configuration - do not remove!
  39. #ifndef ccmpeg_h
  40. #define ccmpeg_h 1
  41. #include <string.h>
  42. #include "PlaycoreNav_DVDHeadernavdef.h"
  43. #include "Includesysdefs.h"
  44. typedef LONG ERRORCODE;
  45. #define CCMPEG_OK                     0
  46. #define CCMPEG_ERROR                  (-1)
  47. //
  48. // Presentation Time Stamp type
  49. //
  50. //typedef ULONG P_T_S;
  51. //
  52. // data type
  53. //
  54. /************ CDataContainer translation - data *************/
  55. typedef struct{
  56. DWORD time_stamp;
  57. #ifdef NO_SCPAD
  58. unsigned long address;
  59. #else
  60. WORD sc_handle;
  61. #endif
  62. // BYTE flags;//LX042602
  63. DWORD resume_lbn;//LX042602
  64. }S_DATA_CONTAINER;
  65. //
  66. // Bitstream data types
  67. //
  68. #define DATA_TYPE_MPEG2_VIDEO        1
  69. #define DATA_TYPE_MPEG2_AUDIO        2
  70. #define DATA_TYPE_AC3_AUDIO          3
  71. #define DATA_TYPE_PCM_AUDIO          4
  72. #define DATA_TYPE_SPU                5
  73. #define DATA_TYPE_MPEG1_VIDEO        6
  74. #define DATA_TYPE_MPEG1_AUDIO        7
  75. #define DATA_TYPE_MPEG_USER_DATA     8
  76. #define DATA_TYPE_DTS_AUDIO          9
  77. // MPEG user data subtypes
  78. #define SEQUENCE_USER_DATA            0
  79. #define GOP_USER_DATA                 1
  80. #define PICTURE_USER_DATA             2
  81. //
  82. // Render data types
  83. //
  84. #define DATA_TYPE_VIDEO_DATA       0x10
  85. #define DATA_TYPE_AUDIO_DATA       0x20
  86. #define DATA_TYPE_SPU_DATA         0x30
  87. #define DATA_TYPE_PCM_DATA         0x40
  88. //
  89. // Event IDs
  90. //
  91. #define EVENT_DESTINATION_PIPE_REQUEST   1 /* output data available, need destination pipe */
  92. #define EVENT_EOD                        2 /* hit iso_11172_end_code */
  93. // user defined events start here and continue upward
  94. #define EVENT_ID_USER_FIRST           1024
  95. #define EVENT_PCI_ARRIVED   1025
  96. #define EVENT_EOF_USER_DATA   1026
  97. //
  98. // Stream status flags (use bits from right to left)
  99. //
  100. #define DEMUX_STREAM_STATUS_INACTIVE     1 /* PES stream ignored    */
  101. #define DEMUX_STREAM_STATUS_PAYLOAD      2 /* PES layers skipped    */
  102. #define DEMUX_STREAM_STATUS_CHANGE_SCR   4 /* SCR should be changed */
  103. #define DEMUX_STREAM_STATUS_NOTIFY  8 /* manager should be notified */
  104. #define DEMUX_STREAM_STATUS_CHANGE_USER_SCR   0x10 /* SCR should be changed */
  105. //
  106. // Supported parameter IDs. param1 holds the PES ID, param2 sets/gets the value
  107. //
  108. #define DEMUX_PARAM_STATUS            1 /* Set/Get PES stream status                                */
  109. #define DEMUX_PARAM_TYPE              2 /* Set/Get data type associated with the PES stream         */
  110. #define DEMUX_PARAM_PRIVATE_DATA_SIZE 3 /* Set/Get private data size associated with the PES stream */
  111. #define DEMUX_PARAM_PIPE              4 /* Set/Get pipe associated with the PES stream              */
  112. #define DEMUX_PARAM_DELTA_SCR         5 /* Set/Get SCR adjustment value (global)                    */
  113. //
  114. // ****************************************************
  115. //## end module.additionalDeclarations
  116. //
  117. // Supported parameter IDs. value holds the value.
  118. //
  119. #define DECODER_PARAM_SET_MEDIA_ID       0x10000 /* Set media ID          */
  120. #define DECODER_PARAM_SET_ITEM_ID        0x20000 /* Set play-back item ID */
  121. #define DECODER_PARAM_INIT  0x40000 // initialize
  122. #define DECODER_PARAM_UNINIT  0x80000 // initialize
  123. #define DECODER_PARAM_SET_DECRYPT_DATA   0x100000 /* Set Decrypt Data     */
  124. #endif // ccmpeg_h