The data buffer points to is freed when your decodeJpeg function returns. Hence the data can not be used outside the function.
Why not using QImage directly? It can decode JPEG with the image format plugin for JPEG.
The data buffer points to is freed when your decodeJpeg function returns. Hence the data can not be used outside the function.
Why not using QImage directly? It can decode JPEG with the image format plugin for JPEG.
JpegEncoderDecoder() also seems to be using _jpegSize unitialised.
Bookmarks