diff options
| author | Comment <tim@gray.(none)> | 2013-07-30 16:05:44 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-07-30 16:05:44 +0100 |
| commit | 01f53fe4485b3c96c0f553e1cade69f77081b078 (patch) | |
| tree | 5717695bbc7460ff7e41649c050c50ff6f786341 /rotord/src/cvimage.h | |
| parent | 7fd8fbbf69631a868b8274a25023023cde141a4c (diff) | |
| parent | c2237c2116ca551c0755821beadae3fac54547e7 (diff) | |
Merge branch 'master' of eclectronics.org@eclectronics.org:rotor
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]; |
