Use calloc to allocate the af_resample ring buffers, reportedly using
[mplayer/glamo.git] / loader / dmo / DMO_VideoDecoder.h
blob9e6269be22e822ccd3142b01b5f51858e208c525
1 #ifndef MPLAYER_DMO_VIDEODECODER_H
2 #define MPLAYER_DMO_VIDEODECODER_H
4 typedef struct DMO_VideoDecoder DMO_VideoDecoder;
6 int DMO_VideoDecoder_GetCapabilities(DMO_VideoDecoder *this);
8 DMO_VideoDecoder * DMO_VideoDecoder_Open(char* dllname, GUID* guid, BITMAPINFOHEADER * format, int flip, int maxauto);
10 void DMO_VideoDecoder_Destroy(DMO_VideoDecoder *this);
12 void DMO_VideoDecoder_StartInternal(DMO_VideoDecoder *this);
14 void DMO_VideoDecoder_StopInternal(DMO_VideoDecoder *this);
16 int DMO_VideoDecoder_DecodeInternal(DMO_VideoDecoder *this, const void* src, int size, int is_keyframe, char* pImage);
19 * bits == 0 - leave unchanged
21 //int SetDestFmt(DMO_VideoDecoder * this, int bits = 24, fourcc_t csp = 0);
22 int DMO_VideoDecoder_SetDestFmt(DMO_VideoDecoder *this, int bits, unsigned int csp);
23 int DMO_VideoDecoder_SetDirection(DMO_VideoDecoder *this, int d);
26 #endif /* MPLAYER_DMO_VIDEODECODER_H */