Lines Matching defs:sourceCrop
3214 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3254 Rect sourceCrop;
3265 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3271 sourceCrop(sourceCrop), reqWidth(reqWidth), reqHeight(reqHeight),
3285 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ,
3301 sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ,
3314 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3327 // if a default or invalid sourceCrop is passed in, set reasonable values
3328 if (sourceCrop.width() == 0 || sourceCrop.height() == 0 ||
3329 !sourceCrop.isValid()) {
3330 sourceCrop.setLeftTop(Point(0, 0));
3331 sourceCrop.setRightBottom(Point(hw_w, hw_h));
3334 // ensure that sourceCrop is inside screen
3335 if (sourceCrop.left < 0) {
3336 ALOGE("Invalid crop rect: l = %d (< 0)", sourceCrop.left);
3338 if (sourceCrop.right > hw_w) {
3339 ALOGE("Invalid crop rect: r = %d (> %d)", sourceCrop.right, hw_w);
3341 if (sourceCrop.top < 0) {
3342 ALOGE("Invalid crop rect: t = %d (< 0)", sourceCrop.top);
3344 if (sourceCrop.bottom > hw_h) {
3345 ALOGE("Invalid crop rect: b = %d (> %d)", sourceCrop.bottom, hw_h);
3353 reqWidth, reqHeight, sourceCrop, hw_h, yswap, rotation);
3382 Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
3462 hw, sourceCrop, reqWidth, reqHeight, minLayerZ, maxLayerZ, true,