Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
4.3 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: mpeg.h,v $
  7. * Revision 1.1.4.2 1996/11/08 21:50:41 Hans_Graves
  8. * Added MPEG1_AUDIO_FRAME_SIZE
  9. * [1996/11/08 21:17:44 Hans_Graves]
  10. *
  11. * Revision 1.1.2.4 1996/01/11 16:17:24 Hans_Graves
  12. * Added more MPEG II System codes
  13. * [1996/01/11 16:14:20 Hans_Graves]
  14. *
  15. * Revision 1.1.2.3 1996/01/08 16:41:24 Hans_Graves
  16. * Added MPEG II codes
  17. * [1996/01/08 15:44:39 Hans_Graves]
  18. *
  19. * Revision 1.1.2.2 1995/11/06 18:47:43 Hans_Graves
  20. * First time under SLIB
  21. * [1995/11/06 18:34:29 Hans_Graves]
  22. *
  23. * $EndLog$
  24. */
  25. /*****************************************************************************
  26. ** Copyright (c) Digital Equipment Corporation, 1995 **
  27. ** **
  28. ** All Rights Reserved. Unpublished rights reserved under the copyright **
  29. ** laws of the United States. **
  30. ** **
  31. ** The software contained on this media is proprietary to and embodies **
  32. ** the confidential technology of Digital Equipment Corporation. **
  33. ** Possession, use, duplication or dissemination of the software and **
  34. ** media is authorized only pursuant to a valid written license from **
  35. ** Digital Equipment Corporation. **
  36. ** **
  37. ** RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S. **
  38. ** Government is subject to restrictions as set forth in Subparagraph **
  39. ** (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable. **
  40. ******************************************************************************/
  41. #ifndef _MPEG_H_
  42. #define _MPEG_H_
  43. #define MPEG1_AUDIO_FRAME_SIZE 1152
  44. /************** MPEG I parsing definitions **************/
  45. #define MPEG_SYNC_WORD 0xfff
  46. #define MPEG_SYNC_WORD_LEN 12
  47. #define MPEG_PACK_START 0x000001ba
  48. #define MPEG_PACK_START_LEN 32
  49. #define MPEG_SYSTEM_HEADER_START 0x000001bb
  50. #define MPEG_SYSTEM_HEADER_START_LEN 32
  51. #define MPEG_SEQ_HEAD 0x000001b3
  52. #define MPEG_SEQ_HEAD_LEN 32
  53. #define MPEG_EXT_START 0x000001b5
  54. #define MPEG_EXT_START_LEN 32
  55. #define MPEG_PICTURE_START 0x00000100
  56. #define MPEG_GROUP_START 0x000001b8
  57. #define MPEG_VIDEO_PACKET 0x000001e0
  58. #define MPEG_AUDIO_PACKET 0x000001c0
  59. #define MPEG_START_CODE 0x000001
  60. #define MPEG_START_CODE_LEN 24
  61. #define MPEG_PICTURE_START_BASE 0x00
  62. #define MPEG_PACK_START_BASE 0xba
  63. #define MPEG_SYSTEM_HEADER_BASE 0xbb
  64. #define MPEG_PRIVATE_STREAM1_BASE 0xbd
  65. #define MPEG_PADDING_STREAM_BASE 0xbe
  66. #define MPEG_PRIVATE_STREAM2_BASE 0xbf
  67. #define MPEG_AUDIO_STREAM_BASE 0xc0
  68. #define MPEG_VIDEO_STREAM_BASE 0xe0
  69. #define MPEG_USER_DATA_BASE 0xb2
  70. #define MPEG_SEQ_HEAD_BASE 0xb3
  71. #define MPEG_EXT_START_BASE 0xb5
  72. #define MPEG_SEQ_END_BASE 0xb7
  73. #define MPEG_GROUP_START_BASE 0xb8
  74. #define MPEG_END_BASE 0xb9
  75. #define MPEG_AUDIO_STREAM_START 0xC0
  76. #define MPEG_AUDIO_STREAM_END 0xDF
  77. #define MPEG_VIDEO_STREAM_START 0xE0
  78. #define MPEG_VIDEO_STREAM_END 0xEF
  79. /************** MPEG II parsing definitions **************/
  80. /* stream id's - all reserved in MPEG I */
  81. #define MPEG_PROGRAM_STREAM 0xBC
  82. #define MPEG_ECM_STREAM 0xF0
  83. #define MPEG_EMM_STREAM 0xF1
  84. #define MPEG_DSM_CC_STREAM 0xF1
  85. #define MPEG_13522_STREAM 0xF2
  86. #define MPEG_PROGRAM_DIRECTORY_STREAM 0xFF
  87. /* program id's */
  88. #define MPEG_PID_NULL 0x1FFF
  89. /* transport codes */
  90. #define MPEG_TSYNC_CODE 0x47
  91. #define MPEG_TSYNC_CODE_LEN 8
  92. /* extension start code IDs */
  93. #define MPEG_SEQ_ID 1
  94. #define MPEG_DISP_ID 2
  95. #define MPEG_QUANT_ID 3
  96. #define MPEG_SEQSCAL_ID 5
  97. #define MPEG_PANSCAN_ID 7
  98. #define MPEG_CODING_ID 8
  99. #define MPEG_SPATSCAL_ID 9
  100. #define MPEG_TEMPSCAL_ID 10
  101. /* picture coding type */
  102. #define MPEG_I_TYPE 1
  103. #define MPEG_P_TYPE 2
  104. #define MPEG_B_TYPE 3
  105. #define MPEG_D_TYPE 4
  106. #endif /* _MPEG_H_ */