Home
last modified time | relevance | path

Searched refs:crop (Results 1 – 25 of 122) sorted by relevance

12345

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c1159 cropped_height = p_thumb_dim->crop.height; in mm_jpeg_update_thumbnail_crop()
1167 cropped_width = p_thumb_dim->crop.width; in mm_jpeg_update_thumbnail_crop()
1174 p_thumb_dim->crop.left = p_thumb_dim->crop.left + in mm_jpeg_update_thumbnail_crop()
1175 floor((p_thumb_dim->crop.width - cropped_width) / 2); in mm_jpeg_update_thumbnail_crop()
1176 if (p_thumb_dim->crop.left % 2) { in mm_jpeg_update_thumbnail_crop()
1177 p_thumb_dim->crop.left -= 1; in mm_jpeg_update_thumbnail_crop()
1179 p_thumb_dim->crop.top = p_thumb_dim->crop.top + in mm_jpeg_update_thumbnail_crop()
1180 floor((p_thumb_dim->crop.height - cropped_height) / 2); in mm_jpeg_update_thumbnail_crop()
1181 if (p_thumb_dim->crop.top % 2) { in mm_jpeg_update_thumbnail_crop()
1182 p_thumb_dim->crop.top -= 1; in mm_jpeg_update_thumbnail_crop()
[all …]
/hardware/google/av/codec2/include/
DC2Buffer.h1591 inline constexpr _C2PlanarSectionAspect(uint32_t width, uint32_t height, const C2Rect &crop) in _C2PlanarSectionAspect() argument
1593 mCrop(C2Rect(std::min(width - std::min(crop.left, width), crop.width), in _C2PlanarSectionAspect()
1594 std::min(height - std::min(crop.top, height), crop.height)).at( in _C2PlanarSectionAspect()
1595 std::min(crop.left, width), in _C2PlanarSectionAspect()
1596 std::min(crop.height, height))) { in _C2PlanarSectionAspect()
1602 inline constexpr C2Rect crop() const { return mCrop; } in crop() function
1607 inline constexpr _C2PlanarSectionAspect childSection(const C2Rect &crop) const { in childSection() argument
1611 C2Rect(c2_min(mCrop.right() - c2_clamp(mCrop.left, crop.left, mCrop.right()), in childSection()
1612 crop.width), in childSection()
1613 c2_min(mCrop.bottom() - c2_clamp(mCrop.top, crop.top, mCrop.bottom()), in childSection()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp554 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
557 int& crop_l = crop.left; in calculate_crop_rects()
558 int& crop_t = crop.top; in calculate_crop_rects()
559 int& crop_r = crop.right; in calculate_crop_rects()
560 int& crop_b = crop.bottom; in calculate_crop_rects()
561 int crop_w = crop.right - crop.left; in calculate_crop_rects()
562 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
780 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
786 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
893 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
[all …]
/hardware/qcom/display/msm8994/libhwcomposer/
Dhwc_utils.cpp970 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
977 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
985 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in trimList() local
990 (hwc_rect_t&)crop, in trimList()
992 layer->sourceCropf.left = (float)crop.left; in trimList()
993 layer->sourceCropf.right = (float)crop.right; in trimList()
994 layer->sourceCropf.top = (float)crop.top; in trimList()
995 layer->sourceCropf.bottom = (float)crop.bottom; in trimList()
1249 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1252 int& crop_l = crop.left; in calculate_crop_rects()
[all …]
Dhwc_mdpcomp.cpp410 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension() local
413 int crop_w = rotated90 ? crop.bottom - crop.top : crop.right - crop.left; in isValidDimension()
414 int crop_h = rotated90 ? crop.right - crop.left : crop.bottom - crop.top; in isValidDimension()
547 void MDPCompNonSplit::trimAgainstROI(hwc_context_t *ctx, hwc_rect &crop, in trimAgainstROI() argument
551 crop = dst; in trimAgainstROI()
639 void MDPCompSplit::trimAgainstROI(hwc_context_t *ctx, hwc_rect &crop, in trimAgainstROI() argument
645 crop.left = crop.left + (tmpDst.left - dst.left); in trimAgainstROI()
646 crop.top = crop.top + (tmpDst.top - dst.top); in trimAgainstROI()
647 crop.right = crop.left + (tmpDst.right - tmpDst.left); in trimAgainstROI()
648 crop.bottom = crop.top + (tmpDst.bottom - tmpDst.top); in trimAgainstROI()
[all …]
/hardware/qcom/display/msm8084/libhwcomposer/
Dhwc_utils.cpp805 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
812 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
820 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in trimList() local
823 (hwc_rect_t&)crop, in trimList()
825 layer->sourceCropf.left = (float)crop.left; in trimList()
826 layer->sourceCropf.right = (float)crop.right; in trimList()
827 layer->sourceCropf.top = (float)crop.top; in trimList()
828 layer->sourceCropf.bottom = (float)crop.bottom; in trimList()
1044 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1047 int& crop_l = crop.left; in calculate_crop_rects()
[all …]
/hardware/qcom/display/msm8994/liboverlay/
DoverlayMdssRot.cpp121 void MdssRot::setCrop(const utils::Dim& crop) { in setCrop() argument
122 mRotInfo.src_rect.x = crop.x; in setCrop()
123 mRotInfo.src_rect.y = crop.y; in setCrop()
124 mRotInfo.src_rect.w = crop.w; in setCrop()
125 mRotInfo.src_rect.h = crop.h; in setCrop()
385 Dim crop(0, 0, srcW, srcH); in getDownscaleFactor() local
386 Dim adjCrop = getFormatAdjustedCrop(crop, mdpFormat, in getDownscaleFactor()
410 Dim MdssRot::getFormatAdjustedCrop(const Dim& crop, in getFormatAdjustedCrop() argument
412 Dim adjCrop = crop; in getFormatAdjustedCrop()
423 Dim MdssRot::getDownscaleAdjustedCrop(const Dim& crop, in getDownscaleAdjustedCrop() argument
[all …]
DoverlayRotator.h72 virtual void setCrop(const utils::Dim& crop) = 0;
136 virtual void setCrop(const utils::Dim& crop);
208 virtual void setCrop(const utils::Dim& crop);
260 static utils::Dim getFormatAdjustedCrop(const utils::Dim& crop,
263 static utils::Dim getDownscaleAdjustedCrop(const utils::Dim& crop,
/hardware/qcom/display/msm8226/libhwcomposer/
Dhwc_utils.cpp792 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
799 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
807 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in trimList() local
810 (hwc_rect_t&)crop, in trimList()
812 layer->sourceCropf.left = (float)crop.left; in trimList()
813 layer->sourceCropf.right = (float)crop.right; in trimList()
814 layer->sourceCropf.top = (float)crop.top; in trimList()
815 layer->sourceCropf.bottom = (float)crop.bottom; in trimList()
1031 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1034 int& crop_l = crop.left; in calculate_crop_rects()
[all …]
/hardware/qcom/display/msm8996/sdm/libs/core/
Dresource_default.cpp565 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument
567 float &crop_left = crop->left; in CalculateCropRects()
568 float &crop_top = crop->top; in CalculateCropRects()
569 float &crop_right = crop->right; in CalculateCropRects()
570 float &crop_bottom = crop->bottom; in CalculateCropRects()
571 float crop_width = crop->right - crop->left; in CalculateCropRects()
572 float crop_height = crop->bottom - crop->top; in CalculateCropRects()
620 Normalize(1, 1, crop); in CalculateCropRects()
622 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects()
657 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument
[all …]
Dresource_default.h58 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst,
116 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst);
118 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst);
122 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
/hardware/qcom/display/msm8909/sdm/libs/core/
Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument
604 float &crop_left = crop->left; in CalculateCropRects()
605 float &crop_top = crop->top; in CalculateCropRects()
606 float &crop_right = crop->right; in CalculateCropRects()
607 float &crop_bottom = crop->bottom; in CalculateCropRects()
608 float crop_width = crop->right - crop->left; in CalculateCropRects()
609 float crop_height = crop->bottom - crop->top; in CalculateCropRects()
657 Normalize(1, 1, crop); in CalculateCropRects()
659 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects()
694 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument
[all …]
Dresource_default.h60 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90,
123 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst);
125 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst);
129 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/
Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument
604 float &crop_left = crop->left; in CalculateCropRects()
605 float &crop_top = crop->top; in CalculateCropRects()
606 float &crop_right = crop->right; in CalculateCropRects()
607 float &crop_bottom = crop->bottom; in CalculateCropRects()
608 float crop_width = crop->right - crop->left; in CalculateCropRects()
609 float crop_height = crop->bottom - crop->top; in CalculateCropRects()
657 Normalize(1, 1, crop); in CalculateCropRects()
659 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects()
694 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument
[all …]
Dresource_default.h60 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90,
123 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst);
125 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst);
129 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
/hardware/qcom/sdm845/display/sdm/libs/core/
Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument
604 float &crop_left = crop->left; in CalculateCropRects()
605 float &crop_top = crop->top; in CalculateCropRects()
606 float &crop_right = crop->right; in CalculateCropRects()
607 float &crop_bottom = crop->bottom; in CalculateCropRects()
608 float crop_width = crop->right - crop->left; in CalculateCropRects()
609 float crop_height = crop->bottom - crop->top; in CalculateCropRects()
657 Normalize(1, 1, crop); in CalculateCropRects()
659 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects()
694 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument
[all …]
Dresource_default.h60 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90,
123 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst);
125 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst);
129 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
/hardware/qcom/display/msm8998/sdm/libs/core/
Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument
604 float &crop_left = crop->left; in CalculateCropRects()
605 float &crop_top = crop->top; in CalculateCropRects()
606 float &crop_right = crop->right; in CalculateCropRects()
607 float &crop_bottom = crop->bottom; in CalculateCropRects()
608 float crop_width = crop->right - crop->left; in CalculateCropRects()
609 float crop_height = crop->bottom - crop->top; in CalculateCropRects()
657 Normalize(1, 1, crop); in CalculateCropRects()
659 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects()
694 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument
[all …]
Dresource_default.h60 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90,
122 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst);
124 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst);
128 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3PostProc.cpp1234 cam_rect_t crop; in encodeFWKData() local
1235 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData()
1243 memcpy(&crop, &(jpeg_crop->crop), sizeof(cam_rect_t)); in encodeFWKData()
1371 jpg_job.encode_job.main_dim.crop.width = crop.height; in encodeFWKData()
1372 jpg_job.encode_job.main_dim.crop.height = crop.width; in encodeFWKData()
1373 jpg_job.encode_job.main_dim.crop.left = crop.top; in encodeFWKData()
1374 jpg_job.encode_job.main_dim.crop.top = crop.left; in encodeFWKData()
1378 jpg_job.encode_job.main_dim.crop = crop; in encodeFWKData()
1422 jpg_job.encode_job.thumb_dim.crop.width = crop.height; in encodeFWKData()
1423 jpg_job.encode_job.thumb_dim.crop.height = crop.width; in encodeFWKData()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
DoverlayMdssRot.cpp84 void MdssRot::setCrop(const utils::Dim& crop) { in setCrop() argument
86 mRotInfo.src_rect.x = crop.x; in setCrop()
87 mRotInfo.src_rect.y = crop.y; in setCrop()
88 mRotInfo.src_rect.w = crop.w; in setCrop()
89 mRotInfo.src_rect.h = crop.h; in setCrop()
93 mRotInfo.dst_rect.w = crop.w; in setCrop()
94 mRotInfo.dst_rect.h = crop.h; in setCrop()
/hardware/qcom/sdm845/display/sdm/libs/utils/
Drect.cpp269 DisplayError GetCropAndDestination(const LayerRect &crop, const LayerRect &dst, in GetCropAndDestination() argument
273 if (!IsValid(crop)) { in GetCropAndDestination()
274 Log(kTagResources, "Invalid crop rect", crop); in GetCropAndDestination()
283 *crop_width = crop.right - crop.left; in GetCropAndDestination()
284 *crop_height = crop.bottom - crop.top; in GetCropAndDestination()
295 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, in GetScaleFactor() argument
299 DisplayError error = GetCropAndDestination(crop, dst, rotated90, &crop_width, &crop_height, in GetScaleFactor()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_layers.cpp412 HWC2::Error HWCLayer::SetLayerSourceCrop(hwc_frect_t crop) { in SetLayerSourceCrop() argument
414 SetRect(crop, &src_rect); in SetLayerSourceCrop()
415 non_integral_source_crop_ = ((crop.left != roundf(crop.left)) || in SetLayerSourceCrop()
416 (crop.top != roundf(crop.top)) || in SetLayerSourceCrop()
417 (crop.right != roundf(crop.right)) || in SetLayerSourceCrop()
418 (crop.bottom != roundf(crop.bottom))); in SetLayerSourceCrop()
420 DLOGV_IF(kTagClient, "Crop: LRTB %f %f %f %f", crop.left, crop.top, crop.right, crop.bottom); in SetLayerSourceCrop()
/hardware/qcom/sdm845/display/sdm/include/utils/
Drect.h64 DisplayError GetCropAndDestination(const LayerRect &crop, const LayerRect &dst,
67 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, bool rotate90,
/hardware/qcom/display/msm8226/liboverlay/
DoverlayMdssRot.cpp99 void MdssRot::setCrop(const utils::Dim& crop) { in setCrop() argument
100 mRotInfo.src_rect.x = crop.x; in setCrop()
101 mRotInfo.src_rect.y = crop.y; in setCrop()
102 mRotInfo.src_rect.w = crop.w; in setCrop()
103 mRotInfo.src_rect.h = crop.h; in setCrop()

12345