diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-07-30 13:52:22 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-07-30 13:52:22 +0100 |
| commit | c2237c2116ca551c0755821beadae3fac54547e7 (patch) | |
| tree | b032707e22b6bf01b9442cb6a5cc0108096514ae /rotord/src/cvimage.h | |
| parent | f4170d6bfb763ad0af4002277a37dcd1692534d5 (diff) | |
perfecting draw node
Diffstat (limited to 'rotord/src/cvimage.h')
| -rw-r--r-- | rotord/src/cvimage.h | 5 |
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]; |
