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.

116 lines
3.0 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995 Intel Corporation.
  10. ** Copyright (c) 1996 Intel Corporation.
  11. ** All Rights Reserved.
  12. **
  13. ** *************************************************************************
  14. */
  15. // $Author: RHAZRA $
  16. // $Date: 07 Nov 1996 14:47:44 $
  17. // $Archive: S:\h26x\src\common\c1rtp.h_v $
  18. // $Header: S:\h26x\src\common\c1rtp.h_v 1.1 07 Nov 1996 14:47:44 RHAZRA $
  19. // $Log: S:\h26x\src\common\c1rtp.h_v $
  20. ;//
  21. ;// Rev 1.1 07 Nov 1996 14:47:44 RHAZRA
  22. ;// Added function prototype for RTP buffer overhead estimation function
  23. ;//
  24. ;// Rev 1.0 21 Aug 1996 18:29:44 RHAZRA
  25. ;// Initial revision.
  26. ;//
  27. ;// Rev 1.1 03 May 1996 13:09:58 CZHU
  28. ;//
  29. ;//
  30. ;// Rev 1.0 22 Apr 1996 16:38:30 BECHOLS
  31. ;// Initial revision.
  32. ;//
  33. ;// Rev 1.6 10 Apr 1996 13:32:50 CZHU
  34. ;//
  35. ;// Moved testing packet loss into this module for common use by encoder or dec
  36. ;//
  37. ;// Rev 1.5 29 Mar 1996 13:33:16 CZHU
  38. ;//
  39. ;// Moved bitstream verification from d3rtp.cpp to c3rtp.cpp
  40. ;//
  41. ;// Rev 1.4 23 Feb 1996 18:01:48 CZHU
  42. ;//
  43. ;// Rev 1.3 23 Feb 1996 17:23:58 CZHU
  44. ;//
  45. ;// Changed packet size adjustment
  46. ;//
  47. ;// Rev 1.2 15 Feb 1996 12:02:14 CZHU
  48. ;//
  49. ;// Rev 1.1 14 Feb 1996 15:01:34 CZHU
  50. ;// clean up
  51. ;//
  52. ;// Rev 1.0 12 Feb 1996 17:06:42 CZHU
  53. ;// Initial revision.
  54. ;//
  55. ;// Rev 1.0 29 Jan 1996 13:50:26 CZHU
  56. ;// Initial revision.
  57. ;//
  58. ;// Rev 1.2 04 Dec 1995 16:50:52 CZHU
  59. ;//
  60. ;// Rev 1.1 01 Dec 1995 15:54:12 CZHU
  61. ;// Included Init() and Term() functions.
  62. ;//
  63. ;// Rev 1.0 01 Dec 1995 15:31:10 CZHU
  64. ;// Initial revision.
  65. /*
  66. * This file is for RTP payload generation. See EPS for details
  67. *
  68. *
  69. */
  70. #ifndef _H261_RTP_C1RTP_
  71. #define _H261_RTP_C1RTP_
  72. const U32 DEFAULT_PACKET_SIZE = 512; //over IP
  73. const U32 DEFAULT_PACKET_SIZE_VARIANCE = 100;
  74. const U32 DEFAULT_FRAME_SIZE = 64 * 1024 / 5; //64KB at 5 fps
  75. const U32 H261_RTP_BS_START_CODE = FOURCC_H263;
  76. const U32 RTP_H26X_INTRA_CODED = 0x00000001;
  77. const U32 H26X_RTP_PAYLOAD_VERSION=0;
  78. const U32 RTP_H26X_PACKET_LOST =0x00000001;
  79. typedef struct {
  80. U32 uVersion;
  81. U32 uFlags;
  82. U32 uUniqueCode;
  83. U32 uCompressedSize;
  84. U32 uNumOfPackets;
  85. U8 u8Src;
  86. U8 u8TR;
  87. U8 u8TRB;
  88. U8 u8DBQ;
  89. } T_H26X_RTP_BSINFO_TRAILER;
  90. typedef struct {
  91. U32 uFlags;
  92. U32 uBitOffset;
  93. U8 u8MBA;
  94. U8 u8Quant;
  95. U8 u8GOBN;
  96. I8 i8HMV;
  97. I8 i8VMV;
  98. U8 u8Padding0;
  99. U16 u16Padding1;
  100. } T_RTP_H261_BSINFO ;
  101. extern I32 H26XRTP_VerifyBsInfoStream(T_H263DecoderCatalog *,U8 *, U32 );
  102. extern DWORD H261EstimateRTPOverhead(LPCODINST, LPBITMAPINFOHEADER);
  103. #endif