Lines Matching refs:ptrA
45 struct bbf_Scanner* ptrA,
55 uint32 proL = ptrA->maxRadiusE;
59 uint32 woL = ptrA->maxImageWidthE;
60 uint32 hoL = ptrA->maxImageHeightE;
63 uint32 xwoL = woL + ( ptrA->borderWidthE << 1 );
64 uint32 xhoL = hoL + ( ptrA->borderHeightE << 1 );
67 bbs_UInt16Arr_create( cpA, &ptrA->workImageE, ( ( woL >> 1 ) + ( woL & 1 ) ) * hoL, mspL );
69 bbs_UInt16Arr_fill( cpA, &ptrA->workImageE, 0 );
72 bim_UInt32Image_create( cpA, &ptrA->bitImageE, xwoL, ( xhoL >> 5 ) + ( ( ( xhoL & 0x1F ) != 0 ) ? 1 : 0 ), mspL );
74 bim_UInt32Image_setAllPixels( cpA, &ptrA->bitImageE, 0, 0 );
77 bbs_UInt32Arr_create( cpA, &ptrA->patchBufferE, ptrA->bitImageE.widthE, mspL );
79 bbs_UInt32Arr_fill( cpA, &ptrA->patchBufferE, 0 );
82 bbs_UInt16Arr_create( cpA, &ptrA->lineBufE, woL + ( woL & 1 ), sspL );
85 bim_UInt32Image_create( cpA, &ptrA->satE, woL + pwoL, pwoL + 1, sspL );
88 bbs_UInt32Arr_create( cpA, &ptrA->idxArrE, ptrA->bufferSizeE, mspL );
89 bbs_Int32Arr_create( cpA, &ptrA->actArrE, ptrA->bufferSizeE, mspL );
91 bbs_Int32Arr_create( cpA, &ptrA->outArrE, ptrA->bufferSizeE >> 1, espL );
97 void bbf_Scanner_downscale( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
99 uint32 w0L = ptrA->workWidthE;
100 uint32 h0L = ptrA->workHeightE;
104 uint16* arrL = ptrA->workImageE.arrPtrE;
129 ptrA->workWidthE = w1L;
130 ptrA->workHeightE = h1L;
131 ptrA->scaleExpE++;
140 void bbf_Scanner_copyImage( struct bbs_Context* cpA, struct bbf_Scanner* ptrA, const void* imagePtrA, uint32 imageWidthA, uint32 imageHeightA, const struct bts_Int16Rect* roiPtrA )
142 bbs_DEF_fNameL( "void bbf_Scanner_copyImage( struct bbs_Context* cpA, struct bbf_Scanner* ptrA, const struct bim_UInt16ByteImage* imagePtrA, const struct bts_Int16Rect* roiPtrA )" )
144 if( imageWidthA > ptrA->maxImageWidthE || imageHeightA > ptrA->maxImageHeightE )
147 fNameL, imageWidthA, imageHeightA, ptrA->maxImageWidthE, ptrA->maxImageHeightE );
155 uint16* dstL = ptrA->workImageE.arrPtrE;
156 ptrA->workWidthE = imageWidthA;
157 ptrA->workHeightE = imageHeightA;
158 for( iL = 0; iL < ptrA->workHeightE; iL++ )
160 for( jL = ptrA->workWidthE >> 1; jL > 0; jL-- )
167 if( ptrA->workWidthE & 1 ) *dstL++ = *srcL++;
174 uint16* dstL = ptrA->workImageE.arrPtrE;
187 ptrA->workWidthE = roiPtrA->x2E - roiPtrA->x1E;
188 ptrA->workHeightE = roiPtrA->y2E - roiPtrA->y1E;
189 for( iL = 0; iL < ptrA->workHeightE; iL++ )
191 for( jL = ptrA->workWidthE >> 1; jL > 0; jL-- )
198 if( ptrA->workWidthE & 1 ) *dstL++ = *srcL++;
200 srcL += imageWidthA - ptrA->workWidthE;
208 void bbf_Scanner_createBitImage( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
210 bbs_DEF_fNameL( "void bbf_Scanner_createBitImage( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )" )
234 proL = ptrA->bitParamE.outerRadiusE;
235 priL = ptrA->bitParamE.innerRadiusE;
239 if( ptrA->borderHeightE >= 32 )
252 wiL = ptrA->workWidthE;
253 hiL = ptrA->workHeightE;
257 stepL = ptrA->scaleE >> ( ptrA->scaleExpE + 4 );
273 xwoL = woL + ( ptrA->borderWidthE << 1 );
274 xhoL = hoL + ( ptrA->borderHeightE << 1 );
276 ptrA->currentWidthE = xwoL;
277 ptrA->currentHeightE = xhoL;
280 bim_UInt32Image_size( cpA, &ptrA->bitImageE, xwoL, ( xhoL >> 5 ) + ( ( ( xhoL & 0x1F ) != 0 ) ? 1 : 0 ) );
281 bim_UInt32Image_setAllPixels( cpA, &ptrA->bitImageE, 0, 0 );
283 bitMaskL = ( uint32 )1 << ptrA->borderHeightE;
284 bitRowL = ( uint32* )ptrA->bitImageE.arrE.arrPtrE + ptrA->borderWidthE;
292 bim_UInt32Image_size( cpA, &ptrA->satE, wsL, hsL );
294 satL = ptrA->satE.arrE.arrPtrE;
297 lBufL = ptrA->lineBufE.arrPtrE;
321 const uint16* arr0L = ptrA->workImageE.arrPtrE + ypL * wi2L;
407 void bbf_Scanner_initPatchBuffer( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
409 bbs_UInt32Arr_size( cpA, &ptrA->patchBufferE, ptrA->bitImageE.widthE );
410 bbs_memcpy32( ptrA->patchBufferE.arrPtrE, ptrA->bitImageE.arrE.arrPtrE, ptrA->bitImageE.widthE );
424 struct bbf_Scanner* ptrA )
426 ptrA->scaleExpE = 0;
427 ptrA->scaleE = 0;
428 ptrA->xE = 0;
429 ptrA->yE = 0;
430 ptrA->effMaxScaleE = 0;
431 ptrA->currentWidthE = 0;
432 ptrA->currentHeightE = 0;
433 ptrA->workWidthE = 0;
434 ptrA->workHeightE = 0;
435 bbf_BitParam_init( cpA, &ptrA->bitParamE );
436 bbs_UInt16Arr_init( cpA, &ptrA->workImageE );
437 bim_UInt32Image_init( cpA, &ptrA->satE );
438 bim_UInt32Image_init( cpA, &ptrA->bitImageE );
439 bbs_UInt32Arr_init( cpA, &ptrA->patchBufferE );
440 bbs_UInt16Arr_init( cpA, &ptrA->lineBufE );
442 bbs_UInt32Arr_init( cpA, &ptrA->idxArrE );
443 bbs_Int32Arr_init( cpA, &ptrA->actArrE );
444 bbs_Int32Arr_init( cpA, &ptrA->outArrE );
445 ptrA->outCountE = 0;
446 ptrA->intCountE = 0;
447 ptrA->bufferSizeE = 1024;
449 ptrA->maxImageWidthE = 0;
450 ptrA->maxImageHeightE = 0;
451 ptrA->maxRadiusE = 0;
452 ptrA->patchWidthE = 0;
453 ptrA->patchHeightE = 0;
454 ptrA->minScaleE = 0;
455 ptrA->maxScaleE = 0;
456 ptrA->scaleStepE = 0;
457 ptrA->borderWidthE = 0;
458 ptrA->borderHeightE = 0;
464 struct bbf_Scanner* ptrA )
466 ptrA->scaleExpE = 0;
467 ptrA->scaleE = 0;
468 ptrA->xE = 0;
469 ptrA->yE = 0;
470 ptrA->effMaxScaleE = 0;
471 ptrA->currentWidthE = 0;
472 ptrA->currentHeightE = 0;
473 ptrA->workWidthE = 0;
474 ptrA->workHeightE = 0;
475 bbf_BitParam_exit( cpA, &ptrA->bitParamE );
476 bbs_UInt16Arr_exit( cpA, &ptrA->workImageE );
477 bim_UInt32Image_exit( cpA, &ptrA->satE );
478 bim_UInt32Image_exit( cpA, &ptrA->bitImageE );
479 bbs_UInt32Arr_exit( cpA, &ptrA->patchBufferE );
480 bbs_UInt16Arr_exit( cpA, &ptrA->lineBufE );
482 bbs_UInt32Arr_exit( cpA, &ptrA->idxArrE );
483 bbs_Int32Arr_exit( cpA, &ptrA->actArrE );
484 bbs_Int32Arr_exit( cpA, &ptrA->outArrE );
485 ptrA->outCountE = 0;
486 ptrA->intCountE = 0;
487 ptrA->bufferSizeE = 1024;
489 ptrA->maxImageWidthE = 0;
490 ptrA->maxImageHeightE = 0;
491 ptrA->maxRadiusE = 0;
492 ptrA->patchWidthE = 0;
493 ptrA->patchHeightE = 0;
494 ptrA->minScaleE = 0;
495 ptrA->maxScaleE = 0;
496 ptrA->scaleStepE = 0;
497 ptrA->borderWidthE = 0;
498 ptrA->borderHeightE = 0;
512 struct bbf_Scanner* ptrA,
515 ptrA->scaleExpE = srcPtrA->scaleExpE;
516 ptrA->scaleE = srcPtrA->scaleE;
517 ptrA->xE = srcPtrA->xE;
518 ptrA->yE = srcPtrA->yE;
519 ptrA->effMaxScaleE = srcPtrA->effMaxScaleE;
520 ptrA->currentWidthE = srcPtrA->currentWidthE;
521 ptrA->currentHeightE = srcPtrA->currentHeightE;
522 ptrA->workWidthE = srcPtrA->workWidthE;
523 ptrA->workHeightE = srcPtrA->workHeightE;
525 bbf_BitParam_copy( cpA, &ptrA->bitParamE, &srcPtrA->bitParamE );
526 bbs_UInt16Arr_copy( cpA, &ptrA->workImageE, &srcPtrA->workImageE );
527 bim_UInt32Image_copy( cpA, &ptrA->satE, &srcPtrA->satE );
528 bim_UInt32Image_copy( cpA, &ptrA->bitImageE, &srcPtrA->bitImageE );
529 bbs_UInt32Arr_copy( cpA, &ptrA->patchBufferE, &srcPtrA->patchBufferE );
530 bbs_UInt16Arr_copy( cpA, &ptrA->lineBufE, &srcPtrA->lineBufE );
532 ptrA->maxImageWidthE = srcPtrA->maxImageWidthE;
533 ptrA->maxImageHeightE = srcPtrA->maxImageHeightE;
534 ptrA->maxRadiusE = srcPtrA->maxRadiusE;
535 ptrA->patchWidthE = srcPtrA->patchWidthE;
536 ptrA->patchHeightE = srcPtrA->patchHeightE;
537 ptrA->minScaleE = srcPtrA->minScaleE;
538 ptrA->maxScaleE = srcPtrA->maxScaleE;
539 ptrA->scaleStepE = srcPtrA->scaleStepE;
540 ptrA->borderWidthE = srcPtrA->borderWidthE;
541 ptrA->borderHeightE = srcPtrA->borderHeightE;
547 const struct bbf_Scanner* ptrA,
550 if( ptrA->maxImageWidthE != srcPtrA->maxImageWidthE ) return FALSE;
551 if( ptrA->maxImageHeightE != srcPtrA->maxImageHeightE ) return FALSE;
552 if( ptrA->maxRadiusE != srcPtrA->maxRadiusE ) return FALSE;
553 if( ptrA->patchWidthE != srcPtrA->patchWidthE ) return FALSE;
554 if( ptrA->patchHeightE != srcPtrA->patchHeightE ) return FALSE;
555 if( ptrA->minScaleE != srcPtrA->minScaleE ) return FALSE;
556 if( ptrA->maxScaleE != srcPtrA->maxScaleE ) return FALSE;
557 if( ptrA->scaleStepE != srcPtrA->scaleStepE ) return FALSE;
558 if( ptrA->borderWidthE != srcPtrA->borderWidthE ) return FALSE;
559 if( ptrA->borderHeightE != srcPtrA->borderHeightE ) return FALSE;
573 uint32 bbf_Scanner_positions( const struct bbf_Scanner* ptrA )
575 int32 wL = ( int32 )ptrA->currentWidthE - ptrA->patchWidthE;
576 int32 hL = ( int32 )ptrA->currentHeightE - ptrA->patchHeightE;
582 uint32 bbf_Scanner_scanIndex( const struct bbf_Scanner* ptrA )
584 return ptrA->yE * ptrA->currentWidthE + ptrA->xE;
589 void bbf_Scanner_pos( const struct bbf_Scanner* ptrA,
593 *xPtrA = ( int32 )( ptrA->xE - ptrA->borderWidthE ) * ( int32 )( ptrA->scaleE >> 4 );
596 *yPtrA = ( int32 )( ptrA->yE - ptrA->borderHeightE ) * ( int32 )( ptrA->scaleE >> 4 );
599 *scalePtrA = ptrA->scaleE;
604 void bbf_Scanner_idxPos( const struct bbf_Scanner* ptrA, uint32 scanIndexA,
607 int32 yL = scanIndexA / ptrA->currentWidthE;
608 int32 xL = scanIndexA - ( yL * ptrA->currentWidthE );
611 *xPtrA = ( int32 )( xL - ptrA->borderWidthE ) * ( int32 )( ptrA->scaleE >> 4 );
614 *yPtrA = ( int32 )( yL - ptrA->borderHeightE ) * ( int32 )( ptrA->scaleE >> 4 );
616 *scalePtrA = ptrA->scaleE;
630 struct bbf_Scanner* ptrA,
645 ptrA->maxImageWidthE = maxImageWidthA;
646 ptrA->maxImageHeightE = maxImageHeightA;
647 ptrA->maxRadiusE = maxRadiusA;
648 ptrA->patchWidthE = patchWidthA;
649 ptrA->patchHeightE = patchHeightA;
650 ptrA->minScaleE = minScaleA;
651 ptrA->maxScaleE = maxScaleA;
652 ptrA->scaleStepE = scaleStepA;
653 ptrA->borderWidthE = borderWidthA;
654 ptrA->borderHeightE = borderHeightA;
655 ptrA->bufferSizeE = bufferSizeA;
656 bbf_Scanner_alloc( cpA, ptrA, mtpA, maximizeSharedMemoryA );
662 struct bbf_Scanner* ptrA,
665 if( !bbf_BitParam_equal( cpA, &ptrA->bitParamE, bitParamPtrA ) )
667 bbf_BitParam_copy( cpA, &ptrA->bitParamE, bitParamPtrA );
668 bbf_Scanner_createBitImage( cpA, ptrA );
671 bbf_Scanner_resetScan( cpA, ptrA );
685 const struct bbf_Scanner* ptrA )
689 memSizeL += bbs_SIZEOF16( ptrA->maxImageWidthE );
690 memSizeL += bbs_SIZEOF16( ptrA->maxImageHeightE );
691 memSizeL += bbs_SIZEOF16( ptrA->maxRadiusE );
692 memSizeL += bbs_SIZEOF16( ptrA->patchWidthE );
693 memSizeL += bbs_SIZEOF16( ptrA->patchHeightE );
694 memSizeL += bbs_SIZEOF16( ptrA->minScaleE );
695 memSizeL += bbs_SIZEOF16( ptrA->maxScaleE );
696 memSizeL += bbs_SIZEOF16( ptrA->scaleStepE );
697 memSizeL += bbs_SIZEOF16( ptrA->borderWidthE );
698 memSizeL += bbs_SIZEOF16( ptrA->borderHeightE );
705 const struct bbf_Scanner* ptrA,
708 uint32 memSizeL = bbf_Scanner_memSize( cpA, ptrA );
711 memPtrA += bbs_memWrite32( &ptrA->maxImageWidthE, memPtrA );
712 memPtrA += bbs_memWrite32( &ptrA->maxImageHeightE, memPtrA );
713 memPtrA += bbs_memWrite32( &ptrA->maxRadiusE, memPtrA );
714 memPtrA += bbs_memWrite32( &ptrA->patchWidthE, memPtrA );
715 memPtrA += bbs_memWrite32( &ptrA->patchHeightE, memPtrA );
716 memPtrA += bbs_memWrite32( &ptrA->minScaleE, memPtrA );
717 memPtrA += bbs_memWrite32( &ptrA->maxScaleE, memPtrA );
718 memPtrA += bbs_memWrite32( &ptrA->scaleStepE, memPtrA );
719 memPtrA += bbs_memWrite32( &ptrA->borderWidthE, memPtrA );
720 memPtrA += bbs_memWrite32( &ptrA->borderHeightE, memPtrA );
727 struct bbf_Scanner* ptrA,
737 memPtrA += bbs_memRead32( &ptrA->maxImageWidthE, memPtrA );
738 memPtrA += bbs_memRead32( &ptrA->maxImageHeightE, memPtrA );
739 memPtrA += bbs_memRead32( &ptrA->maxRadiusE, memPtrA );
740 memPtrA += bbs_memRead32( &ptrA->patchWidthE, memPtrA );
741 memPtrA += bbs_memRead32( &ptrA->patchHeightE, memPtrA );
742 memPtrA += bbs_memRead32( &ptrA->minScaleE, memPtrA );
743 memPtrA += bbs_memRead32( &ptrA->maxScaleE, memPtrA );
744 memPtrA += bbs_memRead32( &ptrA->scaleStepE, memPtrA );
745 memPtrA += bbs_memRead32( &ptrA->borderWidthE, memPtrA );
746 memPtrA += bbs_memRead32( &ptrA->borderHeightE, memPtrA );
748 if( memSizeL != bbf_Scanner_memSize( cpA, ptrA ) )
750 bbs_ERR0( bbs_ERR_CORRUPT_DATA, "uint32 bbf_Scanner_memRead( struct bem_ScanGradientMove* ptrA, const uint16* memPtrA ):\n"
758 bbf_Scanner_alloc( cpA, ptrA, mtpA, FALSE );
775 void bbf_Scanner_resetScan( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
777 ptrA->xE = 0;
778 ptrA->yE = 0;
779 bbf_Scanner_initPatchBuffer( cpA, ptrA );
784 void bbf_Scanner_assign( struct bbs_Context* cpA, struct bbf_Scanner* ptrA,
792 bbf_Scanner_copyImage( cpA, ptrA, imagePtrA, imageWidthA, imageHeightA, roiPtrA );
794 ptrA->scaleE = ptrA->minScaleE;
795 bbf_BitParam_copy( cpA, &ptrA->bitParamE, paramPtrA );
800 uint32 maxHScaleL = ( ptrA->workWidthE << 16 ) / ( ptrA->patchWidthE + 1 );
801 uint32 maxVScaleL = ( ptrA->workHeightE << 16 ) / ( ptrA->patchHeightE + 1 );
804 ptrA->effMaxScaleE = maxHScaleL < maxVScaleL ? ( maxHScaleL << 4 ) : ( maxVScaleL << 4 );
806 if( ptrA->maxScaleE > 0 ) ptrA->effMaxScaleE = ptrA->effMaxScaleE < ptrA->maxScaleE ? ptrA->effMaxScaleE : ptrA->maxScaleE;
809 ptrA->scaleExpE = 0;
812 while( ptrA->scaleE > ( ( uint32 )( 2 << ptrA->scaleExpE ) << 20 ) ) bbf_Scanner_downscale( cpA, ptrA );
814 bbf_Scanner_createBitImage( cpA, ptrA );
815 bbf_Scanner_resetScan( cpA, ptrA );
820 flag bbf_Scanner_nextScale( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
822 if( ptrA->scaleE + bbf_Scanner_scalePrd( ptrA->scaleE, ptrA->scaleStepE ) >= ptrA->effMaxScaleE ) return FALSE;
823 ptrA->scaleE += bbf_Scanner_scalePrd( ptrA->scaleE, ptrA->scaleStepE );
826 while( ptrA->scaleE > ( ( uint32 )( 2 << ptrA->scaleExpE ) << 20 ) ) bbf_Scanner_downscale( cpA, ptrA );
828 bbf_Scanner_createBitImage( cpA, ptrA );
829 bbf_Scanner_resetScan( cpA, ptrA );
835 const uint32* bbf_Scanner_getPatch( const struct bbf_Scanner* ptrA )
837 return ptrA->patchBufferE.arrPtrE + ptrA->xE;
842 flag bbf_Scanner_next( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
844 if( ( ptrA->xE + 1 ) < ( int32 )( ptrA->currentWidthE - ptrA->patchWidthE ) )
846 ptrA->xE++;
850 if( ( ptrA->yE + 1 ) >= ( int32 )( ptrA->currentHeightE - ptrA->patchHeightE ) ) return FALSE;
852 ptrA->xE = 0;
853 ptrA->yE++;
856 uint32 offL = ( ptrA->yE & 0x1F );
857 uint32 rowL = ( ptrA->yE >> 5 ) + ( offL > 0 ? 1 : 0 );
859 uint32 sizeL = ptrA->bitImageE.widthE;
860 uint32* dstL = ptrA->patchBufferE.arrPtrE;
863 if( rowL < ptrA->bitImageE.heightE )
865 uint32* srcL = ( uint32* )ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL;
887 void bbf_Scanner_goToXY( struct bbs_Context* cpA, struct bbf_Scanner* ptrA, int32 xA, int32 yA )
889 bbs_DEF_fNameL( "void bbf_Scanner_goToXY( struct bbs_Context* cpA, struct bbf_Scanner* ptrA, int32 xA, int32 yA )" )
891 if( xA > ( int32 )( ptrA->currentWidthE - ptrA->patchWidthE ) )
897 ptrA->xE = xA;
899 if( ptrA->yE == yA ) return;
901 if( yA >= ( int32 )( ptrA->currentHeightE - ptrA->patchHeightE ) )
907 if( yA == ptrA->yE + 1 )
914 ptrA->yE = yA;
915 offL = ( ptrA->yE & 0x1F );
916 rowL = ( ptrA->yE >> 5 ) + ( offL > 0 ? 1 : 0 );
918 sizeL = ptrA->bitImageE.widthE;
919 dstL = ptrA->patchBufferE.arrPtrE;
921 if( rowL < ptrA->bitImageE.heightE )
923 uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL;
946 ptrA->yE = yA;
947 offL = ( ptrA->yE & 0x1F );
948 rowL = ( ptrA->yE >> 5 ) + ( offL > 0 ? 1 : 0 );
950 sizeL = ptrA->bitImageE.widthE;
951 dstL = ptrA->patchBufferE.arrPtrE;
953 if( rowL < ptrA->bitImageE.heightE )
957 uint32* src1L = ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL;
964 bbs_memcpy32( dstL, ptrA->bitImageE.arrE.arrPtrE + rowL * sizeL, sizeL );
969 uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + ( rowL - 1 ) * sizeL;
977 void bbf_Scanner_goToIndex( struct bbs_Context* cpA, struct bbf_Scanner* ptrA, uint32 scanIndexA )
979 int32 yL = scanIndexA / ptrA->currentWidthE;
980 int32 xL = scanIndexA - yL * ptrA->currentWidthE;
981 bbf_Scanner_goToXY( cpA, ptrA, xL, yL );
986 void bbf_Scanner_goToUls( struct bbs_Context* cpA, struct bbf_Scanner* ptrA,
989 int32 xL = ( xA / ( int32 )( ptrA->scaleE >> 4 ) ) + ptrA->borderWidthE;
990 int32 yL = ( yA / ( int32 )( ptrA->scaleE >> 4 ) ) + ptrA->borderHeightE;
992 if( ptrA->scaleE != scaleA )
998 bbf_Scanner_goToXY( cpA, ptrA, xL, yL );
1004 void bbf_Scanner_resetOutPos( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
1006 ptrA->outCountE = 0;
1012 void bbf_Scanner_resetIntPos( struct bbs_Context* cpA, struct bbf_Scanner* ptrA )
1014 ptrA->intCountE = 0;
1021 struct bbf_Scanner* ptrA,
1025 if( ptrA->intCountE < ptrA->idxArrE.sizeE )
1027 ptrA->idxArrE.arrPtrE[ ptrA->intCountE ] = idxA;
1028 ptrA->actArrE.arrPtrE[ ptrA->intCountE ] = actA;
1029 ptrA->intCountE++;
1039 int32* actArrL = ptrA->actArrE.arrPtrE;
1040 for( iL = 0; iL < ptrA->intCountE; iL++ )
1051 ptrA->idxArrE.arrPtrE[ minIdxL ] = idxA;
1052 ptrA->actArrE.arrPtrE[ minIdxL ] = actA;
1061 struct bbf_Scanner* ptrA,
1067 if( ( ptrA->outCountE * 4 ) < ptrA->outArrE.sizeE )
1069 ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 0 ] = xA;
1070 ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 1 ] = yA;
1071 ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 2 ] = scaleA;
1072 ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 3 ] = actA;
1073 ptrA->outCountE++;
1083 int32* outArrL = ptrA->outArrE.arrPtrE;
1084 for( iL = 0; iL < ptrA->outCountE; iL++ )
1095 ptrA->idxArrE.arrPtrE[ minIdxL * 4 + 0 ] = xA;
1096 ptrA->idxArrE.arrPtrE[ minIdxL * 4 + 1 ] = yA;
1097 ptrA->idxArrE.arrPtrE[ minIdxL * 4 + 2 ] = scaleA;
1098 ptrA->idxArrE.arrPtrE[ minIdxL * 4 + 3 ] = actA;
1107 struct bbf_Scanner* ptrA,
1111 uint32 endIdxL = ptrA->outCountE; /* end index */
1113 uint32 rw0L = ptrA->patchWidthE;
1114 uint32 rh0L = ptrA->patchHeightE;
1115 int32* outArrL = ptrA->outArrE.arrPtrE;
1117 if( overlapThrA >= 0x010000 ) return ptrA->outCountE;
1205 ptrA->outCountE = endIdxL;
1214 struct bbf_Scanner* ptrA,
1218 uint32 endIdxL = ptrA->intCountE; /* end index */
1220 uint32 rw0L = ptrA->patchWidthE;
1221 uint32 rh0L = ptrA->patchHeightE;
1224 int32* actArrL = ptrA->actArrE.arrPtrE;
1225 uint32* idxArrL = ptrA->idxArrE.arrPtrE;
1227 if( overlapThrA >= 0x010000 ) return ptrA->intCountE;
1254 y1L = i1L / ptrA->currentWidthE;
1255 x1L = i1L - ( y1L * ptrA->currentWidthE );
1263 int32 y2L = *i2pL / ptrA->currentWidthE;
1264 int32 x2L = *i2pL - ( y2L * ptrA->currentWidthE );
1283 ptrA->intCountE = endIdxL;
1285 return ptrA->intCountE;