1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<title>SSP_GetJpegEncoderBufferSize</title>
7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" />
8</head>
9<body>
10
11<h1>SSP_GetJpegEncoderBufferSize <img src="../../image/NTR.gif" align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13
14<pre><code>
15u32 SSP_GetJpegEncoderBufferSize(u32 width, u32 height, u32 sampling, u32 option);
16</code></pre>
17
18<h2>Arguments</h2>
19<table style="width:100%">
20<tbody>
21<tr>
22<td style="width:13%"><SPAN class="argument">width</SPAN></td>
23<td style="width:87%">Width (in pixels) of the image to encode.</td>
24</tr>
25<tr>
26<td style="width:13%"><SPAN class="argument">height</SPAN></td>
27<td style="width:87%">Height (in pixels) of the image to encode.</td>
28</tr>
29<tr>
30<td style="width:13%"><SPAN class="argument">sampling</SPAN></td>
31<td style="width:87%">Main image output formats (<CODE>SSP_JPEG_OUTPUT_YUV444</CODE>, <CODE>SSP_JPEG_OUTPUT_YUV420</CODE>, or <CODE>SSP_JPEG_OUTPUT_YUV422</CODE>).</td>
32</tr>
33<tr>
34<td style="width:13%"><SPAN class="argument">option</SPAN></td>
35<td style="width:87%">Encoding options (<CODE>SSP_JPEG_RGB555</CODE>, <CODE>SSP_JPEG_YUV422</CODE>, or <CODE>SSP_JPEG_THUMBNAIL</CODE>).</td>
36</tr>
37</tbody>
38</table>
39
40
41<h2>Return Values</h2>
42<p>Returns the buffer size required to encode.</p>
43
44<h2>Description</h2>
45<p>Gets the size of the work buffer required when encoding is performed by the <a href="SSP_StartJpegEncoder.html"><CODE>SSP_StartJpegEncoder</CODE></a> function.<br>Give this function the same arguments as the <a href="SSP_StartJpegEncoder.html"><CODE>SSP_StartJpegEncoder</CODE></a> function.
46</p>
47
48<h2>See Also</h2>
49<p><a href="SSP_StartJpegEncoder.html"><CODE>SSP_StartJpegEncoder</CODE></a></p>
50
51<h2>Revision History</h2>
52<p>
532008/09/15 Initial version.
54</p>
55<hr><p>CONFIDENTIAL</p></body>
56</html>
57