Lines Matching refs:downscale
128 void MdssRot::setDownscale(int downscale) { in setDownscale() argument
129 mDownscale = downscale; in setDownscale()
389 uint32_t downscale = min((adjCrop.w / dstW), (adjCrop.h / dstH)); in getDownscaleFactor() local
391 downscale = (uint32_t) powf(2.0f, floorf(log2f((float)downscale))); in getDownscaleFactor()
393 if(downscale < 2 or downscale > 32) return 0; in getDownscaleFactor()
399 Dim dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
400 while(downscale > 2 and (adjCrop.w > dsAdjCrop.w or in getDownscaleFactor()
402 downscale /= 2; in getDownscaleFactor()
403 dsAdjCrop = getDownscaleAdjustedCrop(adjCrop, downscale); in getDownscaleFactor()
407 return downscale; in getDownscaleFactor()
424 const uint32_t& downscale) { in getDownscaleAdjustedCrop() argument
425 uint32_t alignedSrcW = aligndown(crop.w, downscale * 2); in getDownscaleAdjustedCrop()
426 uint32_t alignedSrcH = aligndown(crop.h, downscale * 2); in getDownscaleAdjustedCrop()