# TCL_GetJpegEncoderBufferSize

## Definition

  `#include <twl/tcl.h>`

      u32 TCL_GetJpegEncoderBufferSize( u32 option );

## Arguments

option | Option passed to `SSP_GetJpegEncoderLiteBufferSize`.

## Return Values

Return value for `SSP_GetJpegEncoderLiteBufferSize`.

## Description

Returns the JPEG encoding work buffer size when calling the `TCL_EncodeAndWritePicture(Ex)` functions.

Internally, `SSP_JPEG_THUMBNAIL` is automatically added to the `option` passed here.

The `option` passed to this function and the `option` passed to the `TCL_EncodeAndWritePicture(Ex)` functions should be the same.

## See Also

`TCL_EncodeAndWritePicture(Ex)`

## Revision History

2009/04/30 Changed the SSP function that is called internally.
2008/12/05 Initial version.

CONFIDENTIAL