HBMJPGGetTextureBufferSize

Syntax


#ifndef USE_FOR_NETWORKMANUAL
#define USE_FOR_NETWORKMANUAL	1
#endif

#include <revolution/hbm.h>

s32 HBMJPGGetTextureBufferSize( void *in_jpegWorkarea, s32 *out_bufferSize, 
	u16 *out_width, u16 *out_height, void *in_jpg, u32 in_jpgSize, GXTexFmt in_format  );

Arguments

in_jpegWorkarea Work memory for JPEG decoding (prepares the size of memory specified by the JPEG codec library).
out_bufferSize Size of texture buffer needed for decoding of JPEG data.
out_width Width of the JPEG data.
out_height Height of the JPEG data.
in_jpg The starting address for loading JPEG data.
in_jpgSize Size of the JPEG data.
in_format Format of the data that will be output.

Return Values

Library error values. 0 means ended normally. A negative value means ended with error. For details, see the list of JPEG codec library error codes.

Description

Gets the required texture buffer size and image size from the JPEG data. If the texture size is known, getting information by computation is less costly.

See Also

HBMJPGMakeTextureBuffer

Revision History

2008/04/28
Changed the JPEG codec library to use its official name.
2008/02/01
Initial version.

CONFIDENTIAL