1
0

comp_interface.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #if !defined(COMP_INTERFACE_H)
  2. #define COMP_INTERFACE_H
  3. /****************************************************************************
  4. *
  5. * Module Title : COMP_INTERFACE.H
  6. *
  7. * Description : Interface to video codec demo compressor DLL
  8. *
  9. * AUTHOR : Paul Wilkins
  10. *
  11. *****************************************************************************
  12. * Revision History
  13. *
  14. * 1.04 JBB 26 AUG 00 JBB Added fixed q setting
  15. * 1.03 PGW 07/12/99 Retro fit JBB changes
  16. * 1.02 PGW 16/09/99 Interface changes to simplify things for command line
  17. * compressor.
  18. * 1.01 PGW 07/07/99 Added COMP_CONFIG.
  19. * 1.00 PGW 28/06/99 New configuration baseline
  20. *
  21. *****************************************************************************
  22. */
  23. // C4514 Unreferenced inline function has been removed
  24. #pragma warning(disable: 4514)
  25. #include "codec_common_interface.h"
  26. #include "type_aliases.h"
  27. #include "vp50_comp_interface.h"
  28. #ifdef __cplusplus
  29. extern "C"
  30. {
  31. #endif
  32. typedef struct CP_INSTANCE * xCP_INST;
  33. extern BOOL CCONV StartEncoder( xCP_INST *cpi, COMP_CONFIG_VP5 * CompConfig );
  34. extern void CCONV ChangeCompressorSetting ( xCP_INST cpi, C_SETTING Setting, int Value );
  35. extern void CCONV ChangeEncoderConfig ( xCP_INST cpi, COMP_CONFIG_VP5 * CompConfig );
  36. extern UINT32 CCONV EncodeFrame( xCP_INST cpi, unsigned char * InBmpIPtr, unsigned char * InBmpPtr, unsigned char * OutPutPtr, unsigned int * is_key );
  37. extern UINT32 CCONV EncodeFrameYuv( xCP_INST cpi, YUV_INPUT_BUFFER_CONFIG * YuvInputData, unsigned char * OutPutPtr, unsigned int * is_key );
  38. extern BOOL CCONV StopEncoder( xCP_INST *cpi);
  39. extern void VPEInitLibrary(void);
  40. extern void VPEDeInitLibrary(void);
  41. extern const char * CCONV VP50E_GetVersionNumber(void);
  42. extern UINT32 CCONV VPGetState(xCP_INST cpi, void * ret);
  43. extern void CCONV VPSetState(xCP_INST cpi, void * ret);
  44. extern int CCONV VPGetPB(xCP_INST cpi);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif