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.

294 lines
12 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: SC_err.h,v $
  7. * Revision 1.1.4.2 1996/12/03 00:08:28 Hans_Graves
  8. * Added SvErrorEndOfSequence error.
  9. * [1996/12/03 00:07:34 Hans_Graves]
  10. *
  11. * Revision 1.1.2.7 1995/08/04 16:32:25 Karen_Dintino
  12. * New error codes for H.261
  13. * [1995/08/04 16:24:25 Karen_Dintino]
  14. *
  15. * Revision 1.1.2.6 1995/07/26 17:48:54 Hans_Graves
  16. * Added ErrorClientEnd errors.
  17. * [1995/07/26 17:44:27 Hans_Graves]
  18. *
  19. * Revision 1.1.2.5 1995/07/11 22:11:27 Karen_Dintino
  20. * Add new H.261 Error Codes
  21. * [1995/07/11 21:52:53 Karen_Dintino]
  22. *
  23. * Revision 1.1.2.4 1995/07/11 14:50:45 Hans_Graves
  24. * Added ScErrorNet* errors
  25. * [1995/07/11 14:24:18 Hans_Graves]
  26. *
  27. * Revision 1.1.2.3 1995/06/22 21:35:04 Hans_Graves
  28. * Added ScErrorDevOpen and fixed some error numbers
  29. * [1995/06/22 21:31:32 Hans_Graves]
  30. *
  31. * Revision 1.1.2.2 1995/05/31 18:09:28 Hans_Graves
  32. * Inclusion in new SLIB location.
  33. * [1995/05/31 15:25:17 Hans_Graves]
  34. *
  35. * Revision 1.1.2.2 1995/05/03 19:26:59 Hans_Graves
  36. * Included in SLIB (Oct 95)
  37. * [1995/05/03 19:23:33 Hans_Graves]
  38. *
  39. * Revision 1.1.2.2 1995/04/07 19:19:26 Hans_Graves
  40. * Expanded to include new libraries: Sg,Su,Sa,Sr
  41. * [1995/04/07 19:11:07 Hans_Graves]
  42. *
  43. * $EndLog$
  44. */
  45. /*****************************************************************************
  46. ** Copyright (c) Digital Equipment Corporation, 1993 **
  47. ** **
  48. ** All Rights Reserved. Unpublished rights reserved under the copyright **
  49. ** laws of the United States. **
  50. ** **
  51. ** The software contained on this media is proprietary to and embodies **
  52. ** the confidential technology of Digital Equipment Corporation. **
  53. ** Possession, use, duplication or dissemination of the software and **
  54. ** media is authorized only pursuant to a valid written license from **
  55. ** Digital Equipment Corporation. **
  56. ** **
  57. ** RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S. **
  58. ** Government is subject to restrictions as set forth in Subparagraph **
  59. ** (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable. **
  60. ******************************************************************************/
  61. /*----------------------------------------------------------------------------
  62. * Modification History: SC_err.h (previously SV_err.h)
  63. *
  64. * 05-Nov-1991 Victor Bahl & Bob Ulichney creation date
  65. * 07-Oct-1994 Paul Gauthier SLIB v3.0 incl. MPEG Decode
  66. * 09-Nov-1994 Paul Gauthier Optimizations
  67. *--------------------------------------------------------------------------*/
  68. #ifndef _SC_ERR_H_
  69. #define _SC_ERR_H_
  70. /*
  71. ** List of possible errors that can be returned from routines in any
  72. ** of SLIB libraries.
  73. */
  74. /******************** Error Offsets **********************************/
  75. #define ERR_SC 0x0000 /* Common Error */
  76. #define ERR_SV 0x1000 /* Video Error */
  77. #define ERR_SA 0x2000 /* Audio Error */
  78. #define ERR_SR 0x3000 /* Render Error */
  79. #define NoErrors 0
  80. /******************** Sc (common) Errors ****************************/
  81. #define ScErrorNone NoErrors
  82. #define ScErrorForeign (ERR_SC+1)
  83. #define ScErrorMemory (ERR_SC+2)
  84. #define ScErrorBadPointer (ERR_SC+3)
  85. #define ScErrorNullStruct (ERR_SC+4)
  86. #define ScErrorFile (ERR_SC+5)
  87. #define ScErrorEOI (ERR_SC+6)
  88. #define ScErrorBadArgument (ERR_SC+7)
  89. #define ScErrorSmallBuffer (ERR_SC+8)
  90. #define ScErrorUnrecognizedFormat (ERR_SC+9)
  91. #define ScErrorEndBitstream (ERR_SC+10)
  92. #define ScErrorMapFile (ERR_SC+11)
  93. #define ScErrorBadQueueEmpty (ERR_SC+12)
  94. #define ScErrorClientEnd (ERR_SC+13)
  95. #define ScErrorDevOpen (ERR_SC+14)
  96. #define ScErrorNetConnectIn (ERR_SC+15)
  97. #define ScErrorNetConnectOut (ERR_SC+16)
  98. #define ScErrorNetProtocol (ERR_SC+17)
  99. #define ScErrorNetSend (ERR_SC+18)
  100. #define ScErrorNetReceive (ERR_SC+19)
  101. #define ScErrorNetBadHeader (ERR_SC+20)
  102. #define ScErrorNetBadTrailer (ERR_SC+21)
  103. #define ScErrorNetChecksum (ERR_SC+22)
  104. /******************** Sv (video) Errors ****************************/
  105. #ifdef ERR_SV
  106. #define SvErrorNone NoErrors
  107. #define SvErrorMemory ScErrorMemory
  108. #define SvErrorBadPointer ScErrorBadPointer
  109. #define SvErrorNullStruct ScErrorNullStruct
  110. #define SvErrorBadArgument ScErrorBadArgument
  111. #define SvErrorSmallBuffer ScErrorSmallBuffer
  112. #define SvErrorEndBitstream ScErrorEndBitstream
  113. #define SvErrorClientEnd ScErrorClientEnd
  114. #define SvErrorCodecType (ERR_SV+2)
  115. #define SvErrorCodecHandle (ERR_SV+3)
  116. #define SvErrorNullCodec (ERR_SV+4)
  117. #define SvErrorNullToken (ERR_SV+5)
  118. #define SvErrorSyncLost (ERR_SV+6)
  119. #define SvErrorLevels (ERR_SV+7)
  120. #define SvErrorOrder (ERR_SV+8)
  121. #define SvErrorLevNoneg (ERR_SV+9)
  122. #define SvErrorLev1K (ERR_SV+10)
  123. #define SvErrorLevGt0 (ERR_SV+11)
  124. #define SvErrorYuvOnly (ERR_SV+13)
  125. #define SvErrorDevOpen (ERR_SV+14)
  126. #define SvErrorDevMap (ERR_SV+15)
  127. #define SvErrorStatQueMap (ERR_SV+16)
  128. #define SvErrorDevLock (ERR_SV+17)
  129. #define SvErrorDevUlock (ERR_SV+18)
  130. #define SvErrorCache (ERR_SV+19)
  131. #define SvErrorPageAll (ERR_SV+20)
  132. #define SvErrorTimeOut (ERR_SV+21)
  133. #define SvErrorSelect (ERR_SV+22)
  134. #define SvErrorMapOvrfl (ERR_SV+23)
  135. #define SvErrorForeign (ERR_SV+24)
  136. #define SvErrorIIC (ERR_SV+25)
  137. #define SvErrorCompPtrs (ERR_SV+26)
  138. #define SvErrorVideoInput (ERR_SV+27)
  139. #define SvErrorPhase (ERR_SV+28)
  140. #define SvErrorCmdQueMap (ERR_SV+29)
  141. #define SvErrorTmpQueMap (ERR_SV+30)
  142. #define SvErrorStart (ERR_SV+31)
  143. #define SvErrorStop (ERR_SV+32)
  144. #define SvErrorWaitMix (ERR_SV+33)
  145. #define SvErrorClose (ERR_SV+34)
  146. #define SvErrorCmdQFull (ERR_SV+35)
  147. #define SvErrorPictureOp (ERR_SV+36)
  148. #define SvErrorRefToken (ERR_SV+37)
  149. #define SvErrorEditChange (ERR_SV+38)
  150. #define SvErrorCompROI (ERR_SV+39)
  151. #define SvErrorBufOverlap (ERR_SV+40)
  152. #define SvErrorReqQueueFull (ERR_SV+41)
  153. #define SvErrorCompBufOverflow (ERR_SV+42)
  154. #define SvErrorFunctionInputs (ERR_SV+43)
  155. #define SvErrorIICAck (ERR_SV+44)
  156. #define SvErrorCompressedData (ERR_SV+45)
  157. #define SvErrorDecompPreload (ERR_SV+46)
  158. #define SvErrorHuffCode (ERR_SV+47)
  159. #define SvErrorOutOfData (ERR_SV+48)
  160. #define SvErrorMarkerFound (ERR_SV+49)
  161. #define SvErrorSgMapsExhausted (ERR_SV+50)
  162. #define SvErrorSgMapInit (ERR_SV+51)
  163. #define SvErrorSgMapAlreadyFree (ERR_SV+52)
  164. #define SvErrorSgMapId (ERR_SV+53)
  165. #define SvErrorNumBytes (ERR_SV+54)
  166. #define SvErrorDevName (ERR_SV+55)
  167. #define SvErrorAnalogPortTiming (ERR_SV+56)
  168. #define SvErrorFrameMode (ERR_SV+57)
  169. #define SvErrorSampFactors (ERR_SV+58)
  170. #define SvErrorNumComponents (ERR_SV+59)
  171. #define SvErrorDHTTable (ERR_SV+60)
  172. #define SvErrorQuantTable (ERR_SV+61)
  173. #define SvErrorRestartInterval (ERR_SV+62)
  174. #define SvErrorJfifRev (ERR_SV+63)
  175. #define SvErrorEmptyJPEG (ERR_SV+64)
  176. #define SvErrorJPEGPrecision (ERR_SV+65)
  177. #define SvErrorSOFLength (ERR_SV+66)
  178. #define SvErrorSOSLength (ERR_SV+67)
  179. #define SvErrorSOSCompNum (ERR_SV+68)
  180. #define SvErrorMarker (ERR_SV+69)
  181. #define SvErrorSOFType (ERR_SV+70)
  182. #define SvErrorFrameNum (ERR_SV+71)
  183. #define SvErrorHuffUndefined (ERR_SV+72)
  184. #define SvErrorJPEGData (ERR_SV+73)
  185. #define SvErrorQMismatch (ERR_SV+74)
  186. #define SvErrorEmptyFlush (ERR_SV+75)
  187. #define SvErrorDmaChan (ERR_SV+76)
  188. #define SvErrorFuture (ERR_SV+77)
  189. #define SvErrorWrongev (ERR_SV+78)
  190. #define SvErrorUnknev (ERR_SV+79)
  191. #define SvErrorQueueExecuting (ERR_SV+80)
  192. #define SvErrorReturnAddr (ERR_SV+81)
  193. #define SvErrorObjClass (ERR_SV+82)
  194. #define SvErrorRegAnchor (ERR_SV+83)
  195. #define SvErrorTimerRead (ERR_SV+84)
  196. #define SvErrorDriverFatal (ERR_SV+85)
  197. #define SvErrorChromaSubsample (ERR_SV+86)
  198. #define SvErrorReadBufSize (ERR_SV+87)
  199. #define SvErrorQuality (ERR_SV+88)
  200. #define SvErrorBadImageSize (ERR_SV+89)
  201. #define SvErrorValue (ERR_SV+90)
  202. #define SvErrorDcmpNotStarted (ERR_SV+91)
  203. #define SvErrorNotImplemented (ERR_SV+92)
  204. #define SvErrorNoSOIMarker (ERR_SV+93)
  205. #define SvErrorProcessingAborted (ERR_SV+94)
  206. #define SvErrorCompNotStarted (ERR_SV+95)
  207. #define SvErrorNotAligned (ERR_SV+96)
  208. #define SvErrorBadQueueEmpty (ERR_SV+97)
  209. #define SvErrorCannotDecompress (ERR_SV+98)
  210. #define SvErrorMultiBufChanged (ERR_SV+99)
  211. #define SvErrorNotDecompressable (ERR_SV+100)
  212. #define SvErrorIndexEmpty (ERR_SV+101)
  213. #define SvErrorFile (ERR_SV+102)
  214. #define SvErrorEOI (ERR_SV+103)
  215. #define SvErrorUnrecognizedFormat (ERR_SV+104)
  216. #define SvErrorIllegalMType (ERR_SV+105)
  217. #define SvErrorExpectedEOB (ERR_SV+106)
  218. #define SvErrorNoCompressBuffer (ERR_SV+107)
  219. #define SvErrorNoImageBuffer (ERR_SV+108)
  220. #define SvErrorCBPWrite (ERR_SV+109)
  221. #define SvErrorEncodingMV (ERR_SV+110)
  222. #define SvErrorEmptyHuff (ERR_SV+111)
  223. #define SvErrorIllegalGBSC (ERR_SV+112)
  224. #define SvErrorEndOfSequence (ERR_SV+113)
  225. #endif ERR_SV
  226. /******************** Sa (video) Errors ****************************/
  227. #ifdef ERR_SA
  228. #define SaErrorNone NoErrors
  229. #define SaErrorMemory ScErrorMemory
  230. #define SaErrorBadPointer ScErrorBadPointer
  231. #define SaErrorUnrecognizedFormat ScErrorUnrecognizedFormat
  232. #define SaErrorNullStruct ScErrorNullStruct
  233. #define SaErrorFile ScErrorFile
  234. #define SaErrorEOI ScErrorEOI
  235. #define SaErrorBadArgument ScErrorBadArgument
  236. #define SaErrorSmallBuffer ScErrorSmallBuffer
  237. #define SaErrorClientEnd ScErrorClientEnd
  238. #define SaErrorCodecType (ERR_SA+1)
  239. #define SaErrorCodecHandle (ERR_SA+2)
  240. #define SaErrorNullCodec (ERR_SA+3)
  241. #define SaErrorSyncLost (ERR_SA+4)
  242. #define SaErrorMPEGLayer (ERR_SA+5)
  243. #define SaErrorMPEGModeExt (ERR_SA+6)
  244. #define SaErrorNoCompressBuffer (ERR_SA+7)
  245. #define SaErrorNoAudioBuffer (ERR_SA+8)
  246. #endif ERR_SA
  247. /******************** Sr (render) Errors ****************************/
  248. #ifdef ERR_SR
  249. #define SrErrorNone NoErrors
  250. #define SrErrorMemory ScErrorMemory
  251. #define SrErrorBadPointer ScErrorBadPointer
  252. #define SrErrorUnrecognizedFormat ScErrorUnrecognizedFormat
  253. #define SrErrorNullStruct ScErrorNullStruct
  254. #define SrErrorFile ScErrorFile
  255. #define SrErrorEOI ScErrorEOI
  256. #define SrErrorBadArgument ScErrorBadArgument
  257. #define SrErrorSmallBuffer ScErrorSmallBuffer
  258. #define SrErrorClientEnd ScErrorClientEnd
  259. #define SrErrorRenderType (ERR_SR+1)
  260. #define SrErrorRenderHandle (ERR_SR+2)
  261. #define SrErrorRenderNotStarted (ERR_SR+3)
  262. #define SrErrorDitherNOL (ERR_SR+4)
  263. #define SrErrorDitherPhase (ERR_SR+5)
  264. #define SrErrorDefSteepness (ERR_SR+6)
  265. #define SrErrorSteepness (ERR_SR+7)
  266. #define SrErrorDefYoffset (ERR_SR+8)
  267. #define SrErrorYoffset (ERR_SR+9)
  268. #define SrErrorDefXoffset (ERR_SR+10)
  269. #define SrErrorXoffset (ERR_SR+11)
  270. #define SrErrorNumColors (ERR_SR+12)
  271. #define SrErrorBadNumColors (ERR_SR+13)
  272. #define SrErrorColorSpace (ERR_SR+14)
  273. #define SrErrorBadImageSize (ERR_SR+15)
  274. #define SrErrorValue (ERR_SR+16)
  275. #endif ERR_SR
  276. #endif _S_ERR_H_