| /TwlSDK-5.1.0/include/nitro/prc/ |
| D | algo_standard.h | 188 static inline u32 PRC_GetInputPatternBufferSize_Standard(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize_Standard() argument 190 return PRC_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount); in PRC_GetInputPatternBufferSize_Standard() 210 const PRCStrokes *strokes, int maxPointCount, int maxStrokeCount) in PRC_InitInputPattern_Standard() argument 212 return PRC_InitInputPattern_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount); in PRC_InitInputPattern_Standard() 233 int maxPointCount, in PRC_InitInputPatternEx_Standard() argument 236 return PRC_InitInputPatternEx_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount, in PRC_InitInputPatternEx_Standard() 256 PRC_GetRecognitionBufferSizeEx_Standard(int maxPointCount, 274 PRC_GetRecognitionBufferSize_Standard(int maxPointCount, in PRC_GetRecognitionBufferSize_Standard() argument 277 return PRC_GetRecognitionBufferSizeEx_Standard(maxPointCount, maxStrokeCount, protoDB, NULL); in PRC_GetRecognitionBufferSize_Standard() 491 static inline u32 PRC_GetInputPatternBufferSize(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize() argument [all …]
|
| D | algo_fine.h | 192 static inline u32 PRC_GetInputPatternBufferSize_Fine(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize_Fine() argument 194 return PRC_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount); in PRC_GetInputPatternBufferSize_Fine() 214 const PRCStrokes *strokes, int maxPointCount, int maxStrokeCount) in PRC_InitInputPattern_Fine() argument 216 return PRC_InitInputPattern_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount); in PRC_InitInputPattern_Fine() 237 int maxPointCount, in PRC_InitInputPatternEx_Fine() argument 240 return PRC_InitInputPatternEx_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount, in PRC_InitInputPatternEx_Fine() 260 PRC_GetRecognitionBufferSizeEx_Fine(int maxPointCount, 278 PRC_GetRecognitionBufferSize_Fine(int maxPointCount, in PRC_GetRecognitionBufferSize_Fine() argument 281 return PRC_GetRecognitionBufferSizeEx_Fine(maxPointCount, maxStrokeCount, protoDB, NULL); in PRC_GetRecognitionBufferSize_Fine() 492 static inline u32 PRC_GetInputPatternBufferSize(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize() argument [all …]
|
| D | algo_superfine.h | 193 static inline u32 PRC_GetInputPatternBufferSize_Superfine(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize_Superfine() argument 195 return PRC_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount); in PRC_GetInputPatternBufferSize_Superfine() 215 const PRCStrokes *strokes, int maxPointCount, int maxStrokeCount) in PRC_InitInputPattern_Superfine() argument 217 return PRC_InitInputPattern_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount); in PRC_InitInputPattern_Superfine() 238 int maxPointCount, in PRC_InitInputPatternEx_Superfine() argument 241 return PRC_InitInputPatternEx_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount, in PRC_InitInputPatternEx_Superfine() 261 PRC_GetRecognitionBufferSizeEx_Superfine(int maxPointCount, 279 PRC_GetRecognitionBufferSize_Superfine(int maxPointCount, in PRC_GetRecognitionBufferSize_Superfine() argument 282 return PRC_GetRecognitionBufferSizeEx_Superfine(maxPointCount, maxStrokeCount, protoDB, NULL); in PRC_GetRecognitionBufferSize_Superfine() 496 static inline u32 PRC_GetInputPatternBufferSize(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize() argument [all …]
|
| D | algo_light.h | 187 static inline u32 PRC_GetInputPatternBufferSize_Light(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize_Light() argument 189 return PRC_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount); in PRC_GetInputPatternBufferSize_Light() 209 const PRCStrokes *strokes, int maxPointCount, int maxStrokeCount) in PRC_InitInputPattern_Light() argument 211 return PRC_InitInputPattern_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount); in PRC_InitInputPattern_Light() 232 int maxPointCount, in PRC_InitInputPatternEx_Light() argument 235 return PRC_InitInputPatternEx_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount, in PRC_InitInputPatternEx_Light() 255 PRC_GetRecognitionBufferSizeEx_Light(int maxPointCount, 273 PRC_GetRecognitionBufferSize_Light(int maxPointCount, in PRC_GetRecognitionBufferSize_Light() argument 276 return PRC_GetRecognitionBufferSizeEx_Light(maxPointCount, maxStrokeCount, protoDB, NULL); in PRC_GetRecognitionBufferSize_Light() 489 static inline u32 PRC_GetInputPatternBufferSize(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize() argument [all …]
|
| D | resample.h | 58 int maxPointCount, 80 int maxPointCount, 102 int maxPointCount, 124 int maxPointCount,
|
| D | algo_common.h | 193 int maxPointCount; member 317 u32 PRC_GetInputPatternBufferSize_Common(int maxPointCount, int maxStrokeCount); 340 int maxPointCount, 360 const PRCStrokes *strokes, int maxPointCount, int maxStrokeCount) in PRC_InitInputPattern_Common() argument 362 return PRC_InitInputPatternEx_Common(pattern, buffer, strokes, maxPointCount, maxStrokeCount, in PRC_InitInputPattern_Common()
|
| /TwlSDK-5.1.0/build/libraries/prc/common/src/ |
| D | prc_resample.c | 36 int *pSelectedPointNum, int maxPointCount, const PRCStrokes *strokes) in PRCi_TerminateStrokes() argument 54 if (selectedPointNum < maxPointCount) in PRCi_TerminateStrokes() 105 int maxPointCount, in PRC_ResampleStrokes_None() argument 116 if (size > maxPointCount) in PRC_ResampleStrokes_None() 118 size = maxPointCount; in PRC_ResampleStrokes_None() 137 (void)PRCi_TerminateStrokes(selectedPoints, pSelectedPointNum, maxPointCount, strokes); in PRC_ResampleStrokes_None() 163 int maxPointCount, in PRC_ResampleStrokes_Distance() argument 176 SDK_ASSERT(maxPointCount > 0); in PRC_ResampleStrokes_Distance() 188 for (iPoint = 0; iPoint < size && selectedPointNum < maxPointCount; iPoint++, point++) in PRC_ResampleStrokes_Distance() 226 if (selectedPointNum >= maxPointCount) in PRC_ResampleStrokes_Distance() [all …]
|
| D | prc_algo_superfine.c | 58 PRC_GetRecognitionBufferSizeEx_Superfine(int maxPointCount, in PRC_GetRecognitionBufferSizeEx_Superfine() argument 68 if (maxPointCount < protoDB->maxPointCount) in PRC_GetRecognitionBufferSizeEx_Superfine() 70 maxPointCount = protoDB->maxPointCount; in PRC_GetRecognitionBufferSizeEx_Superfine() 73 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() 74 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() 75 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() 76 size += PRCi_ARRAY_SIZE(int, ((maxPointCount + 1) * (maxPointCount + 1)),); in PRC_GetRecognitionBufferSizeEx_Superfine() 77 size += PRCi_ARRAY_SIZE(int, maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() 78 size += PRCi_ARRAY_SIZE(int, maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() 79 size += PRCi_ARRAY_SIZE(int, maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Superfine() [all …]
|
| D | prc_algo_fine.c | 58 PRC_GetRecognitionBufferSizeEx_Fine(int maxPointCount, in PRC_GetRecognitionBufferSizeEx_Fine() argument 68 if (maxPointCount < protoDB->maxPointCount) in PRC_GetRecognitionBufferSizeEx_Fine() 70 maxPointCount = protoDB->maxPointCount; in PRC_GetRecognitionBufferSizeEx_Fine() 73 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Fine() 74 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Fine() 75 size += PRCi_ARRAY_SIZE(int, maxPointCount * maxPointCount,); in PRC_GetRecognitionBufferSizeEx_Fine() 76 size += PRCi_ARRAY_SIZE(int, ((maxPointCount + 1) * (maxPointCount + 1)),); in PRC_GetRecognitionBufferSizeEx_Fine() 253 #define nMatches_(x,y) (*(nMatches + (x) * maxPointCount + (y))) in PRCi_CalcStrokeDistance_Fine() 254 #define sumScore_(x,y) (*(sumScore + (x) * maxPointCount + (y))) in PRCi_CalcStrokeDistance_Fine() 255 #define direction_(x,y) (*(direction + (x) * maxPointCount + (y))) in PRCi_CalcStrokeDistance_Fine() [all …]
|
| D | prc_algo_common.c | 29 int *maxPointCount, 55 int maxPointCount, 91 int maxPointCount, maxStrokeCount; in PRC_GetPrototypeDBBufferSizeEx_Common() local 96 &patternCount, &maxPointCount, &maxStrokeCount, in PRC_GetPrototypeDBBufferSizeEx_Common() 136 &protoDB->patternCount, &protoDB->maxPointCount, in PRC_InitPrototypeDBEx_Common() 181 u32 PRC_GetInputPatternBufferSize_Common(int maxPointCount, int maxStrokeCount) in PRC_GetInputPatternBufferSize_Common() argument 183 return PRCi_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount); in PRC_GetInputPatternBufferSize_Common() 206 int maxPointCount, in PRC_InitInputPatternEx_Common() argument 215 bufferSize = PRCi_SetPatternBufferInfo_Common(&WAInfo, buffer, maxPointCount, maxStrokeCount); in PRC_InitInputPatternEx_Common() 218 PRCi_GetInputPatternBufferSize_Common(maxPointCount, maxStrokeCount)), in PRC_InitInputPatternEx_Common() [all …]
|
| D | prc_algo_light.c | 47 PRC_GetRecognitionBufferSizeEx_Light(int maxPointCount, in PRC_GetRecognitionBufferSizeEx_Light() argument 52 (void)maxPointCount; in PRC_GetRecognitionBufferSizeEx_Light()
|
| D | prc_algo_standard.c | 63 PRC_GetRecognitionBufferSizeEx_Standard(int maxPointCount, in PRC_GetRecognitionBufferSizeEx_Standard() argument 68 (void)maxPointCount; in PRC_GetRecognitionBufferSizeEx_Standard()
|
| /TwlSDK-5.1.0/build/demos/prc/characterRecognition-2/src/ |
| D | main.c | 93 int maxPointCount; in NitroMain() local 123 maxPointCount = POINT_AFTER_RESAMPLING_MAX; in NitroMain() 128 size = PRC_GetInputPatternBufferSize_Common(maxPointCount, STROKE_PER_INPUT_MAX); in NitroMain() 129 OS_Printf("maxPointCount: %d, maxStrokeCount: %d\n", maxPointCount, in NitroMain() 138 maxPointCount = POINT_AFTER_RESAMPLING_MAX; in NitroMain() 142 PRC_GetRecognitionBufferSize_Light(maxPointCount, STROKE_PER_INPUT_MAX, in NitroMain() 147 PRC_GetRecognitionBufferSize_Standard(maxPointCount, STROKE_PER_INPUT_MAX, in NitroMain() 153 PRC_GetRecognitionBufferSize_Fine(maxPointCount, STROKE_PER_INPUT_MAX, in NitroMain() 159 PRC_GetRecognitionBufferSize_Superfine(maxPointCount, STROKE_PER_INPUT_MAX, in NitroMain() 170 maxPointCount = POINT_AFTER_RESAMPLING_MAX; in NitroMain() [all …]
|