comp_interface.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /****************************************************************************
  2. *
  3. * Module Title : comp_interface.h
  4. *
  5. * Description : Interface to video codec demo compressor DLL
  6. *
  7. ****************************************************************************/
  8. #ifndef __INC_COMP_INTERFACE_H
  9. #define __INC_COMP_INTERFACE_H
  10. /****************************************************************************
  11. * Include Files
  12. ****************************************************************************/
  13. #include "type_aliases.h"
  14. #include "codec_common_interface.h"
  15. #include "vp60_comp_interface.h"
  16. /****************************************************************************
  17. * Macros
  18. ****************************************************************************/
  19. // C4514 Unreferenced inline function has been removed
  20. #ifdef _MSC_VER
  21. #pragma warning(disable: 4514)
  22. #endif
  23. /****************************************************************************
  24. * Typedefs
  25. ****************************************************************************/
  26. typedef struct CP_INSTANCE * xCP_INST;
  27. /****************************************************************************
  28. * Exports
  29. ****************************************************************************/
  30. #ifdef __cplusplus
  31. extern "C"
  32. {
  33. #endif
  34. extern BOOL CCONV StartEncoder ( xCP_INST *cpi, COMP_CONFIG_VP6 *CompConfig );
  35. extern void CCONV ChangeCompressorSetting ( xCP_INST cpi, C_SETTING Setting, int Value );
  36. extern void CCONV ChangeEncoderConfig ( xCP_INST cpi, COMP_CONFIG_VP6 *CompConfig );
  37. extern UINT32 CCONV EncodeFrame ( xCP_INST cpi, unsigned char *InBmpIPtr, unsigned char *InBmpPtr, unsigned char *OutPutPtr, unsigned int *is_key );
  38. extern UINT32 CCONV EncodeFrameYuv ( xCP_INST cpi, YUV_INPUT_BUFFER_CONFIG *YuvInputData, unsigned char *OutPutPtr, unsigned int *is_key );
  39. extern BOOL CCONV StopEncoder ( xCP_INST *cpi );
  40. extern void VPEInitLibrary ( void );
  41. extern void VPEDeInitLibrary ( void );
  42. extern const char *CCONV VP50E_GetVersionNumber ( void );
  43. extern UINT32 CCONV VPGetState ( xCP_INST cpi, void *ret );
  44. extern void CCONV VPSetState ( xCP_INST cpi, void *ret );
  45. extern int CCONV VPGetPB ( xCP_INST cpi );
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif