Lines Matching refs:crop
115 static bool isEglImageCroppable(const Rect& crop) {
116 return hasEglAndroidImageCrop() && (crop.left == 0 && crop.top == 0);
794 // crop rectangle we may need to shrink it by 2 texels in each
797 // are subsampled we may need to shrink the crop region by a whole
831 float crop[16] = {
838 mtxMul(mtxBeforeFlipV, crop, xform);
886 // The crop is too wide
891 // The crop is too tall
898 ST_LOGV("getCurrentCrop final crop [%d,%d,%d,%d]",
1114 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop) {
1118 EGL_IMAGE_CROP_LEFT_ANDROID, crop.left,
1119 EGL_IMAGE_CROP_TOP_ANDROID, crop.top,
1120 EGL_IMAGE_CROP_RIGHT_ANDROID, crop.right,
1121 EGL_IMAGE_CROP_BOTTOM_ANDROID, crop.bottom,
1124 if (!crop.isValid()) {
1125 // No crop rect to set, so terminate the attrib array before the crop.
1127 } else if (!isEglImageCroppable(crop)) {
1128 // The crop rect is not at the origin, so we can't set the crop on the