tjDecompressHeader2

* Retrieve information about a JPEG image without decompressing it. * * @param handle a handle to a TurboJPEG decompressor or transformer instance * @param jpegBuf pointer to a buffer containing a JPEG image * @param jpegSize size of the JPEG image (in bytes) * @param width pointer to an integer variable that will receive the width (in * pixels) of the JPEG image * @param height pointer to an integer variable that will receive the height * (in pixels) of the JPEG image * @param jpegSubsamp pointer to an integer variable that will receive the * level of chrominance subsampling used when compressing the JPEG image * (see @ref TJSAMP "Chrominance subsampling options".) * * @return 0 if successful, or -1 if an error occurred (see #tjGetErrorStr().)

extern (C)
int
tjDecompressHeader2
(,
ubyte* jpegBuf
,
c_ulong jpegSize
,
int* width
,
int* height
,)

Meta