summaryrefslogtreecommitdiff
path: root/rotord/libavwrapper.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-06-14 14:48:34 +0100
committerTim Redfern <tim@eclectronics.org>2013-06-14 14:48:34 +0100
commit98e9e8998f8fe1f9793610b58bb4e5e8f8145526 (patch)
tree5e2eba9eb115bd90b710ff440cdefbd28d83f57d /rotord/libavwrapper.h
parentfcf506ec84bfd0e7d1254fef5c5f391e27c57674 (diff)
variable size video decoder
Diffstat (limited to 'rotord/libavwrapper.h')
-rwxr-xr-xrotord/libavwrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rotord/libavwrapper.h b/rotord/libavwrapper.h
index e48dfa5..a663289 100755
--- a/rotord/libavwrapper.h
+++ b/rotord/libavwrapper.h
@@ -95,8 +95,11 @@ namespace libav {
virtual ~decoder();
//bool open(QUrl url, enum PixelFormat formatParam = PIX_FMT_RGB24);
//bool open(QIODevice& fileStream, QString& fileName, enum PixelFormat formatParam = PIX_FMT_RGB24);
+ bool reinit_buffers_and_scaler();
+ bool init_buffers_and_scaler();
uint8_t getPixelIntensity(int x, int y, Channel c = GRAY) const;
bool fetchFrame(int targetFrameIndex = 0);
+ bool fetchFrame(int w,int h,int targetFrameIndex = 0);
int getNumberOfFrames() const;
int getWidth() const;
int getHeight() const;
@@ -265,6 +268,7 @@ namespace libav {
AVPacket packet;
int sample_end;
int sample_start;
+ bool isPlanar;
};