# PRC_GetInputPatternBufferSize

## Syntax

      #include <nitro/prc.h>

      u32 PRC_GetInputPatternBufferSize(
          int                         maxPointCount,
          int                         maxStrokeCount );

## Arguments

maxPointCount | Maximum point count after processing.
maxStrokeCount | Maximum stroke count after processing.

## Return Values

Returns the work area memory size that is required for the creation of input pattern data.

## Description

A `PRCInputPattern` type input pattern data is used for recognition, and raw input stroke data must be decoded into it. This function returns the amount of work area memory size required to do this. Before calling the `PRC_InitInputPattern` function, allocate at least as much memory as this return value.

This parameter restricts the maximum points and images after resampling for respectively `maxPointCount` and `maxStrokeCount`.

## See Also

`PRC_InitInputPattern, PRC_InitInputPatternEx
`

## Revision History

2004/06/23 Initial version.

CONFIDENTIAL