Home
last modified time | relevance | path

Searched refs:cropTop (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java102 int cropLeft, int cropTop, int cropRight, int cropBottom, in compressJpegFromYUV420pNative() argument
145 int cropLeft, int cropTop, int cropRight, int cropBottom, int rot90) { in compressJpegFromYUV420p() argument
157 cropLeft, cropTop, cropRight, cropBottom, rot90)); in compressJpegFromYUV420p()
160 quality, cropLeft, cropTop, cropRight, cropBottom, rot90); in compressJpegFromYUV420p()
251 int cropTop = crop.top; in compressJpegFromYUV420Image()
252 cropTop = Math.max(cropTop, 0); in compressJpegFromYUV420Image()
253 cropTop = Math.min(cropTop, img.getHeight() - 1); in compressJpegFromYUV420Image()
268 outBuf, quality, cropLeft, cropTop, cropRight, cropBot, in compressJpegFromYUV420Image()
DAspectRatio.java178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop() local
179 int cropBottom = cropTop + cropHeight; in getLargestCenterCrop()
182 return new Rect(cropLeft, cropTop, cropRight, cropBottom); in getLargestCenterCrop()
188 int cropTop = 0; in getLargestCenterCrop() local
190 return new Rect(cropLeft, cropTop, cropRight, cropBottom); in getLargestCenterCrop()
/packages/apps/Camera2/jni/
Djpegutil.cpp95 int cropLeft, int cropTop, int cropRight, int cropBottom, int rot90) { in ForCropFollowedByRotation() argument
103 int cropYLow = min(cropTop, cropBottom); in ForCropFollowedByRotation()
105 int cropYHigh = max(cropTop, cropBottom); in ForCropFollowedByRotation()
319 int cropLeft, int cropTop, int cropRight, int cropBottom, in Compress() argument
326 finalHeight = cropBottom - cropTop; in Compress()
331 finalWidth = cropBottom - cropTop; in Compress()
334 finalWidth = cropBottom - cropTop; in Compress()
352 cropLeft, cropTop, cropRight, cropBottom, rot90); in Compress()
355 cropLeft / 2, cropTop / 2, cropRight / 2, cropBottom / 2, rot90); in Compress()
Djpegutilnative.cpp84 jint cropLeft, jint cropTop, jint cropRight, jint cropBottom, in Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative() argument
99 cropLeft, cropTop, cropRight, cropBottom, // in Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative()
Djpegutil.h51 static Transform ForCropFollowedByRotation(int cropLeft, int cropTop,
167 int cropLeft, int cropTop, int cropRight, int cropBottom,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java210 int cropTop = 0; in getNormalizedBitmap() local
214 cropTop = (cropHeight - cropWidth) / 2; in getNormalizedBitmap()
224 if (scaleFactor < 1.0f || cropLeft != 0 || cropTop != 0 || originalHasAlpha) { in getNormalizedBitmap()
238 final Rect src = new Rect(cropLeft, cropTop, in getNormalizedBitmap()
239 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java125 float cropTop = -edges.top / scale; in getCrop() local
127 float cropBottom = cropTop + getHeight() / scale; in getCrop()
129 return new RectF(cropLeft, cropTop, cropRight, cropBottom); in getCrop()