diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-24 16:42:42 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-24 16:42:42 +0100 |
| commit | 7cd6f032cc0e10edcd6bebedfd2e0de38ef2d40a (patch) | |
| tree | 61f13f30ee4bfe40958aaab85a65fd41c6875b0d /rotord/gstvideoloader.h | |
| parent | a2c6354640f24db3484ccf486c2c0cbd08808e60 (diff) | |
uuencode functionality in place
Diffstat (limited to 'rotord/gstvideoloader.h')
| -rw-r--r-- | rotord/gstvideoloader.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/rotord/gstvideoloader.h b/rotord/gstvideoloader.h index a2dc086..66b4c9c 100644 --- a/rotord/gstvideoloader.h +++ b/rotord/gstvideoloader.h @@ -2,6 +2,8 @@ #include <iostream> #include <gst/gstpad.h> +#include "Pixels.h" +#include "ofUtils.h" enum ofLoopType{ OF_LOOP_NONE=0x01, @@ -59,6 +61,8 @@ public: virtual void eos_cb(); static void startGstMainLoop(); + void update(); + protected: ofGstAppSink * appsink; bool isStream; @@ -96,20 +100,23 @@ public: bool isFrameNew(); unsigned char * getPixels(); //ofPixelsRef getPixelsRef(); - void update(); + float getHeight(); float getWidth(); void close(); + void update(); + protected: GstFlowReturn preroll_cb(GstBuffer * buffer); GstFlowReturn buffer_cb(GstBuffer * buffer); void eos_cb(); - + Pixels pixels; + Pixels backPixels; //ofPixels pixels; // 24 bit: rgb //ofPixels backPixels; //ofPixels eventPixels; @@ -119,6 +126,7 @@ private: bool bBackPixelsChanged; //ofMutex mutex; GstBuffer * buffer, *prevBuffer; + }; |
