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>HBMJPGMakeTextureBuffer</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>HBMJPGMakeTextureBuffer</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> HBMJPGMakeTextureBuffer( void *in_jpegWorkarea, void *out_buffer,
31	u32 in_bufferSize, 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_buffer</EM></STRONG></CODE></TD>
42    <TD width="520">The target buffer for decoding.</TD>
43  </tr>
44  <tr>
45    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_bufferSize</EM></STRONG></CODE></TD>
46    <TD width="520">The size of the target buffer for decoding.</TD>
47  </tr>
48  <tr>
49    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_jpg</EM></STRONG></CODE></TD>
50    <TD width="520">The starting address for loading JPEG data.</TD>
51  </tr>
52  <tr>
53    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_jpgSize</EM></STRONG></CODE></TD>
54    <TD width="520">Size of the JPEG data.</TD>
55  </tr>
56  <tr>
57    <TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>in_format</EM></STRONG></CODE></TD>
58    <TD width="520">The format of the data that will be output; two texture formats are supported: <CODE>GX_TF_RGB565</CODE> and <CODE>GX_TF_RGBA8</CODE>.</TD>
59  </tr>
60</TABLE>
61
62<H2>Return Values</H2>
63<P>
64Library error values. 0  means ended normally. A negative value means ended with error. For details, see the list of JPEG codec library error codes.
65</P>
66
67<H2>Description</H2>
68<P>
69Decodes in the specified format from the JPEG data.
70</P>
71
72<H2>See Also</H2>
73<p>
74<code><A href="hbm_HBMJPGGetTextureBufferSize.html">HBMJPGGetTextureBufferSize</A></code>
75</P>
76
77<H2>Revision History</H2>
78<DL class="history">
79    <DT>2008/04/28<DD>Changed the JPEG codec library to use its official name.
80    <DT>2008/02/01<DD>Initial version.
81</DL>
82
83<hr><p>CONFIDENTIAL</p></body>
84</HTML>