Page 1 of 1

raspicam to jpg

Posted: Wed Jun 04, 2014 8:44 pm
by mrdebug
Hi I use raspicam api to get an image from camera.
See the line
unsigned char *data= new unsigned char[Camera.getImageTypeSize(raspicam::RASPICAM_FORMAT_RGB)];
Now anybody can suggest to me a way to obtain a QImage from data or a jpg image instead of a rgb image?