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.

109 lines
3.5 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: sa_internals.h,v $
  7. * Revision 1.1.6.2 1996/11/08 21:50:56 Hans_Graves
  8. * Added AC3 stuff.
  9. * [1996/11/08 21:18:56 Hans_Graves]
  10. *
  11. * Revision 1.1.4.2 1996/03/29 22:21:09 Hans_Graves
  12. * Added MPEG_SUPPORT and GSM_SUPPORT ifdefs
  13. * [1996/03/29 21:47:46 Hans_Graves]
  14. *
  15. * Revision 1.1.2.4 1995/07/21 17:41:04 Hans_Graves
  16. * Renamed Callback related stuff.
  17. * [1995/07/21 17:28:24 Hans_Graves]
  18. *
  19. * Revision 1.1.2.3 1995/06/27 13:54:25 Hans_Graves
  20. * Added SaGSMInfo_t structure.
  21. * [1995/06/27 13:17:39 Hans_Graves]
  22. *
  23. * Revision 1.1.2.2 1995/05/31 18:09:41 Hans_Graves
  24. * Inclusion in new SLIB location.
  25. * [1995/05/31 15:30:39 Hans_Graves]
  26. *
  27. * Revision 1.1.2.3 1995/04/17 18:25:06 Hans_Graves
  28. * Added BSOut to CodecInfo struct for streaming
  29. * [1995/04/17 18:24:31 Hans_Graves]
  30. *
  31. * Revision 1.1.2.2 1995/04/07 19:36:05 Hans_Graves
  32. * Inclusion in SLIB
  33. * [1995/04/07 19:25:01 Hans_Graves]
  34. *
  35. * $EndLog$
  36. */
  37. /*****************************************************************************
  38. ** Copyright (c) Digital Equipment Corporation, 1995 **
  39. ** **
  40. ** All Rights Reserved. Unpublished rights reserved under the copyright **
  41. ** laws of the United States. **
  42. ** **
  43. ** The software contained on this media is proprietary to and embodies **
  44. ** the confidential technology of Digital Equipment Corporation. **
  45. ** Possession, use, duplication or dissemination of the software and **
  46. ** media is authorized only pursuant to a valid written license from **
  47. ** Digital Equipment Corporation. **
  48. ** **
  49. ** RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S. **
  50. ** Government is subject to restrictions as set forth in Subparagraph **
  51. ** (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable. **
  52. ******************************************************************************/
  53. #ifndef _SA_INTERNALS_H_
  54. #define _SA_INTERNALS_H_
  55. #include "SC.h"
  56. #include "SA.h"
  57. #ifdef MPEG_SUPPORT
  58. #include "sa_mpeg.h"
  59. #endif /* MPEG_SUPPORT */
  60. #ifdef GSM_SUPPORT
  61. #include "sa_gsm.h"
  62. #endif /* GSM_SUPPORT */
  63. #ifdef AC3_SUPPORT
  64. #include "sa_ac3.h"
  65. #endif /* AC3_SUPPORT */
  66. #ifdef G723_SUPPORT
  67. #include "sa_g723.h"
  68. #endif /* G723_SUPPORT */
  69. typedef struct SaCodecInfo_s {
  70. SaCodecType_e Type;
  71. ScBoolean_t started; /* begin was called? */
  72. SaInfo_t Info;
  73. union {
  74. void *info;
  75. #ifdef MPEG_SUPPORT
  76. SaMpegDecompressInfo_t *MDInfo;
  77. SaMpegCompressInfo_t *MCInfo;
  78. #endif /* !MPEG_SUPPORT */
  79. #ifdef GSM_SUPPORT
  80. SaGSMInfo_t *GSMInfo;
  81. #endif /* !GSM_SUPPORT */
  82. #ifdef AC3_SUPPORT
  83. SaAC3DecompressInfo_t *AC3Info;
  84. #endif /* !AC3_SUPPORT */
  85. #ifdef G723_SUPPORT
  86. SaG723Info_t *pSaG723Info;
  87. #endif /* !G723_SUPPORT */
  88. }; /* union */
  89. ScQueue_t *Q;
  90. ScBitstream_t *BSIn;
  91. ScBitstream_t *BSOut;
  92. WAVEFORMATEX *wfIn;
  93. WAVEFORMATEX *wfOut;
  94. /*
  95. ** Callback function to control processing
  96. */
  97. int (* CallbackFunction)(SaHandle_t, SaCallbackInfo_t *, SaInfo_t *);
  98. } SaCodecInfo_t;
  99. #endif _SA_INTERNALS_H_