summaryrefslogtreecommitdiff
path: root/rotord/cvimage.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-12 17:38:21 +0100
committerTim Redfern <tim@herge.(none)>2013-07-12 17:38:21 +0100
commit512cd1f386b40a6539663bcda987b851cbc8ba7f (patch)
treea41cd28f304c7399351ff23fcf5189e5a30d34a4 /rotord/cvimage.h
parentf758127362e3c1e4e926204a83ce3104af1278bb (diff)
linesize issue
Diffstat (limited to 'rotord/cvimage.h')
-rw-r--r--rotord/cvimage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/cvimage.h b/rotord/cvimage.h
index a538d4e..cbf2840 100644
--- a/rotord/cvimage.h
+++ b/rotord/cvimage.h
@@ -105,10 +105,11 @@ namespace Rotor {
else return false;
*/
}
- bool setup_fromRGB(int _w,int _h,uint8_t *pRGBdata){
+ bool setup_fromRGB(int _w,int _h,uint8_t *pRGBdata,int linepadding=0){
//here the data belongs to libavcodec or other
//could move to using cv::Mat there also and just passing cv:Mat over
- rgb=cv::Mat(_w,_h,CV_8UC3,pRGBdata);
+ std::cerr<<"creating cv::Mat with step= "<<((_w*3)+linepadding)<<std::endl;
+ rgb=cv::Mat(_w,_h,CV_8UC3,pRGBdata,(_w*3)+linepadding);
RGBdata=rgb.data; //can move to use the bare pointer eventually
ownsRGBdata=false; //will not be necessary
w=_w;