summaryrefslogtreecommitdiff
path: root/rotord/cvimage.h
diff options
context:
space:
mode:
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;