added decoding of avcodec

This commit is contained in:
csoler 2015-08-19 22:17:50 -04:00
parent 043fe53789
commit 9798c78e20
2 changed files with 146 additions and 102 deletions

View file

@ -72,10 +72,13 @@ protected:
virtual bool decodeData(const RsVOIPDataChunk& chunk,QImage& image) ;
private:
AVCodec *codec;
AVCodecContext *context;
AVFrame *frame_buffer ;
uint64_t frame_count ;
AVCodec *encoding_codec;
AVCodec *decoding_codec;
AVCodecContext *encoding_context;
AVCodecContext *decoding_context;
AVFrame *encoding_frame_buffer ;
AVFrame *decoding_frame_buffer ;
uint64_t encoding_frame_count ;
};
// This class decodes video from a stream. It keeps a queue of