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=windows-1252">
6    <META http-equiv="Content-Style-Type" content="text/css">
7
8    <LINK rel="stylesheet" href="./css/revolution.css" type="text/css">
9
10    <TITLE>HBMJPGGetTextureBufferSize</TITLE>
11<style type="text/css" media="all">
12<!--
13@import url("css/hbm_common.css");
14-->
15</style>
16</HEAD>
17<BODY>
18
19
20<H1>HBMJPGGetTextureBufferSize</H1>
21
22<H2>Syntax</H2>
23<dl><dd><pre><code>
24#ifndef USE_FOR_NETWORKMANUAL
25#define USE_FOR_NETWORKMANUAL	1
26#endif
27
28#include &lt;revolution/hbm.h&gt;
29
30s32</A> HBMJPGGetTextureBufferSize( void *in_jpegWorkarea, s32 *out_bufferSize,
31	u16 *out_width, u16 *out_height, void *in_jpg, u32 in_jpgSize, GXTexFmt in_format  );
32</code></pre></dd></dl>
33
34<H2>Arguments</H2>
35<TABLE border="1" >
36  <tr>
37    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_jpegWorkarea</EM></STRONG></CODE></TD>
38    <TD width="520">Work memory for JPEG decoding (prepares the size of memory specified by the JPEG codec library).</TD>
39  </tr>
40  <tr>
41    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>out_bufferSize</EM></STRONG></CODE></TD>
42    <TD width="520">Size of texture buffer needed for decoding of JPEG data.</TD>
43  </tr>
44  <tr>
45    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>out_width</EM></STRONG></CODE></TD>
46    <TD width="520">Width of the JPEG data.</TD>
47  </tr>
48  <tr>
49    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>out_height</EM></STRONG></CODE></TD>
50    <TD width="520">Height of the JPEG data.</TD>
51  </tr>
52  <tr>
53    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_jpg</EM></STRONG></CODE></TD>
54    <TD width="520">The starting address for loading JPEG data.</TD>
55  </tr>
56  <tr>
57    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_jpgSize</EM></STRONG></CODE></TD>
58    <TD width="520">Size of the JPEG data.</TD>
59  </tr>
60  <tr>
61    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_format</EM></STRONG></CODE></TD>
62    <TD width="520">Format of the data that will be output.</TD>
63  </tr>
64</TABLE>
65
66<H2>Return Values</H2>
67<P>
68Library error values. 0 means ended normally. A negative value means ended with error. For details, see the list of JPEG codec library error codes.
69</P>
70
71<H2>Description</H2>
72<P>
73Gets 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.
74</P>
75
76<H2>See Also</H2>
77<p>
78<code><A href="hbm_HBMJPGMakeTextureBuffer.html">HBMJPGMakeTextureBuffer</A></code>
79</P>
80
81<H2>Revision History</H2>
82<DL class="history">
83    <DT>2008/04/28<DD>Changed the JPEG codec library to use its official name.
84    <DT>2008/02/01<DD>Initial version.
85</DL>
86
87<hr><p>CONFIDENTIAL</p></body>
88</HTML>