2001-08-16 00:50:02 +00:00
|
|
|
#ifndef AVIFILE_DS_VIDEODECODER_H
|
|
|
|
#define AVIFILE_DS_VIDEODECODER_H
|
|
|
|
|
2002-01-02 17:11:09 +00:00
|
|
|
typedef struct _DS_VideoDecoder DS_VideoDecoder;
|
2001-11-21 23:42:06 +00:00
|
|
|
|
|
|
|
int DS_VideoDecoder_GetCapabilities(DS_VideoDecoder *this);
|
|
|
|
|
2001-12-10 21:53:13 +00:00
|
|
|
DS_VideoDecoder * DS_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto);
|
2001-11-21 23:42:06 +00:00
|
|
|
|
|
|
|
void DS_VideoDecoder_Destroy(DS_VideoDecoder *this);
|
|
|
|
|
|
|
|
void DS_VideoDecoder_StartInternal(DS_VideoDecoder *this);
|
|
|
|
|
|
|
|
void DS_VideoDecoder_StopInternal(DS_VideoDecoder *this);
|
|
|
|
|
2001-11-22 03:16:31 +00:00
|
|
|
int DS_VideoDecoder_DecodeInternal(DS_VideoDecoder *this, const void* src, int size, int is_keyframe, char* pImage);
|
2001-11-21 23:42:06 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* bits == 0 - leave unchanged
|
|
|
|
*/
|
|
|
|
//int SetDestFmt(DS_VideoDecoder * this, int bits = 24, fourcc_t csp = 0);
|
2002-01-02 17:11:09 +00:00
|
|
|
int DS_VideoDecoder_SetDestFmt(DS_VideoDecoder *this, int bits, unsigned int csp);
|
2001-11-21 23:42:06 +00:00
|
|
|
int DS_VideoDecoder_SetDirection(DS_VideoDecoder *this, int d);
|
2002-01-02 17:11:09 +00:00
|
|
|
int DS_VideoDecoder_GetValue(DS_VideoDecoder *this, const char* name, int* value);
|
|
|
|
int DS_VideoDecoder_SetValue(DS_VideoDecoder *this, const char* name, int value);
|
2001-11-21 23:42:06 +00:00
|
|
|
|
2001-08-16 00:50:02 +00:00
|
|
|
|
|
|
|
#endif /* AVIFILE_DS_VIDEODECODER_H */
|