From c2237c2116ca551c0755821beadae3fac54547e7 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 30 Jul 2013 13:52:22 +0100 Subject: perfecting draw node --- rotord/src/cvimage.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rotord/src/cvimage.h') diff --git a/rotord/src/cvimage.h b/rotord/src/cvimage.h index 2f9ed3b..336c41b 100644 --- a/rotord/src/cvimage.h +++ b/rotord/src/cvimage.h @@ -87,6 +87,9 @@ namespace Rotor { h=0; ownsRGBdata=ownsAdata=ownsZdata=false; } + //space out to 32 bit RGB padding for cairo + void convert24(); + void convert32(); int getStride(){ return w*3; } @@ -155,7 +158,7 @@ namespace Rotor { t->w=w; t->h=h; t->RGBdata=t->rgb.data; //can move to use the bare pointer eventually - t->ownsRGBdata=false; //will not be necessary + t->ownsRGBdata=false; //always just deallocate cv::Mat from stack /* for (int i=0;iRGBdata[i]=RGBdata[i]; -- cgit v1.2.3