Home
last modified time | relevance | path

Searched refs:crop_width (Results 1 – 25 of 32) sorted by relevance

12

/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL3/
H A DQCamera3CropRegionMapper.cpp131 int32_t& crop_width, int32_t& crop_height, float zoom_ratio) in toActiveArray() argument
146 float width = crop_width * mActiveArrayW / mSensorW; in toActiveArray()
159 crop_width = std::round(width); in toActiveArray()
162 boundToSize(crop_left, crop_top, crop_width, crop_height, in toActiveArray()
182 int32_t& crop_width, int32_t& crop_height, float zoom_ratio) in toSensor() argument
226 float width = crop_width / zoom_ratio; in applyZoomRatioHelper()
239 crop_width = std::round(width); in applyZoomRatioHelper()
243 crop_left, crop_top, crop_width, crop_height); in applyZoomRatioHelper()
244 boundToSize(crop_left, crop_top, crop_width, crop_height, in applyZoomRatioHelper()
248 crop_left, crop_top, crop_width, crop_height); in applyZoomRatioHelper()
[all …]
H A DQCamera3CropRegionMapper.h48 int32_t& crop_width, int32_t& crop_height, float zoom_ratio);
50 int32_t& crop_width, int32_t& crop_height, float zoom_ratio);
58 int32_t& crop_width, int32_t& crop_height, float zoom_ratio);
70 int32_t& crop_width, int32_t& crop_height, float zoom_ratio,
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
H A DQrYuvLuminanceSource.java44 public LuminanceSource crop(int left, int top, int crop_width, int crop_height) { in crop() argument
45 final byte[] newImage = new byte[crop_width * crop_height]; in crop()
48 if (left + crop_width > mWidth || top + crop_height > mHeight) { in crop()
53 System.arraycopy(mYuvData, inputOffset, newImage, y * crop_width, crop_width); in crop()
56 return new QrYuvLuminanceSource(newImage, crop_width, crop_height); in crop()
/aosp12/hardware/google/gchips/include/
H A Dcsc.h126 unsigned int crop_width; member
377 unsigned int *crop_width,
422 unsigned int crop_width,
463 unsigned int *crop_width,
508 unsigned int crop_width,
/aosp12/hardware/qcom/sdm845/display/sdm/libs/utils/
H A Drect.cpp270 const bool rotated90, float *crop_width, in GetCropAndDestination() argument
283 *crop_width = crop.right - crop.left; in GetCropAndDestination()
286 std::swap(*crop_width, *crop_height); in GetCropAndDestination()
297 float crop_width = 1.0f, crop_height = 1.0f, dst_width = 1.0f, dst_height = 1.0f; in GetScaleFactor() local
299 DisplayError error = GetCropAndDestination(crop, dst, rotated90, &crop_width, &crop_height, in GetScaleFactor()
305 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/google/graphics/common/libscaler/include/
H A Dexynos_scaler.h276 unsigned int crop_width,
330 unsigned int crop_width,
484 unsigned int crop_width; member
/aosp12/hardware/google/graphics/common/libgscaler/
H A Dlibgscaler.cpp174 unsigned int crop_width, in exynos_gsc_set_src_format() argument
191 gsc->src_info.crop_width = crop_width; in exynos_gsc_set_src_format()
209 unsigned int crop_width, in exynos_gsc_set_dst_format() argument
227 gsc->dst_info.crop_width = crop_width; in exynos_gsc_set_dst_format()
/aosp12/hardware/qcom/sm7250/display/sdm/libs/utils/
H A Drect.cpp312 const bool rotated90, float *crop_width, in GetCropAndDestination() argument
325 *crop_width = crop.right - crop.left; in GetCropAndDestination()
328 std::swap(*crop_width, *crop_height); in GetCropAndDestination()
339 float crop_width = 1.0f, crop_height = 1.0f, dst_width = 1.0f, dst_height = 1.0f; in GetScaleFactor() local
341 DisplayError error = GetCropAndDestination(crop, dst, rotated90, &crop_width, &crop_height, in GetScaleFactor()
347 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/sm8150/display/sdm/libs/utils/
H A Drect.cpp311 const bool rotated90, float *crop_width, in GetCropAndDestination() argument
324 *crop_width = crop.right - crop.left; in GetCropAndDestination()
327 std::swap(*crop_width, *crop_height); in GetCropAndDestination()
338 float crop_width = 1.0f, crop_height = 1.0f, dst_width = 1.0f, dst_height = 1.0f; in GetScaleFactor() local
340 DisplayError error = GetCropAndDestination(crop, dst, rotated90, &crop_width, &crop_height, in GetScaleFactor()
346 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/google/graphics/common/libgscaler/include/
H A Dexynos_gscaler.h181 unsigned int crop_width,
231 unsigned int crop_width,
/aosp12/hardware/google/graphics/common/libscaler/
H A Dlibscaler.cpp209 pxinfo->src.crop_width, pxinfo->src.crop_height)) in exynos_sc_copy_pixels()
213 pxinfo->dst.crop_width, pxinfo->dst.crop_height)) in exynos_sc_copy_pixels()
321 unsigned int crop_width, in exynos_sc_set_src_format() argument
339 return sc->SetSrcCrop(crop_left, crop_top, crop_width, crop_height) ? 0 : -1; in exynos_sc_set_src_format()
348 unsigned int crop_width, in exynos_sc_set_dst_format() argument
366 if (!sc->SetDstCrop(crop_left, crop_top, crop_width, crop_height)) in exynos_sc_set_dst_format()
/aosp12/hardware/qcom/display/msm8909/sdm/libs/core/
H A Dresource_default.cpp608 float crop_width = crop->right - crop->left; in CalculateCropRects() local
653 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
655 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
705 float crop_width = crop.right - crop.left; in ValidateDimensions() local
710 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
712 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
812 float crop_width = crop.right - crop.left; in GetScaleFactor() local
817 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/display/msm8909w_3100/sdm/libs/core/
H A Dresource_default.cpp608 float crop_width = crop->right - crop->left; in CalculateCropRects() local
653 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
655 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
705 float crop_width = crop.right - crop.left; in ValidateDimensions() local
710 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
712 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
812 float crop_width = crop.right - crop.left; in GetScaleFactor() local
817 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/display/msm8996/sdm/libs/core/
H A Dresource_default.cpp571 float crop_width = crop->right - crop->left; in CalculateCropRects() local
616 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
618 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
668 float crop_width = crop.right - crop.left; in ValidateDimensions() local
673 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
675 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
774 float crop_width = crop.right - crop.left; in GetScaleFactor() local
779 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/display/msm8998/sdm/libs/core/
H A Dresource_default.cpp608 float crop_width = crop->right - crop->left; in CalculateCropRects() local
653 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
655 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
705 float crop_width = crop.right - crop.left; in ValidateDimensions() local
710 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
712 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
812 float crop_width = crop.right - crop.left; in GetScaleFactor() local
817 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/sdm845/display/sdm/libs/core/
H A Dresource_default.cpp609 float crop_width = crop->right - crop->left; in CalculateCropRects() local
654 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
656 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
706 float crop_width = crop.right - crop.left; in ValidateDimensions() local
711 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
713 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
813 float crop_width = crop.right - crop.left; in GetScaleFactor() local
818 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/sm7250/display/sdm/libs/core/
H A Dresource_default.cpp597 float crop_width = crop->right - crop->left; in CalculateCropRects() local
642 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
644 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
694 float crop_width = crop.right - crop.left; in ValidateDimensions() local
699 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
701 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
801 float crop_width = crop.right - crop.left; in GetScaleFactor() local
806 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/sm8150/display/sdm/libs/core/
H A Dresource_default.cpp600 float crop_width = crop->right - crop->left; in CalculateCropRects() local
645 crop_left += crop_width * left_cut_ratio; in CalculateCropRects()
647 crop_right -= crop_width * right_cut_ratio; in CalculateCropRects()
697 float crop_width = crop.right - crop.left; in ValidateDimensions() local
702 if ((UINT32(crop_width - dst_width) == 1) || (UINT32(crop_height - dst_height) == 1)) { in ValidateDimensions()
704 "crop_h = %.0f, dst_h = %.0f", crop_width, dst_width, crop_height, dst_height); in ValidateDimensions()
804 float crop_width = crop.right - crop.left; in GetScaleFactor() local
809 *scale_x = crop_width / dst_width; in GetScaleFactor()
/aosp12/hardware/qcom/sdm845/display/sdm/include/utils/
H A Drect.h65 bool rotate90, float *crop_width, float *crop_height,
/aosp12/hardware/qcom/sm7250/display/sdm/include/utils/
H A Drect.h67 bool rotate90, float *crop_width, float *crop_height,
/aosp12/hardware/qcom/sm8150/display/sdm/include/utils/
H A Drect.h67 bool rotate90, float *crop_width, float *crop_height,
/aosp12/hardware/google/camera/devices/EmulatedCamera/hwl/utils/
H A DExifUtils.h82 virtual bool SetDigitalZoomRatio(uint32_t crop_width, uint32_t crop_height,
H A DExifUtils.cpp80 virtual bool SetDigitalZoomRatio(uint32_t crop_width, uint32_t crop_height,
366 bool ExifUtilsImpl::SetDigitalZoomRatio(uint32_t crop_width, in SetDigitalZoomRatio() argument
370 float zoom_ratio_x = (crop_width == 0) ? 1.0 : 1.0 * sensor_width / crop_width; in SetDigitalZoomRatio()
/aosp12/frameworks/av/services/camera/libcameraservice/utils/
H A DExifUtils.h93 virtual bool setDigitalZoomRatio(uint32_t crop_width, uint32_t crop_height,
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dgralloc_buffer_priv.h35 int crop_width; member

12