SSP_GetJpegEncoderBufferSize

Syntax


u32 SSP_GetJpegEncoderBufferSize(u32 width, u32 height, u32 sampling, u32 option);

Arguments

width Width (in pixels) of the image to encode.
height Height (in pixels) of the image to encode.
sampling Main image output formats (SSP_JPEG_OUTPUT_YUV444, SSP_JPEG_OUTPUT_YUV420, or SSP_JPEG_OUTPUT_YUV422).
option Encoding options (SSP_JPEG_RGB555, SSP_JPEG_YUV422, or SSP_JPEG_THUMBNAIL).

Return Values

Returns the buffer size required to encode.

Description

Gets the size of the work buffer required when encoding is performed by the SSP_StartJpegEncoder function.
Give this function the same arguments as the SSP_StartJpegEncoder function.

See Also

SSP_StartJpegEncoder

Revision History

2008/09/15 Initial version.


CONFIDENTIAL