Debian Codegraph @

plugins/libwin32/videocodec/VideoDecoder.h

raw
1 #ifndef AVIFILE_VIDEODECODER_H
2 #define AVIFILE_VIDEODECODER_H
3
4 /********************************************************
5
6 Video decoder interface
7 Copyright 2000 Eugene Kuznetsov ([email protected])
8
9 *********************************************************/
10 #include "videodecoder.h"
11 #include "Module.h"
12
13 AVM_BEGIN_NAMESPACE;
14
15 class VideoDecoder: public IVideoDecoder
16 {
17 public:
18 VideoDecoder(const CodecInfo& info, const BITMAPINFOHEADER& format, int flip);
19 virtual ~VideoDecoder();
20 virtual int DecodeFrame(CImage* dest, const void* src, size_t size,
21 int is_keyframe, bool render = true,
22 CImage** pOut = 0);
23 virtual CAPS GetCapabilities() const { return m_Caps; }
24 virtual int SetDestFmt(int bits = 24, fourcc_t csp = 0);
25 virtual int Start();
26 virtual int Stop();
27 int init();
28 protected:
29 Module* m_pModule;
30 HIC m_HIC;
31 CAPS m_Caps;
32 int m_iStatus;
33 CImage* m_pLastImage;
34 BITMAPINFOHEADER* m_bitrick;
35 bool m_bLastNeeded;
36 bool m_divx_trick;
37 bool m_bUseEx;
38 bool m_bFlip;
39 void setDecoder(BitmapInfo& bi);
40 };
41
42 AVM_END_NAMESPACE;
43
44 #endif //AVIFILE_VIDEODECODER_H