1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
4<meta http-equiv="Content-Style-Type" content="text/css">
5<title>TCL_DecodePicture</title>
6<link rel="stylesheet" href="../css/nitro.css" type="text/css">
7</head>
8<body>
9<h1 align="left">TCL_DecodePicture<img src="../image/TWL.gif" align="middle"></h1>
10
11<h2>Definition</h2>
12<dl>
13	<dd>
14	<code>#include &lt;twl/tcl.h&gt;</code><br/> <br/>
15	<pre><code>
16TCLResult TCL_DecodePicture( u8* fileBuffer ,
17                             u32 fileBufferSize ,
18                             void* imageBuffer ,
19                             s16 width ,
20                             s16 height ,
21                             u32 decodeOption );
22	</code></pre>
23</dl>
24
25<h2>Arguments</h2>
26<p>
27<table>
28<tr><td><CODE>fileBuffer</CODE><td>File buffer to be the decode source.
29<tr><td><CODE>fileBufferSize</CODE><td>Size of the file buffer to be the decode source.
30<tr><td><CODE>imageBuffer</CODE><td>Buffer for storing the image after decoding.<br/> When decoding the original image, the size is <code>TCL_JPEG_WIDTH</code> * <code>TCL_JPEG_HEIGHT</code> * 2.<br/> When decoding thumbnail images, the required buffer size is <code>SSP_JPEG_THUMBNAIL_WIDTH</code> * <code>SSP_JPEG_THUMBNAIL_HEIGHT</code> * 2.
31<tr><td><CODE>width</CODE><td>Horizontal width of the image that allows decoding.
32<tr><td><CODE>height</CODE><td>Vertical width of the image that allows decoding.
33<tr><td><CODE>decodeOption</CODE><td>Option passed to the <code>SSP_StartJpegDecoder</code> function.
34</table>
35</p>
36
37<h2>Return Values</h2>
38<p><a href="TCLResult.html">Processing result</a></p>
39
40<h2>Description</h2>
41<p>Decodes read files in JPEG. This is a wrapper function for the <code>SSP_StartJpegDecoder</code> function.</p>
42<p>Because the different error checks and, when necessary, a signature check are performed internally, always use this function to decode.</p>
43<p>This function only decodes, so file reading itself should be done by the application using an FS function or something similar.</p>
44
45<h2>See Also</h2>
46
47<h2>Revision History</h2>
48<p>
492009/03/04 Initial version.
50</p>
51
52<hr><p>CONFIDENTIAL</p></body>
53</html>
54