Lines Matching refs:adjCrop
154 Dim adjCrop(mRotInfo.src_rect.x,mRotInfo.src_rect.y, in commit() local
156 adjCrop = getFormatAdjustedCrop(adjCrop, mRotInfo.src.format, in commit()
158 adjCrop = getDownscaleAdjustedCrop(adjCrop, mDownscale); in commit()
160 mRotInfo.src_rect.x = adjCrop.x; in commit()
161 mRotInfo.src_rect.y = adjCrop.y; in commit()
162 mRotInfo.src_rect.w = adjCrop.w; in commit()
163 mRotInfo.src_rect.h = adjCrop.h; in commit()
386 Dim adjCrop = getFormatAdjustedCrop(crop, mdpFormat, in getDownscaleFactor() local
389 uint32_t downscale = min((adjCrop.w / dstW), (adjCrop.h / dstH)); in getDownscaleFactor()
399 Dim dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
400 while(downscale > 2 and (adjCrop.w > dsAdjCrop.w or in getDownscaleFactor()
401 adjCrop.h > dsAdjCrop.h)) { in getDownscaleFactor()
403 dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
412 Dim adjCrop = crop; in getFormatAdjustedCrop() local
414 normalizeCrop(adjCrop.x, adjCrop.w); in getFormatAdjustedCrop()
415 normalizeCrop(adjCrop.y, adjCrop.h); in getFormatAdjustedCrop()
417 if (isInterlaced and (adjCrop.h % 4)) in getFormatAdjustedCrop()
418 adjCrop.h = aligndown(adjCrop.h, 4); in getFormatAdjustedCrop()
420 return adjCrop; in getFormatAdjustedCrop()