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

  /frameworks/native/services/surfaceflinger/RenderEngine/
Image.cpp 39 static std::vector<EGLint> buildAttributeList(bool isProtected, int32_t cropWidth,
52 if (cropWidth > 0 && cropHeight > 0) {
58 attrs.push_back(cropWidth);
68 bool Image::setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected, int32_t cropWidth,
78 std::vector<EGLint> attrs = buildAttributeList(isProtected, cropWidth, cropHeight);
Image.h 33 int32_t cropWidth, int32_t cropHeight) = 0;
48 bool setNativeWindowBuffer(ANativeWindowBuffer* buffer, bool isProtected, int32_t cropWidth,
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PhotoProcessor.java 207 int cropWidth = original.getWidth();
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));
225 final int newWidth = (int) (cropWidth * scaleFactor);
239 cropLeft + cropWidth, cropTop + cropHeight)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/util/
AspectRatio.java 185 int cropWidth = area.height() * mWidth / mHeight;
186 int cropLeft = (area.width() - cropWidth) / 2;
187 int cropRight = cropLeft + cropWidth;
  /frameworks/av/media/libstagefright/colorconversion/
ColorConverter.cpp 137 size_t ColorConverter::BitmapParams::cropWidth() const {
165 && src.cropWidth() == dst.cropWidth()
233 for (size_t x = 0; x < src.cropWidth(); x += 2) {
264 if (x + 1 < src.cropWidth()) {
296 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight());
301 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight(), libyuv::FOURCC_ABGR);
306 (uint8 *)dst_ptr, dst.mStride, src.cropWidth(), src.cropHeight(), libyuv::FOURCC_ARGB);
432 for (size_t x = 0; x < src.cropWidth(); x += 2) {
469 bool uncropped = x + 1 < src.cropWidth();
    [all...]
  /frameworks/av/media/libstagefright/include/media/stagefright/
ColorConverter.h 57 size_t cropWidth() const;
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
AndroidCamera2Settings.java 561 float cropHeight, cropWidth;
565 cropWidth = cropHeight * aspectRatioPreview;
568 cropWidth = requestedCrop.width();
569 cropHeight = cropWidth / aspectRatioPreview;
573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight);
  /cts/tests/tests/media/libmediandkjni/
codec-utils-jni.cpp 56 size_t cropWidth;
232 img->plane[ix].cropWidth =
267 for (size_t x = img->plane[ix].cropWidth; x > 0; --x) {
295 for (size_t x = img->plane[ix].cropWidth; x > 0; --x) {
330 tgt->plane[0].cropWidth, tgt->plane[0].cropHeight,
336 src->plane[0].cropWidth, src->plane[0].cropHeight,
347 for (size_t x = 0; x < tgt->plane[ix].cropWidth; ++x) {
348 *col = srcRow[src->plane[ix].colInc * (x % src->plane[ix].cropWidth)];
371 for (size_t x = img->plane[ix].cropWidth; x > 0; --x) {
408 for (size_t x = img->plane[0].cropWidth; x; --x)
    [all...]
  /frameworks/native/services/surfaceflinger/tests/unittests/mock/RenderEngine/
MockRenderEngine.h 102 bool(ANativeWindowBuffer* buffer, bool isProtected, int32_t cropWidth,
  /hardware/intel/common/libmix/videodecoder/
VideoDecoderBase.cpp     [all...]
  /frameworks/native/services/surfaceflinger/
BufferLayerConsumer.cpp 619 const int32_t cropWidth = imageCrop.width();
621 if (mCreated && mCropWidth == cropWidth && mCropHeight == cropHeight) {
627 cropWidth, cropHeight);
629 mCropWidth = cropWidth;
  /packages/apps/Gallery/src/com/android/camera/
CropImage.java 478 int cropWidth = Math.min(width, height) * 4 / 5;
479 int cropHeight = cropWidth;
483 cropHeight = cropWidth * mAspectY / mAspectX;
485 cropWidth = cropHeight * mAspectX / mAspectY;
489 int x = (width - cropWidth) / 2;
492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
  /hardware/qcom/display/msm8994/libhwcomposer/
hwc_fbupdate.cpp 527 const uint32_t cropWidth = sourceCrop.right - sourceCrop.left;
534 if((cropWidth > qdutils::MDPVersion::getInstance().getMaxPipeWidth()) or
536 (cropWidth > lSplit or layerClock > mixerClock))) {
hwc_mdpcomp.cpp     [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/views/
PhotoView.java 630 final int cropWidth = mCropRect.right - mCropRect.left;
631 final float scaleWidth = CROPPED_SIZE / cropWidth;
632 final float scaleHeight = CROPPED_SIZE / cropWidth;
    [all...]
  /frameworks/base/core/java/android/app/
WallpaperManager.java 748 float cropWidth = outWidth * (inHeight / (float) outHeight);
749 cropRect.left = (inWidth - cropWidth) * horizontalAlignment;
750 cropRect.right = cropRect.left + cropWidth;
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapRegionDecoderTest.java 419 int cropWidth = Math.min(w, scaledDim);
421 Rect crop = new Rect(0 ,0, cropWidth, cropHeight);
    [all...]
  /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...]
  /hardware/qcom/display/msm8084/libhwcomposer/
hwc_mdpcomp.cpp     [all...]
  /hardware/qcom/display/msm8226/libhwcomposer/
hwc_mdpcomp.cpp     [all...]

Completed in 1927 milliseconds