Add file to include functions for libav interface! Rename ImageInterface.

This commit is contained in:
jfmcarreira committed 2014-02-01 20:15:21 +00:00
1 parent dae8b84c6c
commit 3ea4aad26f
8 files changed
+324 -246

No files matched your search

+1 -38
View File
@@ -36,17 +36,8 @@
#include <opencv2/opencv.hpp>
#endif
#ifdef USE_FFMPEG
extern "C"
{
#include "libavutil/imgutils.h"
#include "libavutil/samplefmt.h"
#include "libavutil/timestamp.h"
#include "libavformat/avformat.h"
}
#endif
#include "TypeDef.h"
#include "LibAvContextHandle.h"
namespace plaYUVer
{
@@ -56,34 +47,6 @@ enum InputStream_Errors
NO_ERROR = 0, READING = 1,
};
#ifdef USE_FFMPEG
class LibAvContextHandle
{
public:
Bool initAvFormat( QString filename, UInt width, UInt height );
Void closeAvFormat();
Bool decodeAvFormat();
Bool getStatus()
{
return m_bHasStream;
}
uint8_t *video_dst_data[4];
int video_dst_linesize[4];
int video_dst_bufsize;
private:
AVFormatContext *fmt_ctx;
AVCodecContext *video_dec_ctx;
AVStream *video_stream;
Int video_stream_idx;
AVFrame *frame;
AVPacket pkt;
Bool m_bHasStream;
};
#endif
class InputStream
{