#pragma once #define _DECODER_INTERFACE_EXPORT_ #include "DecoderFactory.h" #include "decoder_sw.h" class DecoderSoftwareInterface : public DecoderInterface { public: DecoderSoftwareInterface(void); ~DecoderSoftwareInterface(void); bool init(int srcWth,int srcHth,int dstWth = 0,int dstHth = 0,int oPixFmt = 0,HWND hwnd = 0); void decoding(unsigned char* in_buf,int in_len); void release(); void setDecodingCallback(CallbackFun fun); private: Decoder_Software decoder; };