1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>PRC_GetRecognitionBufferSize*</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">PRC_GetRecognitionBufferSize* <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;nitro/prc.h&gt;
16
17u32 PRC_GetRecognitionBufferSize(
18    int                         maxPointCount,
19    int                         maxStrokeCount,
20    const <A href="PRCPrototypeDB.html">PRCPrototypeDB</A>*       protoDB );
21
22u32 PRC_GetRecognitionBufferSizeEx(
23    int                         maxPointCount,
24    int                         maxStrokeCount,
25    const <A href="PRCPrototypeDB.html">PRCPrototypeDB</A>*       protoDB,
26    const <A href="PRCRecognizeParam.html">PRCRecognizeParam</A>*    param );
27</CODE></PRE>
28</DL>
29<H2>Arguments</H2>
30<TABLE border="1" width="100%">
31  <TBODY>
32    <TR>
33      <TD width="13%"><EM><STRONG><FONT face="Courier New">maxPointCount</FONT></STRONG></EM></TD>
34      <TD width="87%">Maximum point count after processing.</TD>
35    </TR>
36    <TR>
37      <TD width="13%"><EM><STRONG><FONT face="Courier New">maxStrokeCount</FONT></STRONG></EM></TD>
38      <TD width="87%">Maximum stroke count after processing.</TD>
39    </TR>
40    <tr>
41      <td width="13%"><em><strong><font face="Courier New">protoDB</font></strong></em></td>
42      <td width="87%">Sample DB.</td>
43    </tr>
44    <tr>
45      <td width="13%"><em><strong><font face="Courier New">param</font></strong></em></td>
46      <td width="87%">Other parameter values that are dependent on the recognition algorithm (use NULL as the default).</td>
47    </tr>
48  </TBODY>
49</TABLE>
50<H2>Return Values</H2>
51<P>Returns the work area memory size required to run the recognition algorithm.</P>
52<H2>Description</H2>
53<P>Before calling a <CODE><A href="PRC_GetRecognizedEntry.html">PRC_GetRecognizedEntry*</A></CODE> function, allocate at least as much memory as the size given by this return value.</P>
54<P>The <code><em><strong>maxPointCount</strong></em></code> and <code><em><strong>maxStrokeCount</strong></em></code> arguments provide maximum numbers of points and strokes respectively. These are assumed in the recognition target <code><A href="PRCInputPattern.html">PRCInputPattern</A></code>.</P>
55<P><code>PRC_GetRecognitionBufferSize</code> is equivalent to calling <code>PRC_GetRecognitionBufferSizeEx</code> with <code><em><strong>param</strong></em></code> set to <code>NULL</code>.</P>
56<H2>See Also</H2>
57<P><CODE><A href="PRC_GetRecognizedEntry.html">PRC_GetRecognizedEntry*</A><BR></CODE></P>
58<H2>Revision History</H2>
59<P>
602004/11/02 Corrected mistakes.<br /> 2004/06/25 Initial version.
61</P>
62<hr><p>CONFIDENTIAL</p></body>
63</HTML>
64