You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FP_ViewOnPlane/Src/Decoder_H264_ALL/DecoderSoftwareInterface.cpp

29 lines
655 B
C++

#include "DecoderSoftwareInterface.h"
DecoderSoftwareInterface::DecoderSoftwareInterface(void)
{
}
DecoderSoftwareInterface::~DecoderSoftwareInterface(void)
{
}
bool DecoderSoftwareInterface::init(int srcWth,int srcHth,int dstWth,int dstHth,int oPixFmt,HWND hwnd)
{
return decoder.decoder_sw_init(srcWth,srcHth,dstWth,dstHth,oPixFmt);
}
void DecoderSoftwareInterface::decoding(unsigned char* in_buf,int in_len)
{
decoder.decoder_sw_decoding(in_buf,in_len);
}
void DecoderSoftwareInterface::release()
{
decoder.decoder_sw_release();
}
void DecoderSoftwareInterface::setDecodingCallback(CallbackFun fun)
{
decoder.set_decoding_callback(fun);
}