#include <revolution/tmcc_jpeg.h>s32 TMCCJPEGEncGetOutputSize(
void *pWorkArea,
void *pTex,
u16 srcWidth,
u16 srcHeight,
GXTexFmt texFormat,
u32 *poutputSize,
u32 QFactor
);
| *pWorkArea | Configure the starting address of the work area. |
| *pTex | Configure the starting address of the input texture data. |
| srcWidth | Specify the effective image width of the input texture. (When the texture size does not match the effective image region, fill the remaining parts with dummy data. A TMCC_JPEG_OPT_ERR error code is returned for input that exceeds the range of 1 to 65,535.)
|
| srcHeight | Specify the effective image height of the input texture. (When the texture size does not match the effective image region, fill the remaining parts with dummy data. A TMCC_JPEG_OPT_ERR error code is returned for input that exceeds the range of 1 to 65,535.)
|
| texFormat | Specify the texture format. (A TMCC_JPEG_TEXT_ERR error code will be returned for input that is neither GX_TF_RGB565 nor GX_TF_RGBA8.)
|
| *poutputSize | Size that is possible to output, given QFactor.
|
| QFactor | Specify the quality factor. (A TMCC_JPEG_OPT_ERR error code will be returned for input that exceeds the range of 1 to 500.)
|
0 |
Function completed successfully. |
Negative |
Abnormal exit (error code). |
Determines the actual output size for a given image quality factor. Returns the actual output size (*poutputSize) when the input texture image data is compressed by the specified image quality factor (QFactor).
2009/10/19 Made changes to the description of the include file in line with integration into the Revolution SDK.
2008/03/11 Changed the type for the srcWidth and srcHeight arguments.
2007/02/02 Initial version.
CONFIDENTIAL