#pragma once #define _DECODER_INTERFACE_EXPORT_ #include "DecoderFactory.h" #include "decoder_hw_d.h" class DecoderHardwareDInterface : public DecoderInterface { public: DecoderHardwareDInterface(void); ~DecoderHardwareDInterface(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_Hardware_D decoder; };