summaryrefslogtreecommitdiff
path: root/rotord/src/cvimage.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-30 13:52:22 +0100
committerTim Redfern <tim@herge.(none)>2013-07-30 13:52:22 +0100
commitc2237c2116ca551c0755821beadae3fac54547e7 (patch)
treeb032707e22b6bf01b9442cb6a5cc0108096514ae /rotord/src/cvimage.h
parentf4170d6bfb763ad0af4002277a37dcd1692534d5 (diff)
perfecting draw node
Diffstat (limited to 'rotord/src/cvimage.h')
-rw-r--r--rotord/src/cvimage.h5
1 files changed, 4 insertions, 1 deletions
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;i<w*h*3;i++) {
t->RGBdata[i]=RGBdata[i];