Lines Matching full:ptra
44 struct bpi_BFFaceFinder* ptrA )
46 bpi_FaceFinder_init( cpA, &ptrA->baseE );
47 ptrA->baseE.typeE = ( uint32 )bpi_FF_BF_FACE_FINDER;
48 ptrA->baseE.vpSetParamsE = bpi_BFFaceFinder_setParams;
49 ptrA->baseE.vpSetRangeE = bpi_BFFaceFinder_setRange;
50 ptrA->baseE.vpProcessE = bpi_BFFaceFinder_processDcr;
51 ptrA->baseE.vpPutDcrE = bpi_BFFaceFinder_putDcr;
52 ptrA->baseE.vpGetDcrE = bpi_BFFaceFinder_getDcr;
54 ptrA->detectedFacesE = 0;
55 ptrA->availableFacesE = 0;
56 ptrA->faceDataBufferE = NULL;
57 bbf_ScanDetector_init( cpA, &ptrA->detectorE );
63 struct bpi_BFFaceFinder* ptrA )
65 ptrA->detectedFacesE = 0;
66 ptrA->availableFacesE = 0;
67 ptrA->faceDataBufferE = NULL;
68 bbf_ScanDetector_exit( cpA, &ptrA->detectorE );
70 bpi_FaceFinder_exit( cpA, &ptrA->baseE );
84 struct bpi_BFFaceFinder* ptrA,
87 bpi_FaceFinder_copy( cpA, &ptrA->baseE, &srcPtrA->baseE );
88 bbf_ScanDetector_copy( cpA, &ptrA->detectorE, &srcPtrA->detectorE );
94 const struct bpi_BFFaceFinder* ptrA,
97 if( !bpi_FaceFinder_equal( cpA, &ptrA->baseE, &srcPtrA->baseE ) ) return FALSE;
98 if( !bbf_ScanDetector_equal( cpA, &ptrA->detectorE, &srcPtrA->detectorE ) ) return FALSE;
112 uint32 bpi_BFFaceFinder_getMinEyeDistance( const struct bpi_BFFaceFinder* ptrA )
114 return ( ( ptrA->detectorE.refDistanceE >> 8 ) * ( ptrA->detectorE.minScaleE >> 12 ) ) >> 16;
119 uint32 bpi_BFFaceFinder_getMaxEyeDistance( const struct bpi_BFFaceFinder* ptrA )
121 return ( ( ptrA->detectorE.refDistanceE >> 8 ) * ( ptrA->detectorE.maxScaleE >> 12 ) ) >> 16;
135 struct bpi_BFFaceFinder* ptrA,
138 ptrA->detectorE.minScaleE = ( ( distA << 16 ) / ( ptrA->detectorE.refDistanceE >> 8 ) ) << 12;
139 if( ptrA->detectorE.minScaleE < 0x100000 /* 1.0 */ ) ptrA->detectorE.minScaleE = 0x100000;
145 struct bpi_BFFaceFinder* ptrA,
150 ptrA->detectorE.maxScaleE = 0; /* unlimited */
154 ptrA->detectorE.maxScaleE = ( ( distA << 16 ) / ( ptrA->detectorE.refDistanceE >> 8 ) ) << 12;
169 const struct bpi_BFFaceFinder *ptrA )
174 memSizeL += bpi_FaceFinder_memSize( cpA, &ptrA->baseE );
175 memSizeL += bbf_ScanDetector_memSize( cpA, &ptrA->detectorE );
183 const struct bpi_BFFaceFinder* ptrA,
186 uint32 memSizeL = bpi_BFFaceFinder_memSize( cpA, ptrA );
189 memPtrA += bpi_FaceFinder_memWrite( cpA, &ptrA->baseE, memPtrA );
190 memPtrA += bbf_ScanDetector_memWrite( cpA, &ptrA->detectorE, memPtrA );
198 struct bpi_BFFaceFinder* ptrA,
206 memPtrA += bpi_FaceFinder_memRead( cpA, &ptrA->baseE, memPtrA );
209 memPtrA += bbf_ScanDetector_memRead( cpA, &ptrA->detectorE, memPtrA, mtpA );
213 /* if( memSizeL != bpi_BFFaceFinder_memSize( cpA, ptrA ) )
234 const struct bpi_BFFaceFinder* ptrA,
251 struct bpi_BFFaceFinder* ptrL = ( struct bpi_BFFaceFinder* )ptrA;
258 bbf_ScanDetector_process( cpA, ( struct bbf_ScanDetector* )&ptrA->detectorE, imagePtrA, imageWidthA, imageHeightA, roiPtrA, &outArrL );
278 uint32 eyeDistL = ( ( ptrA->detectorE.refDistanceE >> 16 ) * scaleL ) >> 20;
283 bts_IdCluster2D_copyTransform( cpA, idClusterPtrA, &ptrA->detectorE.refClusterE, altL, bbpL );
293 const struct bpi_BFFaceFinder* ptrA,
299 struct bpi_BFFaceFinder* ptrL = ( struct bpi_BFFaceFinder* )ptrA;
300 ptrL->detectedFacesE = bbf_ScanDetector_process( cpA, ( struct bbf_ScanDetector* )&ptrA->detectorE, imagePtrA, imageWidthA, imageHeightA, roiPtrA, &ptrL->faceDataBufferE );
301 ptrL->availableFacesE = ptrA->detectedFacesE > 0 ? ptrA->detectedFacesE : 1;
309 const struct bpi_BFFaceFinder* ptrA,
324 if( ptrA->availableFacesE == 0 || ptrA->faceDataBufferE == NULL )
330 if( indexA >= ptrA->availableFacesE )
336 xL = ptrA->faceDataBufferE[ indexA * 4 + 0 ]; /* 16.16 */
337 yL = ptrA->faceDataBufferE[ indexA * 4 + 1 ]; /* 16.16 */
338 scaleL = ptrA->faceDataBufferE[ indexA * 4 + 2 ]; /* 12.20 */
339 actL = ptrA->faceDataBufferE[ indexA * 4 + 3 ]; /* 4.28 */
353 uint32 eyeDistL = ( ( ptrA->detectorE.refDistanceE >> 16 ) * scaleL ) >> 20;
358 bts_IdCluster2D_copyTransform( cpA, idClusterPtrA, &ptrA->detectorE.refClusterE, altL, bbpL );
367 const struct bpi_BFFaceFinder* ptrA,
371 int32 confL = bpi_BFFaceFinder_getFace( cpA, ptrA, indexA, &dcrPtrA->offsE, &dcrPtrA->mainClusterE );
380 struct bpi_BFFaceFinder* ptrA,
384 ptrA->detectorE.maxImageWidthE = maxImageWidthA;
385 ptrA->detectorE.maxImageHeightE = maxImageHeightA;
391 struct bpi_FaceFinder* ptrA,
399 if( ptrA->typeE != bpi_FF_BF_FACE_FINDER )
404 bpi_BFFaceFinder_setMaxImageSize( cpA, ( struct bpi_BFFaceFinder* )ptrA, maxImageWidthA, maxImageHeightA );
410 struct bpi_FaceFinder* ptrA,
418 if( ptrA->typeE != bpi_FF_BF_FACE_FINDER )
423 bpi_BFFaceFinder_setMinEyeDistance( cpA, ( struct bpi_BFFaceFinder* )ptrA, minEyeDistanceA );
424 bpi_BFFaceFinder_setMaxEyeDistance( cpA, ( struct bpi_BFFaceFinder* )ptrA, maxEyeDistanceA );
430 const struct bpi_FaceFinder* ptrA,
437 ptrA->typeE != bpi_FF_BF_FACE_FINDER )
444 ( const struct bpi_BFFaceFinder* )ptrA,
456 const struct bpi_FaceFinder* ptrA,
463 if( ptrA->typeE != bpi_FF_BF_FACE_FINDER )
470 ( const struct bpi_BFFaceFinder* )ptrA,
480 const struct bpi_FaceFinder* ptrA,
488 if( ptrA->typeE != bpi_FF_BF_FACE_FINDER )
494 bpi_BFFaceFinder_getFaceDCR( cpA, ( const struct bpi_BFFaceFinder* )ptrA, indexA, dcrPtrA );