Searched refs:crop (Results 1 - 25 of 112) sorted by relevance

12345

/hardware/google/av/codec2/include/
H A DC2Buffer.h1584 * Aspect for objects that have a planar section (crop rectangle).
1592 inline constexpr _C2PlanarSectionAspect(uint32_t width, uint32_t height, const C2Rect &crop)
1594 mCrop(C2Rect(std::min(width - std::min(crop.left, width), crop.width),
1595 std::min(height - std::min(crop.top, height), crop.height)).at(
1596 std::min(crop.left, width),
1597 std::min(crop.height, height))) {
1601 // crop can be an empty rect, does not have to line up with subsampling
1602 // NOTE: we do not support floating-point crop
[all...]
/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_utils.cpp519 // For sidesync, the dest fb will be in portrait orientation, and the crop
616 // be in portrait orientation, so update the crop to not show the
805 hwc_rect_t& crop, hwc_rect_t& dst) {
812 qhwc::calculate_crop_rects(crop, dst, scissor, transform);
820 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
823 (hwc_rect_t&)crop,
825 layer->sourceCropf.left = (float)crop.left;
826 layer->sourceCropf.right = (float)crop.right;
827 layer->sourceCropf.top = (float)crop.top;
828 layer->sourceCropf.bottom = (float)crop
804 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
1044 calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, const hwc_rect_t& scissor, int orient) argument
1501 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument
1537 configMdp(Overlay *ov, const PipeArgs& parg, const eTransform& orient, const hwc_rect_t& crop, const hwc_rect_t& pos, const MetaData_t *metadata, const eDest& dest) argument
1600 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop) argument
1642 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1749 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1894 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);; local
2154 setBwc(const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform, ovutils::eMdpFlags& mdpFlags) argument
[all...]
H A Dhwc_ad.h44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
/hardware/qcom/display/msm8960/libhwcomposer/
H A Dhwc_utils.cpp554 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument
557 int& crop_l = crop.left;
558 int& crop_t = crop.top;
559 int& crop_r = crop.right;
560 int& crop_b = crop.bottom;
561 int crop_w = crop.right - crop.left;
562 int crop_h = crop.bottom - crop.top;
780 hwc_rect_t& crop, hwc_rect_
779 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
892 configMdp(Overlay *ov, const PipeArgs& parg, const eTransform& orient, const hwc_rect_t& crop, const hwc_rect_t& pos, const MetaData_t *metadata, const eDest& dest) argument
918 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop) argument
945 hwc_rect_t crop = layer->sourceCrop; local
1026 hwc_rect_t crop = layer->sourceCrop; local
[all...]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
H A Dmm_jpeg.c1147 * Updates thumbnail crop aspect ratio based on
1159 cropped_height = p_thumb_dim->crop.height;
1167 cropped_width = p_thumb_dim->crop.width;
1174 p_thumb_dim->crop.left = p_thumb_dim->crop.left +
1175 floor((p_thumb_dim->crop.width - cropped_width) / 2);
1176 if (p_thumb_dim->crop.left % 2) {
1177 p_thumb_dim->crop.left -= 1;
1179 p_thumb_dim->crop.top = p_thumb_dim->crop
[all...]
/hardware/qcom/display/msm8994/liboverlay/
H A DoverlayMdssRot.cpp121 void MdssRot::setCrop(const utils::Dim& crop) { argument
122 mRotInfo.src_rect.x = crop.x;
123 mRotInfo.src_rect.y = crop.y;
124 mRotInfo.src_rect.w = crop.w;
125 mRotInfo.src_rect.h = crop.h;
385 Dim crop(0, 0, srcW, srcH);
386 Dim adjCrop = getFormatAdjustedCrop(crop, mdpFormat,
410 Dim MdssRot::getFormatAdjustedCrop(const Dim& crop, argument
412 Dim adjCrop = crop;
416 // For interlaced, crop
423 getDownscaleAdjustedCrop(const Dim& crop, const uint32_t& downscale) argument
[all...]
H A 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/msm8994/libhwcomposer/
H A Dhwc_utils.cpp667 // For sidesync, the dest fb will be in portrait orientation, and the crop
769 // be in portrait orientation, so update the crop to not show the
970 hwc_rect_t& crop, hwc_rect_t& dst) {
977 qhwc::calculate_crop_rects(crop, dst, scissor, transform);
985 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
990 (hwc_rect_t&)crop,
992 layer->sourceCropf.left = (float)crop.left;
993 layer->sourceCropf.right = (float)crop.right;
994 layer->sourceCropf.top = (float)crop.top;
995 layer->sourceCropf.bottom = (float)crop
969 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
1249 calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, const hwc_rect_t& scissor, int orient) argument
1752 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument
1778 configMdp(Overlay *ov, const PipeArgs& parg, const eTransform& orient, const hwc_rect_t& crop, const hwc_rect_t& pos, const MetaData_t *metadata, const eDest& dest) argument
1841 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop, Rotator *rot) argument
1871 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1906 isZoomModeEnabled(hwc_rect_t crop) argument
1911 updateCropAIVVideoMode(hwc_context_t *ctx, hwc_rect_t& crop, int dpy) argument
1936 updateDestAIVVideoMode(hwc_context_t *ctx, hwc_rect_t crop, hwc_rect_t& dst, int dpy) argument
1965 updateCoordinates(hwc_context_t *ctx, hwc_rect_t& crop, hwc_rect_t& dst, int dpy) argument
1988 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
2084 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
2232 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);; local
2536 setBwc(const hwc_context_t *ctx, const int& dpy, const private_handle_t *hnd, const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform,const int& downscale, ovutils::eMdpFlags& mdpFlags) argument
[all...]
H A Dhwc_ad.h44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
/hardware/qcom/display/msm8226/libhwcomposer/
H A Dhwc_utils.cpp506 // For sidesync, the dest fb will be in portrait orientation, and the crop
603 // be in portrait orientation, so update the crop to not show the
792 hwc_rect_t& crop, hwc_rect_t& dst) {
799 qhwc::calculate_crop_rects(crop, dst, scissor, transform);
807 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
810 (hwc_rect_t&)crop,
812 layer->sourceCropf.left = (float)crop.left;
813 layer->sourceCropf.right = (float)crop.right;
814 layer->sourceCropf.top = (float)crop.top;
815 layer->sourceCropf.bottom = (float)crop
791 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
1031 calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, const hwc_rect_t& scissor, int orient) argument
1517 configRotator(Rotator *rot, Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument
1543 configMdp(Overlay *ov, const PipeArgs& parg, const eTransform& orient, const hwc_rect_t& crop, const hwc_rect_t& pos, const MetaData_t *metadata, const eDest& dest) argument
1606 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop, Rotator *rot) argument
1647 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1754 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1898 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf);; local
2172 setBwc(const hwc_rect_t& crop, const hwc_rect_t& dst, const int& transform, ovutils::eMdpFlags& mdpFlags) argument
[all...]
H A Dhwc_ad.h44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
/hardware/qcom/display/msm8084/liboverlay/
H A DoverlayMdssRot.cpp84 void MdssRot::setCrop(const utils::Dim& crop) { argument
86 mRotInfo.src_rect.x = crop.x;
87 mRotInfo.src_rect.y = crop.y;
88 mRotInfo.src_rect.w = crop.w;
89 mRotInfo.src_rect.h = crop.h;
93 mRotInfo.dst_rect.w = crop.w;
94 mRotInfo.dst_rect.h = crop.h;
/hardware/qcom/display/msm8996/sdm/libs/core/
H A 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,
H A Dresource_default.cpp565 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, argument
567 float &crop_left = crop->left;
568 float &crop_top = crop->top;
569 float &crop_right = crop->right;
570 float &crop_bottom = crop->bottom;
571 float crop_width = crop->right - crop->left;
572 float crop_height = crop->bottom - crop->top;
620 Normalize(1, 1, crop);
657 ValidateDimensions(const LayerRect &crop, const LayerRect &dst) argument
702 ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90, bool ubwc_tiled, bool use_rotator_downscale) argument
772 GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x, float *scale_y) argument
[all...]
/hardware/qcom/display/msm8909/sdm/libs/core/
H A Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, argument
604 float &crop_left = crop->left;
605 float &crop_top = crop->top;
606 float &crop_right = crop->right;
607 float &crop_bottom = crop->bottom;
608 float crop_width = crop->right - crop->left;
609 float crop_height = crop->bottom - crop->top;
657 Normalize(1, 1, crop);
694 ValidateDimensions(const LayerRect &crop, const LayerRect &dst) argument
740 ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90, BufferLayout layout, bool use_rotator_downscale) argument
810 GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x, float *scale_y) argument
[all...]
H A 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/
H A Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, argument
604 float &crop_left = crop->left;
605 float &crop_top = crop->top;
606 float &crop_right = crop->right;
607 float &crop_bottom = crop->bottom;
608 float crop_width = crop->right - crop->left;
609 float crop_height = crop->bottom - crop->top;
657 Normalize(1, 1, crop);
694 ValidateDimensions(const LayerRect &crop, const LayerRect &dst) argument
740 ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90, BufferLayout layout, bool use_rotator_downscale) argument
810 GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x, float *scale_y) argument
[all...]
H A 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/
H A Dresource_default.cpp602 bool ResourceDefault::CalculateCropRects(const LayerRect &scissor, LayerRect *crop, argument
604 float &crop_left = crop->left;
605 float &crop_top = crop->top;
606 float &crop_right = crop->right;
607 float &crop_bottom = crop->bottom;
608 float crop_width = crop->right - crop->left;
609 float crop_height = crop->bottom - crop->top;
657 Normalize(1, 1, crop);
694 ValidateDimensions(const LayerRect &crop, const LayerRect &dst) argument
740 ValidateScaling(const LayerRect &crop, const LayerRect &dst, bool rotate90, BufferLayout layout, bool use_rotator_downscale) argument
810 GetScaleFactor(const LayerRect &crop, const LayerRect &dst, float *scale_x, float *scale_y) argument
[all...]
H A 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/
H A DQCamera3PostProc.cpp1230 cam_rect_t crop; local
1231 memset(&crop, 0, sizeof(cam_rect_t));
1233 //main_stream->getCropInfo(crop);
1235 // Set JPEG encode crop in reprocess frame metadata
1236 // If this JPEG crop info exist, encoder should do cropping
1239 memcpy(&crop, &(jpeg_crop->crop), sizeof(cam_rect_t));
1242 // Set JPEG encode crop in reprocess frame metadata
1367 jpg_job.encode_job.main_dim.crop.width = crop
1772 cam_rect_t crop; local
[all...]
/hardware/qcom/display/msm8996/sdm/include/private/
H A Dresource_interface.h52 virtual DisplayError ValidateScaling(const LayerRect &crop, const LayerRect &dst,
/hardware/qcom/display/msm8226/liboverlay/
H A DoverlayMdssRot.cpp99 void MdssRot::setCrop(const utils::Dim& crop) { argument
100 mRotInfo.src_rect.x = crop.x;
101 mRotInfo.src_rect.y = crop.y;
102 mRotInfo.src_rect.w = crop.w;
103 mRotInfo.src_rect.h = crop.h;
134 // For interlaced, crop.h should be 4-aligned
/hardware/intel/common/libmix/videoencoder/
H A DVideoEncoderDef.h421 Cropping crop; member in struct:VideoParamsAVC
452 this->crop.LeftOffset = other.crop.LeftOffset;
453 this->crop.RightOffset = other.crop.RightOffset;
454 this->crop.TopOffset = other.crop.TopOffset;
455 this->crop.BottomOffset = other.crop.BottomOffset;
/hardware/google/av/codec2/vndk/
H A DC2Buffer.cpp788 * For blocks' Impl's crop is always the allotted crop, even if it is a sub block.
790 * For views' Impl's crop is the mapped portion - which for now is always the
791 * allotted crop.
796 * Impl's crop is always the or part of the allotted crop of the allocation.
849 const C2Rect crop = mImpl->crop(); local
853 crop,
864 // adjust data pointers to the crop regio
1066 share(const C2Rect &crop, C2Fence fence) argument
[all...]

Completed in 1406 milliseconds

12345