From 7cd6f032cc0e10edcd6bebedfd2e0de38ef2d40a Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 24 Apr 2013 16:42:42 +0100 Subject: uuencode functionality in place --- rotord/gstvideoloader.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rotord/gstvideoloader.h') 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 #include +#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; + }; -- cgit v1.2.3