Lines Matching refs:ptrA
35 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_alloc() argument
43 uint32 proL = ptrA->maxRadiusE; in bbf_LocalScanner_alloc()
47 uint32 woL = ptrA->maxImageWidthE; in bbf_LocalScanner_alloc()
48 uint32 hoL = ptrA->maxImageHeightE; in bbf_LocalScanner_alloc()
50 if( ptrA->minScaleExpE > 0 ) in bbf_LocalScanner_alloc()
53 bbs_UInt8Arr_create( cpA, &ptrA->workImageBufferE, ( woL >> 1 ) * ( hoL >> 1 ), espL ); in bbf_LocalScanner_alloc()
54 bbs_UInt8Arr_fill( cpA, &ptrA->workImageBufferE, 0 ); in bbf_LocalScanner_alloc()
58 …bim_UInt32Image_create( cpA, &ptrA->bitImageE, woL, ( hoL >> 5 ) + ( ( ( hoL & 0x1F ) != 0 ) ? 1 :… in bbf_LocalScanner_alloc()
59 bim_UInt32Image_setAllPixels( cpA, &ptrA->bitImageE, 0, 0 ); in bbf_LocalScanner_alloc()
62 bbs_UInt32Arr_create( cpA, &ptrA->patchBufferE, ptrA->bitImageE.widthE, espL ); in bbf_LocalScanner_alloc()
63 bbs_UInt32Arr_fill( cpA, &ptrA->patchBufferE, 0 ); in bbf_LocalScanner_alloc()
66 bim_UInt32Image_create( cpA, &ptrA->satE, woL + pwoL, pwoL + 1, sspL ); in bbf_LocalScanner_alloc()
72 void bbf_LocalScanner_downscale0( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_downscale0() argument
74 int32 w0L = ptrA->origWidthE; in bbf_LocalScanner_downscale0()
75 int32 h0L = ptrA->origHeightE; in bbf_LocalScanner_downscale0()
77 int32 w1L = ( w0L - ptrA->xOffE ) >> 1; in bbf_LocalScanner_downscale0()
78 int32 h1L = ( h0L - ptrA->yOffE ) >> 1; in bbf_LocalScanner_downscale0()
80 const uint8* iArrL = ptrA->origImagePtrE + ptrA->xOffE + ptrA->yOffE * w0L; in bbf_LocalScanner_downscale0()
81 uint8* oArrL = ptrA->workImageBufferE.arrPtrE; in bbf_LocalScanner_downscale0()
86 bbs_UInt8Arr_size( cpA, &ptrA->workImageBufferE, w1L * h1L ); in bbf_LocalScanner_downscale0()
87 ptrA->workImagePtrE = ptrA->workImageBufferE.arrPtrE; in bbf_LocalScanner_downscale0()
88 ptrA->workWidthE = w1L; in bbf_LocalScanner_downscale0()
89 ptrA->workHeightE = h1L; in bbf_LocalScanner_downscale0()
107 void bbf_LocalScanner_downscale1( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_downscale1() argument
109 int32 w0L = ptrA->workWidthE; in bbf_LocalScanner_downscale1()
110 int32 h0L = ptrA->workHeightE; in bbf_LocalScanner_downscale1()
114 uint8* arrL = ptrA->workImageBufferE.arrPtrE; in bbf_LocalScanner_downscale1()
131 ptrA->workWidthE = w1L; in bbf_LocalScanner_downscale1()
132 ptrA->workHeightE = h1L; in bbf_LocalScanner_downscale1()
138 void bbf_LocalScanner_downscale( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_downscale() argument
141 if( ptrA->scaleExpE > 0 ) bbf_LocalScanner_downscale0( cpA, ptrA ); in bbf_LocalScanner_downscale()
142 for( iL = 1; iL < ptrA->scaleExpE; iL++ ) bbf_LocalScanner_downscale1( cpA, ptrA ); in bbf_LocalScanner_downscale()
148 void bbf_LocalScanner_createBitImage( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_createBitImage() argument
154 uint32 proL = ptrA->bitParamE.outerRadiusE; in bbf_LocalScanner_createBitImage()
155 uint32 priL = ptrA->bitParamE.innerRadiusE; in bbf_LocalScanner_createBitImage()
184 wL = ptrA->workWidthE; in bbf_LocalScanner_createBitImage()
185 hL = ptrA->workHeightE; in bbf_LocalScanner_createBitImage()
193 ptrA->currentWidthE = wL; in bbf_LocalScanner_createBitImage()
194 ptrA->currentHeightE = hL; in bbf_LocalScanner_createBitImage()
197 ptrA->workScanRegionE = bts_Int16Rect_create( 0, 0, ptrA->currentWidthE, ptrA->currentHeightE ); in bbf_LocalScanner_createBitImage()
200 …bim_UInt32Image_size( cpA, &ptrA->bitImageE, wL, ( hL >> 5 ) + ( ( ( hL & 0x1F ) != 0 ) ? 1 : 0 ) … in bbf_LocalScanner_createBitImage()
201 bim_UInt32Image_setAllPixels( cpA, &ptrA->bitImageE, 0, 0 ); in bbf_LocalScanner_createBitImage()
204 bitRowL = ( uint32* )ptrA->bitImageE.arrE.arrPtrE; in bbf_LocalScanner_createBitImage()
212 bim_UInt32Image_size( cpA, &ptrA->satE, wsL, hsL ); in bbf_LocalScanner_createBitImage()
214 satL = ( uint32* )ptrA->satE.arrE.arrPtrE; in bbf_LocalScanner_createBitImage()
215 satSizeL = ptrA->satE.arrE.sizeE; in bbf_LocalScanner_createBitImage()
225 const uint8* arr0L = &ptrA->workImagePtrE[ jL * wL ]; in bbf_LocalScanner_createBitImage()
281 void bbf_LocalScanner_initPatchBuffer( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_initPatchBuffer() argument
283 int32 ybL = ptrA->workScanRegionE.y1E >> 5; in bbf_LocalScanner_initPatchBuffer()
284 int32 yoL = ptrA->workScanRegionE.y1E & 0x1F; in bbf_LocalScanner_initPatchBuffer()
285 int32 xbL = ptrA->workScanRegionE.x1E; in bbf_LocalScanner_initPatchBuffer()
286 uint32 wsrWidthL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E; in bbf_LocalScanner_initPatchBuffer()
288 bbs_UInt32Arr_size( cpA, &ptrA->patchBufferE, ptrA->bitImageE.widthE ); in bbf_LocalScanner_initPatchBuffer()
292 bbs_memcpy32( ptrA->patchBufferE.arrPtrE + xbL, in bbf_LocalScanner_initPatchBuffer()
293 ptrA->bitImageE.arrE.arrPtrE + ybL * ptrA->bitImageE.widthE + xbL, in bbf_LocalScanner_initPatchBuffer()
296 else if( ybL == ( int32 )ptrA->bitImageE.heightE - 1 ) in bbf_LocalScanner_initPatchBuffer()
298 uint32* dstL = ptrA->patchBufferE.arrPtrE + xbL; in bbf_LocalScanner_initPatchBuffer()
299 const uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + ybL * ptrA->bitImageE.widthE + xbL; in bbf_LocalScanner_initPatchBuffer()
305 uint32* dstL = ptrA->patchBufferE.arrPtrE + xbL; in bbf_LocalScanner_initPatchBuffer()
306 const uint32* src0L = ptrA->bitImageE.arrE.arrPtrE + ybL * ptrA->bitImageE.widthE + xbL; in bbf_LocalScanner_initPatchBuffer()
307 const uint32* src1L = src0L + ptrA->bitImageE.widthE; in bbf_LocalScanner_initPatchBuffer()
317 void bbf_LocalScanner_setWorkScanRegion( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_setWorkScanRegion() argument
319 int32 xMinL = ptrA->origScanRegionE.x1E >> ptrA->scaleExpE; in bbf_LocalScanner_setWorkScanRegion()
320 int32 yMinL = ptrA->origScanRegionE.y1E >> ptrA->scaleExpE; in bbf_LocalScanner_setWorkScanRegion()
321 int32 xMaxL = ptrA->origScanRegionE.x2E >> ptrA->scaleExpE; in bbf_LocalScanner_setWorkScanRegion()
322 int32 yMaxL = ptrA->origScanRegionE.y2E >> ptrA->scaleExpE; in bbf_LocalScanner_setWorkScanRegion()
323 ptrA->workScanRegionE.x1E = ( xMinL < 0 ) ? 0 : xMinL; in bbf_LocalScanner_setWorkScanRegion()
324 ptrA->workScanRegionE.y1E = ( yMinL < 0 ) ? 0 : yMinL; in bbf_LocalScanner_setWorkScanRegion()
325 ptrA->workScanRegionE.x2E = ( xMaxL > ( int32 )ptrA->currentWidthE ) ? ptrA->currentWidthE : xMaxL; in bbf_LocalScanner_setWorkScanRegion()
326 …ptrA->workScanRegionE.y2E = ( yMaxL > ( int32 )ptrA->currentHeightE ) ? ptrA->currentHeightE : yMa… in bbf_LocalScanner_setWorkScanRegion()
340 struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_init() argument
342 ptrA->xE = 0; in bbf_LocalScanner_init()
343 ptrA->yE = 0; in bbf_LocalScanner_init()
344 ptrA->xOffE = 0; in bbf_LocalScanner_init()
345 ptrA->yOffE = 0; in bbf_LocalScanner_init()
346 ptrA->currentWidthE = 0; in bbf_LocalScanner_init()
347 ptrA->currentHeightE = 0; in bbf_LocalScanner_init()
348 ptrA->workWidthE = 0; in bbf_LocalScanner_init()
349 ptrA->workHeightE = 0; in bbf_LocalScanner_init()
350 ptrA->workImagePtrE = NULL; in bbf_LocalScanner_init()
351 ptrA->origWidthE = 0; in bbf_LocalScanner_init()
352 ptrA->origHeightE = 0; in bbf_LocalScanner_init()
353 ptrA->origImagePtrE = NULL; in bbf_LocalScanner_init()
354 bbf_BitParam_init( cpA, &ptrA->bitParamE ); in bbf_LocalScanner_init()
355 bbs_UInt8Arr_init( cpA, &ptrA->workImageBufferE ); in bbf_LocalScanner_init()
356 bim_UInt32Image_init( cpA, &ptrA->satE ); in bbf_LocalScanner_init()
357 bim_UInt32Image_init( cpA, &ptrA->bitImageE ); in bbf_LocalScanner_init()
358 bbs_UInt32Arr_init( cpA, &ptrA->patchBufferE ); in bbf_LocalScanner_init()
359 bts_Int16Rect_init( cpA, &ptrA->origScanRegionE ); in bbf_LocalScanner_init()
360 bts_Int16Rect_init( cpA, &ptrA->workScanRegionE ); in bbf_LocalScanner_init()
362 ptrA->patchWidthE = 0; in bbf_LocalScanner_init()
363 ptrA->patchHeightE = 0; in bbf_LocalScanner_init()
364 ptrA->scaleExpE = 0; in bbf_LocalScanner_init()
365 ptrA->maxImageWidthE = 0; in bbf_LocalScanner_init()
366 ptrA->maxImageHeightE = 0; in bbf_LocalScanner_init()
367 ptrA->minScaleExpE = 0; in bbf_LocalScanner_init()
368 ptrA->maxRadiusE = 0; in bbf_LocalScanner_init()
374 struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_exit() argument
376 ptrA->xE = 0; in bbf_LocalScanner_exit()
377 ptrA->yE = 0; in bbf_LocalScanner_exit()
378 ptrA->xOffE = 0; in bbf_LocalScanner_exit()
379 ptrA->yOffE = 0; in bbf_LocalScanner_exit()
380 ptrA->currentWidthE = 0; in bbf_LocalScanner_exit()
381 ptrA->currentHeightE = 0; in bbf_LocalScanner_exit()
382 ptrA->workWidthE = 0; in bbf_LocalScanner_exit()
383 ptrA->workHeightE = 0; in bbf_LocalScanner_exit()
384 ptrA->workImagePtrE = NULL; in bbf_LocalScanner_exit()
385 ptrA->origWidthE = 0; in bbf_LocalScanner_exit()
386 ptrA->origHeightE = 0; in bbf_LocalScanner_exit()
387 ptrA->origImagePtrE = NULL; in bbf_LocalScanner_exit()
388 bbf_BitParam_exit( cpA, &ptrA->bitParamE ); in bbf_LocalScanner_exit()
389 bbs_UInt8Arr_exit( cpA, &ptrA->workImageBufferE ); in bbf_LocalScanner_exit()
390 bim_UInt32Image_exit( cpA, &ptrA->satE ); in bbf_LocalScanner_exit()
391 bim_UInt32Image_exit( cpA, &ptrA->bitImageE ); in bbf_LocalScanner_exit()
392 bbs_UInt32Arr_exit( cpA, &ptrA->patchBufferE ); in bbf_LocalScanner_exit()
393 bts_Int16Rect_exit( cpA, &ptrA->origScanRegionE ); in bbf_LocalScanner_exit()
394 bts_Int16Rect_exit( cpA, &ptrA->workScanRegionE ); in bbf_LocalScanner_exit()
396 ptrA->patchWidthE = 0; in bbf_LocalScanner_exit()
397 ptrA->patchHeightE = 0; in bbf_LocalScanner_exit()
398 ptrA->scaleExpE = 0; in bbf_LocalScanner_exit()
399 ptrA->maxImageWidthE = 0; in bbf_LocalScanner_exit()
400 ptrA->maxImageHeightE = 0; in bbf_LocalScanner_exit()
401 ptrA->minScaleExpE = 0; in bbf_LocalScanner_exit()
402 ptrA->maxRadiusE = 0; in bbf_LocalScanner_exit()
416 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_copy() argument
425 const struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_equal() argument
442 uint32 bbf_LocalScanner_positions( const struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_positions() argument
444 int32 wL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E - ptrA->patchWidthE; in bbf_LocalScanner_positions()
445 int32 hL = ptrA->workScanRegionE.y2E - ptrA->workScanRegionE.y1E - ptrA->patchHeightE; in bbf_LocalScanner_positions()
451 uint32 bbf_LocalScanner_scanIndex( const struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_scanIndex() argument
453 int32 wL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E - ptrA->patchWidthE; in bbf_LocalScanner_scanIndex()
454 return ( ptrA->yE - ptrA->workScanRegionE.y1E ) * wL + ( ptrA->xE - ptrA->workScanRegionE.x1E ); in bbf_LocalScanner_scanIndex()
459 void bbf_LocalScanner_pos( const struct bbf_LocalScanner* ptrA, int32* xPtrA, int32* yPtrA ) in bbf_LocalScanner_pos() argument
461 *xPtrA = ( ( ptrA->xE << ptrA->scaleExpE ) + ptrA->xOffE ) << 16; in bbf_LocalScanner_pos()
462 *yPtrA = ( ( ptrA->yE << ptrA->scaleExpE ) + ptrA->yOffE ) << 16; in bbf_LocalScanner_pos()
467 void bbf_LocalScanner_idxPos( const struct bbf_LocalScanner* ptrA, uint32 scanIndexA, int32* xPtrA,… in bbf_LocalScanner_idxPos() argument
469 uint32 wL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E - ptrA->patchWidthE; in bbf_LocalScanner_idxPos()
470 int32 xL = ( scanIndexA % wL ) + ptrA->workScanRegionE.x1E; in bbf_LocalScanner_idxPos()
471 int32 yL = ( scanIndexA / wL ) + ptrA->workScanRegionE.y1E; in bbf_LocalScanner_idxPos()
472 *xPtrA = ( ( xL << ptrA->scaleExpE ) + ptrA->xOffE ) << 16; in bbf_LocalScanner_idxPos()
473 *yPtrA = ( ( yL << ptrA->scaleExpE ) + ptrA->yOffE ) << 16; in bbf_LocalScanner_idxPos()
487 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_create() argument
497 ptrA->patchWidthE = patchWidthA; in bbf_LocalScanner_create()
498 ptrA->patchHeightE = patchHeightA; in bbf_LocalScanner_create()
499 ptrA->scaleExpE = scaleExpA; in bbf_LocalScanner_create()
500 ptrA->maxImageWidthE = maxImageWidthA; in bbf_LocalScanner_create()
501 ptrA->maxImageHeightE = maxImageHeightA; in bbf_LocalScanner_create()
502 ptrA->minScaleExpE = minScaleExpA; in bbf_LocalScanner_create()
503 ptrA->maxRadiusE = maxRadiusA; in bbf_LocalScanner_create()
504 bbf_LocalScanner_alloc( cpA, ptrA, mtpA ); in bbf_LocalScanner_create()
510 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_bitParam() argument
513 if( !bbf_BitParam_equal( cpA, &ptrA->bitParamE, bitParamPtrA ) ) in bbf_LocalScanner_bitParam()
515 bbf_BitParam_copy( cpA, &ptrA->bitParamE, bitParamPtrA ); in bbf_LocalScanner_bitParam()
516 bbf_LocalScanner_createBitImage( cpA, ptrA ); in bbf_LocalScanner_bitParam()
519 bbf_LocalScanner_resetScan( cpA, ptrA ); in bbf_LocalScanner_bitParam()
525 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_origScanRegion() argument
528 ptrA->origScanRegionE = *scanRegionPtrA; in bbf_LocalScanner_origScanRegion()
529 bbf_LocalScanner_setWorkScanRegion( cpA, ptrA ); in bbf_LocalScanner_origScanRegion()
530 bbf_LocalScanner_resetScan( cpA, ptrA ); in bbf_LocalScanner_origScanRegion()
544 const struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_memSize() argument
549 memSizeL += bbs_SIZEOF16( ptrA->patchWidthE ); in bbf_LocalScanner_memSize()
550 memSizeL += bbs_SIZEOF16( ptrA->patchHeightE ); in bbf_LocalScanner_memSize()
551 memSizeL += bbs_SIZEOF16( ptrA->scaleExpE ); in bbf_LocalScanner_memSize()
552 memSizeL += bbs_SIZEOF16( ptrA->maxImageWidthE ); in bbf_LocalScanner_memSize()
553 memSizeL += bbs_SIZEOF16( ptrA->maxImageHeightE ); in bbf_LocalScanner_memSize()
554 memSizeL += bbs_SIZEOF16( ptrA->minScaleExpE ); in bbf_LocalScanner_memSize()
555 memSizeL += bbs_SIZEOF16( ptrA->maxRadiusE ); in bbf_LocalScanner_memSize()
563 const struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_memWrite() argument
566 uint32 memSizeL = bbf_LocalScanner_memSize( cpA, ptrA ); in bbf_LocalScanner_memWrite()
570 memPtrA += bbs_memWrite32( &ptrA->patchWidthE, memPtrA ); in bbf_LocalScanner_memWrite()
571 memPtrA += bbs_memWrite32( &ptrA->patchHeightE, memPtrA ); in bbf_LocalScanner_memWrite()
572 memPtrA += bbs_memWrite32( &ptrA->scaleExpE, memPtrA ); in bbf_LocalScanner_memWrite()
573 memPtrA += bbs_memWrite32( &ptrA->maxImageWidthE, memPtrA ); in bbf_LocalScanner_memWrite()
574 memPtrA += bbs_memWrite32( &ptrA->maxImageHeightE, memPtrA ); in bbf_LocalScanner_memWrite()
575 memPtrA += bbs_memWrite32( &ptrA->minScaleExpE, memPtrA ); in bbf_LocalScanner_memWrite()
576 memPtrA += bbs_memWrite32( &ptrA->maxRadiusE, memPtrA ); in bbf_LocalScanner_memWrite()
583 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_memRead() argument
593 memPtrA += bbs_memRead32( &ptrA->patchWidthE, memPtrA ); in bbf_LocalScanner_memRead()
594 memPtrA += bbs_memRead32( &ptrA->patchHeightE, memPtrA ); in bbf_LocalScanner_memRead()
595 memPtrA += bbs_memRead32( &ptrA->scaleExpE, memPtrA ); in bbf_LocalScanner_memRead()
596 memPtrA += bbs_memRead32( &ptrA->maxImageWidthE, memPtrA ); in bbf_LocalScanner_memRead()
597 memPtrA += bbs_memRead32( &ptrA->maxImageHeightE, memPtrA ); in bbf_LocalScanner_memRead()
598 memPtrA += bbs_memRead32( &ptrA->minScaleExpE, memPtrA ); in bbf_LocalScanner_memRead()
599 memPtrA += bbs_memRead32( &ptrA->maxRadiusE, memPtrA ); in bbf_LocalScanner_memRead()
601 if( memSizeL != bbf_LocalScanner_memSize( cpA, ptrA ) ) in bbf_LocalScanner_memRead()
611 bbf_LocalScanner_alloc( cpA, ptrA, mtpA ); in bbf_LocalScanner_memRead()
629 struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_resetScan() argument
631 ptrA->xE = ptrA->workScanRegionE.x1E; in bbf_LocalScanner_resetScan()
632 ptrA->yE = ptrA->workScanRegionE.y1E; in bbf_LocalScanner_resetScan()
633 bbf_LocalScanner_initPatchBuffer( cpA, ptrA ); in bbf_LocalScanner_resetScan()
639 struct bbf_LocalScanner* ptrA, in bbf_LocalScanner_assign() argument
645 if( ptrA->scaleExpE == 0 ) in bbf_LocalScanner_assign()
647 ptrA->workImagePtrE = imagePtrA; in bbf_LocalScanner_assign()
648 ptrA->workWidthE = imageWidthA; in bbf_LocalScanner_assign()
649 ptrA->workHeightE = imageHeightA; in bbf_LocalScanner_assign()
653 ptrA->origImagePtrE = imagePtrA; in bbf_LocalScanner_assign()
654 ptrA->origWidthE = imageWidthA; in bbf_LocalScanner_assign()
655 ptrA->origHeightE = imageHeightA; in bbf_LocalScanner_assign()
658 ptrA->bitParamE = *paramPtrA; in bbf_LocalScanner_assign()
659 ptrA->xOffE = 0; in bbf_LocalScanner_assign()
660 ptrA->yOffE = 0; in bbf_LocalScanner_assign()
661 ptrA->origScanRegionE = bts_Int16Rect_create( 0, 0, imageWidthA, imageHeightA ); in bbf_LocalScanner_assign()
662 bbf_LocalScanner_downscale( cpA, ptrA ); in bbf_LocalScanner_assign()
663 bbf_LocalScanner_createBitImage( cpA, ptrA ); in bbf_LocalScanner_assign()
664 bbf_LocalScanner_resetScan( cpA, ptrA ); in bbf_LocalScanner_assign()
669 const uint32* bbf_LocalScanner_getPatch( const struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_getPatch() argument
671 return ptrA->patchBufferE.arrPtrE + ptrA->xE; in bbf_LocalScanner_getPatch()
676 flag bbf_LocalScanner_next( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_next() argument
678 if( ( ptrA->xE + 1 ) < ptrA->workScanRegionE.x2E - ( int32 )ptrA->patchWidthE ) in bbf_LocalScanner_next()
680 ptrA->xE++; in bbf_LocalScanner_next()
684 if( ( ptrA->yE + 1 ) >= ptrA->workScanRegionE.y2E - ( int32 )ptrA->patchHeightE ) return FALSE; in bbf_LocalScanner_next()
686 ptrA->xE = ptrA->workScanRegionE.x1E; in bbf_LocalScanner_next()
687 ptrA->yE++; in bbf_LocalScanner_next()
690 uint32 offL = ( ptrA->yE & 0x1F ); in bbf_LocalScanner_next()
691 uint32 rowL = ( ptrA->yE >> 5 ) + ( offL > 0 ? 1 : 0 ); in bbf_LocalScanner_next()
693 uint32 widthL = ptrA->bitImageE.widthE; in bbf_LocalScanner_next()
694 uint32 sizeL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E; in bbf_LocalScanner_next()
695 uint32* dstL = ( uint32* )ptrA->patchBufferE.arrPtrE + ptrA->xE; in bbf_LocalScanner_next()
698 if( rowL < ptrA->bitImageE.heightE ) in bbf_LocalScanner_next()
700 uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + rowL * widthL + ptrA->xE; in bbf_LocalScanner_next()
722 void bbf_LocalScanner_goToXY( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA, int32 xA, int… in bbf_LocalScanner_goToXY() argument
725 …if( xA < ptrA->workScanRegionE.x1E || xA >= ptrA->workScanRegionE.x2E - ( int32 )ptrA->patchWidthE… in bbf_LocalScanner_goToXY()
730 ptrA->xE = xA; in bbf_LocalScanner_goToXY()
731 if( ptrA->yE == yA ) return; in bbf_LocalScanner_goToXY()
732 …if( yA < ptrA->workScanRegionE.y1E || yA >= ptrA->workScanRegionE.y2E - ( int32 )ptrA->patchHeight… in bbf_LocalScanner_goToXY()
737 ptrA->yE = yA; in bbf_LocalScanner_goToXY()
740 uint32 offL = ( ptrA->yE & 0x1F ); in bbf_LocalScanner_goToXY()
741 uint32 rowL = ( ptrA->yE >> 5 ) + ( offL > 0 ? 1 : 0 ); in bbf_LocalScanner_goToXY()
743 uint32 sizeL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E; in bbf_LocalScanner_goToXY()
744 uint32 imgWidthL = ptrA->bitImageE.widthE; in bbf_LocalScanner_goToXY()
745 uint32 imgOffsL = ptrA->workScanRegionE.x1E; in bbf_LocalScanner_goToXY()
746 uint32* dstL = ptrA->patchBufferE.arrPtrE + imgOffsL; in bbf_LocalScanner_goToXY()
749 if( rowL < ptrA->bitImageE.heightE ) in bbf_LocalScanner_goToXY()
753 uint32* src1L = ptrA->bitImageE.arrE.arrPtrE + rowL * imgWidthL + imgOffsL; in bbf_LocalScanner_goToXY()
760 bbs_memcpy32( dstL, ptrA->bitImageE.arrE.arrPtrE + rowL * imgWidthL + imgOffsL, sizeL ); in bbf_LocalScanner_goToXY()
765 uint32* srcL = ptrA->bitImageE.arrE.arrPtrE + ( rowL - 1 ) * imgWidthL + imgOffsL; in bbf_LocalScanner_goToXY()
773 void bbf_LocalScanner_goToIndex( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA, uint32 sca… in bbf_LocalScanner_goToIndex() argument
775 uint32 wL = ptrA->workScanRegionE.x2E - ptrA->workScanRegionE.x1E - ptrA->patchWidthE; in bbf_LocalScanner_goToIndex()
776 bbf_LocalScanner_goToXY( cpA, ptrA, in bbf_LocalScanner_goToIndex()
777 ( scanIndexA % wL ) + ptrA->workScanRegionE.x1E, in bbf_LocalScanner_goToIndex()
778 ( scanIndexA / wL ) + ptrA->workScanRegionE.y1E ); in bbf_LocalScanner_goToIndex()
783 flag bbf_LocalScanner_nextOffset( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA ) in bbf_LocalScanner_nextOffset() argument
785 int32 maxL = ( 1 << ptrA->scaleExpE ); in bbf_LocalScanner_nextOffset()
786 if( ptrA->yOffE == maxL ) return FALSE; in bbf_LocalScanner_nextOffset()
788 ptrA->xOffE++; in bbf_LocalScanner_nextOffset()
790 if( ptrA->xOffE == maxL ) in bbf_LocalScanner_nextOffset()
792 ptrA->xOffE = 0; in bbf_LocalScanner_nextOffset()
793 ptrA->yOffE++; in bbf_LocalScanner_nextOffset()
794 if( ptrA->yOffE == maxL ) return FALSE; in bbf_LocalScanner_nextOffset()
797 bbf_LocalScanner_downscale( cpA, ptrA ); in bbf_LocalScanner_nextOffset()
798 bbf_LocalScanner_createBitImage( cpA, ptrA ); in bbf_LocalScanner_nextOffset()
799 bbf_LocalScanner_setWorkScanRegion( cpA, ptrA ); in bbf_LocalScanner_nextOffset()
800 bbf_LocalScanner_resetScan( cpA, ptrA ); in bbf_LocalScanner_nextOffset()