HomeSort by relevance Sort by last modified time
    Searched refs:cropHeight (Results 1 - 16 of 16) sorted by null

  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PhotoProcessor.java 208 int cropHeight = original.getHeight();
211 if (forceCropToSquare && cropWidth != cropHeight) {
213 if (cropHeight > cropWidth) {
214 cropTop = (cropHeight - cropWidth) / 2;
215 cropHeight = cropWidth;
217 cropLeft = (cropWidth - cropHeight) / 2;
218 cropWidth = cropHeight;
222 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight));
226 final int newHeight = (int) (cropHeight * scaleFactor);
239 cropLeft + cropWidth, cropTop + cropHeight);
    [all...]
  /frameworks/av/media/libstagefright/colorconversion/
ColorConverter.cpp 109 size_t ColorConverter::BitmapParams::cropHeight() const {
177 && src.cropHeight() == dst.cropHeight())) {
187 for (size_t y = 0; y < src.cropHeight(); ++y) {
237 && src.cropHeight() == dst.cropHeight())) {
257 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight());
262 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight(), libyuv::FOURCC_ABGR);
267 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight(), libyuv::FOURCC_ARGB);
343 && src.cropHeight() == dst.cropHeight()))
    [all...]
  /packages/apps/Camera2/src/com/android/camera/util/
AspectRatio.java 177 int cropHeight = area.width() * mHeight / mWidth;
178 int cropTop = (area.height() - cropHeight) / 2;
179 int cropBottom = cropTop + cropHeight;
  /frameworks/av/media/libstagefright/include/media/stagefright/
ColorConverter.h 56 size_t cropHeight() const;
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
AndroidCamera2Settings.java 561 float cropHeight, cropWidth;
564 cropHeight = requestedCrop.height();
565 cropWidth = cropHeight * aspectRatioPreview;
569 cropHeight = cropWidth / aspectRatioPreview;
573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight);
  /cts/tests/tests/media/libmediandkjni/
codec-utils-jni.cpp 50 size_t cropHeight;
223 img->plane[ix].cropHeight =
257 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) {
285 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) {
323 tgt->plane[0].cropWidth, tgt->plane[0].cropHeight,
329 src->plane[0].cropWidth, src->plane[0].cropHeight,
335 for (size_t y = 0; y < tgt->plane[ix].cropHeight; ++y) {
339 + src->plane[ix].rowInc * (y % src->plane[ix].cropHeight));
361 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) {
396 for (size_t y = img->plane[0].cropHeight; y; --y)
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
CropImage.java 479 int cropHeight = cropWidth;
483 cropHeight = cropWidth * mAspectY / mAspectX;
485 cropWidth = cropHeight * mAspectX / mAspectY;
490 int y = (height - cropHeight) / 2;
492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
  /hardware/intel/common/libmix/videodecoder/
VideoDecoderBase.cpp     [all...]
  /hardware/qcom/display/msm8994/libhwcomposer/
hwc_fbupdate.cpp 528 const uint32_t cropHeight = sourceCrop.bottom - sourceCrop.top;
531 const uint32_t layerClock = getLayerClock(dstWidth, dstHeight, cropHeight);
hwc_mdpcomp.cpp     [all...]
  /frameworks/base/core/java/android/app/
WallpaperManager.java 752 float cropHeight = outHeight * (inWidth / (float) outWidth);
753 cropRect.top = (inHeight - cropHeight) * verticalAlignment;
754 cropRect.bottom = cropRect.top + cropHeight;
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapRegionDecoderTest.java 420 int cropHeight = Math.min(h, scaledDim);
421 Rect crop = new Rect(0 ,0, cropWidth, cropHeight);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
CameraTestUtils.java     [all...]
  /cts/tests/tests/media/src/android/media/cts/
EncodeDecodeTest.java     [all...]
  /cts/tests/camera/utils/src/android/hardware/camera2/cts/
CameraTestUtils.java     [all...]
  /frameworks/base/services/core/java/com/android/server/wm/
DisplayContent.java     [all...]

Completed in 1416 milliseconds