Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you have opencv (it's ported to iOS) you can use cv::imdecode (http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imencode#imdecode). It works same like cv::imread for reading+decoding png/jpg etc. data from files with the difference takes not a file but a binary buffer e. g. std::vector<uchar> as input for decoding...