TCL_DecodePicture

Definition

#include <twl/tcl.h>


TCLResult TCL_DecodePicture( u8* fileBuffer ,
                             u32 fileBufferSize ,
                             void* imageBuffer ,
                             s16 width ,
                             s16 height ,
                             u32 decodeOption );
	

Arguments

fileBufferFile buffer to be the decode source.
fileBufferSizeSize of the file buffer to be the decode source.
imageBufferBuffer for storing the image after decoding.
When decoding the original image, the size is TCL_JPEG_WIDTH * TCL_JPEG_HEIGHT * 2.
When decoding thumbnail images, the required buffer size is SSP_JPEG_THUMBNAIL_WIDTH * SSP_JPEG_THUMBNAIL_HEIGHT * 2.
widthHorizontal width of the image that allows decoding.
heightVertical width of the image that allows decoding.
decodeOptionOption passed to the SSP_StartJpegDecoder function.

Return Values

Processing result

Description

Decodes read files in JPEG. This is a wrapper function for the SSP_StartJpegDecoder function.

Because the different error checks and, when necessary, a signature check are performed internally, always use this function to decode.

This function only decodes, so file reading itself should be done by the application using an FS function or something similar.

See Also

Revision History

2009/03/04 Initial version.


CONFIDENTIAL