Windows NT 4.0 source code leak
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.

168 lines
4.8 KiB

4 years ago
  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1994 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // imaadpcm.h
  13. //
  14. // Description:
  15. // This file contains prototypes for the filtering routines.
  16. //
  17. //
  18. //==========================================================================;
  19. #ifndef _IMAADPCM_H_
  20. #define _IMAADPCM_H_
  21. #ifndef RC_INVOKED
  22. #pragma pack(1) // assume byte packing throughout
  23. #endif
  24. #ifndef EXTERN_C
  25. #ifdef __cplusplus
  26. #define EXTERN_C extern "C"
  27. #else
  28. #define EXTERN_C extern
  29. #endif
  30. #endif
  31. #ifdef __cplusplus
  32. extern "C" // assume C declarations for C++
  33. {
  34. #endif
  35. //
  36. //
  37. //
  38. //
  39. #define IMAADPCM_MAX_CHANNELS 2
  40. #define IMAADPCM_BITS_PER_SAMPLE 4
  41. #define IMAADPCM_WFX_EXTRA_BYTES (sizeof(IMAADPCMWAVEFORMAT) - sizeof(WAVEFORMATEX))
  42. #define IMAADPCM_HEADER_LENGTH 4 // In bytes, per channel.
  43. #ifdef IMAADPCM_USECONFIG
  44. #define IMAADPCM_CONFIGTESTTIME 4 // seconds of PCM data for test.
  45. #define IMAADPCM_CONFIG_DEFAULT 0x0000
  46. #define IMAADPCM_CONFIG_DEFAULT_MAXRTENCODESETTING 5
  47. #define IMAADPCM_CONFIG_DEFAULT_MAXRTDECODESETTING 6
  48. #define IMAADPCM_CONFIG_UNCONFIGURED 0x0999
  49. #define IMAADPCM_CONFIG_DEFAULT_PERCENTCPU 50
  50. #define IMAADPCM_CONFIG_TEXTLEN 80
  51. #define IMAADPCM_CONFIG_DEFAULTKEY HKEY_CURRENT_USER
  52. #endif
  53. //
  54. // Conversion function prototypes.
  55. //
  56. DWORD FNGLOBAL imaadpcmDecode4Bit_M08
  57. (
  58. HPBYTE pbSrc,
  59. DWORD cbSrcLength,
  60. HPBYTE pbDst,
  61. UINT nBlockAlignment,
  62. UINT cSamplesPerBlock,
  63. int * pnStepIndexL,
  64. int * pnStepIndexR
  65. );
  66. DWORD FNGLOBAL imaadpcmDecode4Bit_M16
  67. (
  68. HPBYTE pbSrc,
  69. DWORD cbSrcLength,
  70. HPBYTE pbDst,
  71. UINT nBlockAlignment,
  72. UINT cSamplesPerBlock,
  73. int * pnStepIndexL,
  74. int * pnStepIndexR
  75. );
  76. DWORD FNGLOBAL imaadpcmDecode4Bit_S08
  77. (
  78. HPBYTE pbSrc,
  79. DWORD cbSrcLength,
  80. HPBYTE pbDst,
  81. UINT nBlockAlignment,
  82. UINT cSamplesPerBlock,
  83. int * pnStepIndexL,
  84. int * pnStepIndexR
  85. );
  86. DWORD FNGLOBAL imaadpcmDecode4Bit_S16
  87. (
  88. HPBYTE pbSrc,
  89. DWORD cbSrcLength,
  90. HPBYTE pbDst,
  91. UINT nBlockAlignment,
  92. UINT cSamplesPerBlock,
  93. int * pnStepIndexL,
  94. int * pnStepIndexR
  95. );
  96. DWORD FNGLOBAL imaadpcmEncode4Bit_M08
  97. (
  98. HPBYTE pbSrc,
  99. DWORD cbSrcLength,
  100. HPBYTE pbDst,
  101. UINT nBlockAlignment,
  102. UINT cSamplesPerBlock,
  103. int * pnStepIndexL,
  104. int * pnStepIndexR
  105. );
  106. DWORD FNGLOBAL imaadpcmEncode4Bit_M16
  107. (
  108. HPBYTE pbSrc,
  109. DWORD cbSrcLength,
  110. HPBYTE pbDst,
  111. UINT nBlockAlignment,
  112. UINT cSamplesPerBlock,
  113. int * pnStepIndexL,
  114. int * pnStepIndexR
  115. );
  116. DWORD FNGLOBAL imaadpcmEncode4Bit_S08
  117. (
  118. HPBYTE pbSrc,
  119. DWORD cbSrcLength,
  120. HPBYTE pbDst,
  121. UINT nBlockAlignment,
  122. UINT cSamplesPerBlock,
  123. int * pnStepIndexL,
  124. int * pnStepIndexR
  125. );
  126. DWORD FNGLOBAL imaadpcmEncode4Bit_S16
  127. (
  128. HPBYTE pbSrc,
  129. DWORD cbSrcLength,
  130. HPBYTE pbDst,
  131. UINT nBlockAlignment,
  132. UINT cSamplesPerBlock,
  133. int * pnStepIndexL,
  134. int * pnStepIndexR
  135. );
  136. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  137. //
  138. //
  139. //
  140. //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
  141. #ifndef RC_INVOKED
  142. #pragma pack() // revert to default packing
  143. #endif
  144. #ifdef __cplusplus
  145. } // end of extern "C" {
  146. #endif
  147. #endif // _IMAADPCM_H_