SSP_StartJpegEncoderLite

Syntax


u32 SSP_StartJpegEncoderLite(const void* src, u8 *dst, u32 limit, u8 *wrk, u32 width, u32 height, u32 quality, u32 sampling, u32 option);

Arguments

src Image data to encode (RGB555 or YUV422). Must be 4-byte aligned.
dst Buffer to store the encoding results. Must be 4-byte aligned.
limit Represents the dst size.
Encoding fails if this size is exceeded.
wrk Working buffer. This must be 4-byte aligned. You can use the SSP_GetJpegEncoderLiteBufferSize function to calculate the required size.
width Width (in pixels) of the image to encode.
height Height (in pixels) of the image to encode.
quality Encoding quality.
Values from 1 to 100 can be specified, where 100 represents the highest quality and the largest size.
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 size of the created JPEG file when successful.
Returns 0 when it fails.

Description

Encodes image data as a JPEG file. This has the same basic behavior as the SSP_StartJpegEncoder function, but it uses a much smaller working buffer (wrk). For an explanation of the parts that are in common, see the SSP_StartJpegEncoder page.

See Also

SSP_StartJpegEncoder
SSP_GetJpegEncoderLiteBufferSize

Revision History

2009/04/27 Initial version.


CONFIDENTIAL