# TCL_DecodePicture

## Definition

  `#include <twl/tcl.h>`

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

## Arguments

fileBuffer | File buffer to be the decode source.
fileBufferSize | Size of the file buffer to be the decode source.
imageBuffer | Buffer 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.
width | Horizontal width of the image that allows decoding.
height | Vertical width of the image that allows decoding.
decodeOption | Option 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