diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/libvp6/include/vp60/comp_interface.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/libvp6/include/vp60/comp_interface.h')
-rw-r--r-- | Src/libvp6/include/vp60/comp_interface.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Src/libvp6/include/vp60/comp_interface.h b/Src/libvp6/include/vp60/comp_interface.h new file mode 100644 index 00000000..add9a5c9 --- /dev/null +++ b/Src/libvp6/include/vp60/comp_interface.h @@ -0,0 +1,55 @@ +/**************************************************************************** +* +* Module Title : comp_interface.h +* +* Description : Interface to video codec demo compressor DLL +* +****************************************************************************/ +#ifndef __INC_COMP_INTERFACE_H +#define __INC_COMP_INTERFACE_H + +/**************************************************************************** +* Include Files +****************************************************************************/ +#include "type_aliases.h" +#include "codec_common_interface.h" +#include "vp60_comp_interface.h" + +/**************************************************************************** +* Macros +****************************************************************************/ +// C4514 Unreferenced inline function has been removed +#ifdef _MSC_VER +#pragma warning(disable: 4514) +#endif +/**************************************************************************** +* Typedefs +****************************************************************************/ +typedef struct CP_INSTANCE * xCP_INST; + +/**************************************************************************** +* Exports +****************************************************************************/ +#ifdef __cplusplus +extern "C" +{ +#endif + +extern BOOL CCONV StartEncoder ( xCP_INST *cpi, COMP_CONFIG_VP6 *CompConfig ); +extern void CCONV ChangeCompressorSetting ( xCP_INST cpi, C_SETTING Setting, int Value ); +extern void CCONV ChangeEncoderConfig ( xCP_INST cpi, COMP_CONFIG_VP6 *CompConfig ); +extern UINT32 CCONV EncodeFrame ( xCP_INST cpi, unsigned char *InBmpIPtr, unsigned char *InBmpPtr, unsigned char *OutPutPtr, unsigned int *is_key ); +extern UINT32 CCONV EncodeFrameYuv ( xCP_INST cpi, YUV_INPUT_BUFFER_CONFIG *YuvInputData, unsigned char *OutPutPtr, unsigned int *is_key ); +extern BOOL CCONV StopEncoder ( xCP_INST *cpi ); +extern void VPEInitLibrary ( void ); +extern void VPEDeInitLibrary ( void ); +extern const char *CCONV VP50E_GetVersionNumber ( void ); +extern UINT32 CCONV VPGetState ( xCP_INST cpi, void *ret ); +extern void CCONV VPSetState ( xCP_INST cpi, void *ret ); +extern int CCONV VPGetPB ( xCP_INST cpi ); + +#ifdef __cplusplus +} +#endif + +#endif |