Decompress a JPEG image to a YUV planar image. This function performs JPEG
decompression but leaves out the color conversion step, so a planar YUV
image is generated instead of an RGB image. The padding of the planes in
this image is the same as in the images generated by #tjEncodeYUV2(). Note
that, if the width or height of the image is not an even multiple of the MCU
block size (see #tjMCUWidth and #tjMCUHeight), then an intermediate buffer
copy will be performed within TurboJPEG.
@param handle a handle to a TurboJPEG decompressor or transformer instance
@param jpegBuf pointer to a buffer containing the JPEG image to decompress
@param jpegSize size of the JPEG image (in bytes)
@param dstBuf pointer to an image buffer that will receive the YUV image.
Use #tjBufSizeYUV() to determine the appropriate size for this buffer
based on the image width, height, and level of subsampling.
@param flags the bitwise OR of one or more of the @ref TJFLAG_BOTTOMUP
"flags".
@return 0 if successful, or -1 if an error occurred (see #tjGetErrorStr().)
Decompress a JPEG image to a YUV planar image. This function performs JPEG decompression but leaves out the color conversion step, so a planar YUV image is generated instead of an RGB image. The padding of the planes in this image is the same as in the images generated by #tjEncodeYUV2(). Note that, if the width or height of the image is not an even multiple of the MCU block size (see #tjMCUWidth and #tjMCUHeight), then an intermediate buffer copy will be performed within TurboJPEG.
@param handle a handle to a TurboJPEG decompressor or transformer instance @param jpegBuf pointer to a buffer containing the JPEG image to decompress @param jpegSize size of the JPEG image (in bytes) @param dstBuf pointer to an image buffer that will receive the YUV image. Use #tjBufSizeYUV() to determine the appropriate size for this buffer based on the image width, height, and level of subsampling. @param flags the bitwise OR of one or more of the @ref TJFLAG_BOTTOMUP "flags".
@return 0 if successful, or -1 if an error occurred (see #tjGetErrorStr().)