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