1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=utf-8"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>TMCCJPEGDecGetSize</title> 8<LINK rel="stylesheet" href="../../CSS/revolution.css" type="text/css"> 9</head> 10 11<body> 12 13<h1 align="left">TMCCJPEGDecGetSize</h1> 14<h2>Syntax</h2> 15 16<dl> 17 <dd> 18<CODE>#include <revolution/tmcc_jpeg.h></CODE><BR> <BR> 19 <PRE><CODE>s32 TMCCJPEGDecGetSize( 20 void *pWorkArea, 21 void *pJpegStream, 22 u32 jpegStreamSize, 23 GXTexFmt texFormat, 24 s32 resolution, 25 u8 thumbnail, 26 <A href="TMCCJPEGJpegSize.html">TMCCJPEGJpegSize</A> *jpegSize 27); 28 29</CODE></PRE></dd> 30</dl> 31 32<h2>Arguments</h2> 33<TABLE border="1" width="100%"> 34 <TBODY> 35 <TR> 36<TD width="13%"><EM><STRONG>*pWorkArea</STRONG></EM></TD> 37<TD width="87%">Configure the starting address of the work area. 38 39</TD> 40 </TR> 41 <TR> 42<TD width="13%"><EM><STRONG>*pJpegStream</STRONG></EM></TD> 43<TD width="87%">Configure the starting address of the input JPEG data.<BR>(The starting address for the JPEG data should be 32-byte aligned. A <CODE>TMCC_JPEG_OPT_ERR</CODE> error code is returned if not 32-byte aligned.) 44 45 46</TD> 47 </TR> 48 <TR> 49<TD width="13%"><EM><STRONG>jpegStreamSize</STRONG></EM></TD> 50<TD width="87%">Specify the size of the input JPEG data. 51 52 53</TD> 54 </TR> 55 56 <TR> 57<TD width="13%"><EM><STRONG>texFormat</STRONG></EM></TD> 58<TD width="87%">Specify the texture format. <br>(A <CODE>TMCC_JPEG_TEXT_ERR</CODE> error code is returned for input that is neither <CODE>GX_TF_RGB565</CODE> nor <CODE>GX_TF_RGBA8</CODE>.) 59</TD> 60 </TR> 61 62 <TR> 63<TD width="13%"><EM><STRONG>resolution</STRONG></EM></TD> 64<TD width="87%">Configure the resolution-reduction conversion level.<br>(A <CODE>TMCC_JPEG_OPT_ERR</CODE> error code is returned for input that is not 1, 2, 4, or 8.) 65 66</TD> 67 </TR> 68 69 <TR> 70<TD width="13%"><EM><STRONG>thumbnail</STRONG></EM></TD> 71<TD width="87%">Enter 1 to expand thumbnails. When 0, the main image is expanded.<br>(A <CODE>TMCC_JPEG_OPT_ERR</CODE> error code is returned for input that is not 0 or 1.) 72</TD> 73 </TR> 74 <TR> 75<TD width="13%"><EM><STRONG>*jpegSize</STRONG></EM></TD> 76<TD width="87%">Size information for the JPEG data.<br>(See the <A href="TMCCJPEGJpegSize.html">TMCCJPEGJpegSize</A> structure.) 77 78 79 80</TD> 81 </TR> 82 83 84 85 </TBODY> 86</TABLE> 87 88 89<h2>Return Values</h2> 90<TABLE border="1"> 91 <TBODY> 92 <TR> 93 <TD width="30%"><CODE>0</CODE></TD> 94<TD width="70%">Function completed successfully.</TD> 95 </TR> 96 <TR> 97<TD width="30%"><CODE>Negative</CODE></TD> 98<TD width="70%">Abnormal exit (error code).</TD> 99 </TR> 100 </TBODY> 101</TABLE> 102 103<H2>Description</H2> 104<P>Gets the number of valid pixels in the JPEG input data. <BR> 105</P> 106 107<h2>See Also</h2> 108<p><CODE><A href="TMCCJPEGJpegSize.html">TMCCJPEGJpegSize</A></CODE><BR><A href="errorcode.html">Error Codes</A></p> 109<H2>Revision History</H2> 110<P> 1112009/10/19 Made changes to the description of the <CODE>include</CODE> file in line with integration into the Revolution SDK.<BR> 2007/02/02 Initial version.</P> 112<hr><p>CONFIDENTIAL</p></body> 113</html> 114