Embedded/common/src/b_BitFeatureEm/LocalScanner.c
/* sets work scan region from original scan region according to scale exponent */
sets work scan region from original scan region according to scale exponent
sets work scan region from original scan region according to scale exponent
void bbf_LocalScanner_setWorkScanRegion( struct bbs_Context* cpA, struct bbf_LocalScanner* ptrA )
{
	int32 xMinL = ptrA->origScanRegionE.x1E >> ptrA->scaleExpE;
	int32 yMinL = ptrA->origScanRegionE.y1E >> ptrA->scaleExpE;
	int32 xMaxL = ptrA->origScanRegionE.x2E >> ptrA->scaleExpE;
	int32 yMaxL = ptrA->origScanRegionE.y2E >> ptrA->scaleExpE;
	ptrA->workScanRegionE.x1E = ( xMinL < 0 ) ? 0 : xMinL;
	ptrA->workScanRegionE.y1E = ( yMinL < 0 ) ? 0 : yMinL;
	ptrA->workScanRegionE.x2E = ( xMaxL > ( int32 )ptrA->currentWidthE ) ? ptrA->currentWidthE : xMaxL;
	ptrA->workScanRegionE.y2E = ( yMaxL > ( int32 )ptrA->currentHeightE ) ? ptrA->currentHeightE : yMaxL;
}
void bbf_LocalScanner_setWorkScanRegion ( struct bbs_Context * cpA , struct bbf_LocalScanner * ptrA ) { int32 xMinL = ptrA -> origScanRegionE . x1E >> ptrA -> scaleExpE ; int32 yMinL = ptrA -> origScanRegionE . y1E >> ptrA -> scaleExpE ; int32 xMaxL = ptrA -> origScanRegionE . x2E >> ptrA -> scaleExpE ; int32 yMaxL = ptrA -> origScanRegionE . y2E >> ptrA -> scaleExpE ; ptrA -> workScanRegionE . x1E = ( xMinL < 0 ) ? 0 : xMinL ; ptrA -> workScanRegionE . y1E = ( yMinL < 0 ) ? 0 : yMinL ; ptrA -> workScanRegionE . x2E = ( xMaxL > ( int32 ) ptrA -> currentWidthE ) ? ptrA -> currentWidthE : xMaxL ; ptrA -> workScanRegionE . y2E = ( yMaxL > ( int32 ) ptrA -> currentHeightE ) ? ptrA -> currentHeightE : yMaxL ; }
sets work scan region from original scan region according to scale exponent
sets work scan region from original scan region according to scale exponent