TMCCJPEGDecGetSize

Syntax

#include <revolution/tmcc_jpeg.h>

s32 TMCCJPEGDecGetSize(
        void *pWorkArea,
        void *pJpegStream,
        u32 jpegStreamSize,
        GXTexFmt texFormat,
        s32 resolution,
        u8 thumbnail,
        TMCCJPEGJpegSize *jpegSize
);

Arguments

*pWorkArea Configure the starting address of the work area.
*pJpegStream Configure the starting address of the input JPEG data.
(The starting address for the JPEG data should be 32-byte aligned. A TMCC_JPEG_OPT_ERR error code is returned if not 32-byte aligned.)
jpegStreamSize Specify the size of the input JPEG data.
texFormat Specify the texture format.
(A TMCC_JPEG_TEXT_ERR error code is returned for input that is neither GX_TF_RGB565 nor GX_TF_RGBA8.)
resolution Configure the resolution-reduction conversion level.
(A TMCC_JPEG_OPT_ERR error code is returned for input that is not 1, 2, 4, or 8.)
thumbnail Enter 1 to expand thumbnails. When 0, the main image is expanded.
(A TMCC_JPEG_OPT_ERR error code is returned for input that is not 0 or 1.)
*jpegSize Size information for the JPEG data.
(See the TMCCJPEGJpegSize structure.)

Return Values

0 Function completed successfully.
Negative Abnormal exit (error code).

Description

Gets the number of valid pixels in the JPEG input data.

See Also

TMCCJPEGJpegSize
Error Codes

Revision History

2009/10/19 Made changes to the description of the include file in line with integration into the Revolution SDK.
2007/02/02 Initial version.


CONFIDENTIAL