/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1159 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/qcom/display/msm8960/libhwcomposer/ |
D | hwc_utils.cpp | 554 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/ |
D | hwc_utils.cpp | 970 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 …]
|
D | hwc_mdpcomp.cpp | 410 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/ |
D | hwc_utils.cpp | 805 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/msm8226/libhwcomposer/ |
D | hwc_utils.cpp | 792 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/ |
D | resource_default.cpp | 565 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 …]
|
D | resource_default.h | 58 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/sm8150/display/sdm/libs/core/ |
D | resource_default.cpp | 594 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument 596 float &crop_left = crop->left; in CalculateCropRects() 597 float &crop_top = crop->top; in CalculateCropRects() 598 float &crop_right = crop->right; in CalculateCropRects() 599 float &crop_bottom = crop->bottom; in CalculateCropRects() 600 float crop_width = crop->right - crop->left; in CalculateCropRects() 601 float crop_height = crop->bottom - crop->top; in CalculateCropRects() 649 Normalize(1, 1, crop); in CalculateCropRects() 651 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects() 686 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument [all …]
|
D | resource_default.h | 60 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90, 128 bool CalculateCropRects(const LayerRect &scissor, LayerRect *crop, LayerRect *dst); 130 DisplayError ValidateDimensions(const LayerRect &crop, const LayerRect &dst); 134 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x,
|
/hardware/qcom/display/msm8909/sdm/libs/core/ |
D | resource_default.cpp | 602 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 …]
|
D | resource_default.h | 60 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/ |
D | resource_default.cpp | 602 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 …]
|
D | resource_default.h | 60 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/ |
D | resource_default.cpp | 603 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, in CalculateCropRects() argument 605 float &crop_left = crop->left; in CalculateCropRects() 606 float &crop_top = crop->top; in CalculateCropRects() 607 float &crop_right = crop->right; in CalculateCropRects() 608 float &crop_bottom = crop->bottom; in CalculateCropRects() 609 float crop_width = crop->right - crop->left; in CalculateCropRects() 610 float crop_height = crop->bottom - crop->top; in CalculateCropRects() 658 Normalize(1, 1, crop); in CalculateCropRects() 660 if (IsValid(*crop) && IsValid(*dst)) in CalculateCropRects() 695 DisplayError ResourceDefault::ValidateDimensions(const LayerRect &crop, const LayerRect &dst) { in ValidateDimensions() argument [all …]
|
D | resource_default.h | 60 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/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 1255 cam_rect_t crop; in encodeFWKData() local 1256 memset(&crop, 0, sizeof(cam_rect_t)); in encodeFWKData() 1264 memcpy(&crop, &(jpeg_crop->crop), sizeof(cam_rect_t)); in encodeFWKData() 1392 jpg_job.encode_job.main_dim.crop.width = crop.height; in encodeFWKData() 1393 jpg_job.encode_job.main_dim.crop.height = crop.width; in encodeFWKData() 1394 jpg_job.encode_job.main_dim.crop.left = crop.top; in encodeFWKData() 1395 jpg_job.encode_job.main_dim.crop.top = crop.left; in encodeFWKData() 1399 jpg_job.encode_job.main_dim.crop = crop; in encodeFWKData() 1443 jpg_job.encode_job.thumb_dim.crop.width = crop.height; in encodeFWKData() 1444 jpg_job.encode_job.thumb_dim.crop.height = crop.width; in encodeFWKData() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlayMdssRot.cpp | 84 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/ |
D | rect.cpp | 269 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/sm8150/display/sdm/libs/utils/ |
D | rect.cpp | 310 DisplayError GetCropAndDestination(const LayerRect &crop, const LayerRect &dst, in GetCropAndDestination() argument 314 if (!IsValid(crop)) { in GetCropAndDestination() 315 Log(kTagResources, "Invalid crop rect", crop); in GetCropAndDestination() 324 *crop_width = crop.right - crop.left; in GetCropAndDestination() 325 *crop_height = crop.bottom - crop.top; in GetCropAndDestination() 336 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, in GetScaleFactor() argument 340 DisplayError error = GetCropAndDestination(crop, dst, rotated90, &crop_width, &crop_height, in GetScaleFactor()
|
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_layers.cpp | 412 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/display/msm8998/sdm/libs/core/ |
D | resource_default.h | 60 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/display/msm8994/liboverlay/ |
D | overlayRotator.h | 72 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/sdm845/display/sdm/include/utils/ |
D | rect.h | 64 DisplayError GetCropAndDestination(const LayerRect &crop, const LayerRect &dst, 67 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, bool rotate90,
|
/hardware/qcom/sm8150/display/sdm/include/utils/ |
D | rect.h | 66 DisplayError GetCropAndDestination(const LayerRect &crop, const LayerRect &dst, 69 DisplayError GetScaleFactor(const LayerRect &crop, const LayerRect &dst, bool rotate90,
|