Steven Du
Steven Du

Reputation: 1691

Decode JPEG to char*

Please help to solve this small problem:

I try to decode incoming jpg data by OPENCV:

cv::Mat video_frame = cv::imdecode(cv::Mat(buffer), -1);

char* drawingData=??????;

I can draw "drawingData" on the screen mannually if it is RGB 24 bits format.

So the problem is how could I get the the drawingData from this video_frame?

Upvotes: 0

Views: 831

Answers (1)

mr.Shu
mr.Shu

Reputation: 478

Try something like this

char* data = (char *)image->imageData;

Upvotes: 2

Related Questions