codec_common_interface.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. /****************************************************************************
  12. *
  13. * Module Title : codec_common_if.H
  14. *
  15. * Description : Interface to video codec demo decompressor DLL
  16. *
  17. *****************************************************************************
  18. */
  19. #ifndef CODEC_COMMON_INTERFACE_H
  20. #define CODEC_COMMON_INTERFACE_H
  21. #define __export
  22. #define _export
  23. #define DllExport __declspec( dllexport )
  24. #define DllImport __declspec( dllimport )
  25. // Playback ERROR Codes.
  26. #define NO_DECODER_ERROR 0
  27. #define REMOTE_DECODER_ERROR -1
  28. #define DFR_BAD_DCT_COEFF -100
  29. #define DFR_ZERO_LENGTH_FRAME -101
  30. #define DFR_FRAME_SIZE_INVALID -102
  31. #define DFR_OUTPUT_BUFFER_OVERFLOW -103
  32. #define DFR_INVALID_FRAME_HEADER -104
  33. #define FR_INVALID_MODE_TOKEN -110
  34. #define ETR_ALLOCATION_ERROR -200
  35. #define ETR_INVALID_ROOT_PTR -201
  36. #define SYNCH_ERROR -400
  37. #define BUFFER_UNDERFLOW_ERROR -500
  38. #define PB_IB_OVERFLOW_ERROR -501
  39. // External error triggers
  40. #define PB_HEADER_CHECKSUM_ERROR -601
  41. #define PB_DATA_CHECKSUM_ERROR -602
  42. // DCT Error Codes
  43. #define DDCT_EXPANSION_ERROR -700
  44. #define DDCT_INVALID_TOKEN_ERROR -701
  45. // ExceptionErrors
  46. #define GEN_EXCEPTIONS -800
  47. #define EX_UNQUAL_ERROR -801
  48. // Unrecoverable error codes
  49. #define FATAL_PLAYBACK_ERROR -1000
  50. #define GEN_ERROR_CREATING_CDC -1001
  51. #define GEN_THREAD_CREATION_ERROR -1002
  52. #define DFR_CREATE_BMP_FAILED -1003
  53. #endif