Lines Matching refs:crop
121 void MdssRot::setCrop(const utils::Dim& crop) {
122 mRotInfo.src_rect.x = crop.x;
123 mRotInfo.src_rect.y = crop.y;
124 mRotInfo.src_rect.w = crop.w;
125 mRotInfo.src_rect.h = crop.h;
385 Dim crop(0, 0, srcW, srcH);
386 Dim adjCrop = getFormatAdjustedCrop(crop, mdpFormat,
410 Dim MdssRot::getFormatAdjustedCrop(const Dim& crop,
412 Dim adjCrop = crop;
416 // For interlaced, crop.h should be 4-aligned
423 Dim MdssRot::getDownscaleAdjustedCrop(const Dim& crop,
425 uint32_t alignedSrcW = aligndown(crop.w, downscale * 2);
426 uint32_t alignedSrcH = aligndown(crop.h, downscale * 2);
427 return Dim(crop.x, crop.y, alignedSrcW, alignedSrcH);