Home
last modified time | relevance | path

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

123

/hardware/qcom/display/msm8974/libhwcomposer/
Dhwc_utils.cpp505 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
508 int& crop_l = crop.left; in calculate_crop_rects()
509 int& crop_t = crop.top; in calculate_crop_rects()
510 int& crop_r = crop.right; in calculate_crop_rects()
511 int& crop_b = crop.bottom; in calculate_crop_rects()
512 int crop_w = crop.right - crop.left; in calculate_crop_rects()
513 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
739 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
745 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
799 hwc_rect_t& crop, const eMdpFlags& mdpFlags, in configRotator() argument
[all …]
Dhwc_utils.h115 static void setBwc(hwc_context_t *ctx, const hwc_rect_t& crop,
183 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
211 hwc_rect_t& crop, hwc_rect_t& dst);
219 hwc_rect_t& crop, const ovutils::eMdpFlags& mdpFlags,
223 const ovutils::eTransform& orient, const hwc_rect_t& crop,
228 hwc_rect_t& crop);
Dhwc_mdpcomp.cpp271 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension() local
276 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension()
280 int crop_w = rotated90 ? crop.bottom - crop.top : crop.right - crop.left; in isValidDimension()
281 int crop_h = rotated90 ? crop.right - crop.left : crop.bottom - crop.top; in isValidDimension()
569 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in loadBasedComp() local
570 batchPixelCount += (crop.right - crop.left) * in loadBasedComp()
571 (crop.bottom - crop.top); in loadBasedComp()
Dhwc_ad.cpp157 const hwc_rect_t& crop, in prepare() argument
213 hwc_rect_t dst = crop; //input same as output in prepare()
215 if(configMdp(ctx->mOverlay, parg, OVERLAY_TRANSFORM_0, crop, dst, NULL, in prepare()
/hardware/ti/omap4-aah/test/CameraHal/
Dcamera_test_surfacetexture.cpp152 const Rect &crop, in writeCroppedNV12() argument
160 if (!buffer || !crop.isValid()) { in writeCroppedNV12()
176 unsigned int height = crop.height(); in writeCroppedNV12()
177 unsigned int width = crop.width(); in writeCroppedNV12()
207 const Rect &crop, in writeCroppedUYVY() argument
219 int height = crop.height(); in writeCroppedUYVY()
220 int width = crop.width(); in writeCroppedUYVY()
239 const Rect &crop, in copyCroppedNV12() argument
252 uvoffset = strideSrc * crop.height(); in copyCroppedNV12()
258 int height = crop.height(); in copyCroppedNV12()
[all …]
Dcamera_test.h222 Rect crop; member
326 Rect crop; member
359 defer.count, defer.crop); in threadLoop()
367 void add(sp<GraphicBuffer> &gbuf, const Rect &crop,
374 defer.crop = crop;
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp551 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
554 int& crop_l = crop.left; in calculate_crop_rects()
555 int& crop_t = crop.top; in calculate_crop_rects()
556 int& crop_r = crop.right; in calculate_crop_rects()
557 int& crop_b = crop.bottom; in calculate_crop_rects()
558 int crop_w = crop.right - crop.left; in calculate_crop_rects()
559 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
779 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
785 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/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/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()
1030 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
1033 int& crop_l = crop.left; in calculate_crop_rects()
[all …]
Dhwc_mdpcomp.cpp344 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension() local
347 int crop_w = rotated90 ? crop.bottom - crop.top : crop.right - crop.left; in isValidDimension()
348 int crop_h = rotated90 ? crop.right - crop.left : crop.bottom - crop.top; in isValidDimension()
839 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in fullMDPCompWithPTOR() local
841 layerPixelCount = (crop.right - crop.left) * (crop.bottom - crop.top); in fullMDPCompWithPTOR()
2233 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in acquireMDPPipes() local
2266 int cropWidth = crop.right - crop.left; in acquireMDPPipes()
2304 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in configure() local
2338 BwcPM::setBwc(crop, dst, transform, mdpFlags); in configure()
2341 if(configRotator(*rot, whf, crop, mdpFlags, orient, downscale) < 0) { in configure()
[all …]
Dhwc_ad.cpp151 const hwc_rect_t& crop, in prepare() argument
214 hwc_rect_t dst = crop; //input same as output in prepare()
216 if(configMdp(ctx->mOverlay, parg, OVERLAY_TRANSFORM_0, crop, dst, NULL, in prepare()
/hardware/ti/omap4xxx/hwc/
Dhwc.c219 c->width, c->height, c->crop.x, c->crop.y, in dump_dsscomp()
220 c->crop.w, c->crop.h, in dump_dsscomp()
444 oc->crop.w = oc->win.w = width; in omap4_hwc_setup_layer_base()
445 oc->crop.h = oc->win.h = height; in omap4_hwc_setup_layer_base()
484 oc->crop.x = layer->sourceCrop.left; in omap4_hwc_setup_layer()
485 oc->crop.y = layer->sourceCrop.top; in omap4_hwc_setup_layer()
486 oc->crop.w = WIDTH(layer->sourceCrop); in omap4_hwc_setup_layer()
487 oc->crop.h = HEIGHT(layer->sourceCrop); in omap4_hwc_setup_layer()
597 } crop, win; in crop_to_rect() local
604 crop.xy[0] = cfg->crop.x; crop.xy[1] = cfg->crop.y; in crop_to_rect()
[all …]
/hardware/samsung_slsi/exynos5/libv4l2/
Dexynos_subdev.c219 int exynos_subdev_g_crop(int fd, struct v4l2_subdev_crop *crop) in exynos_subdev_g_crop() argument
228 if (!crop) { in exynos_subdev_g_crop()
233 ret = ioctl(fd, VIDIOC_SUBDEV_G_CROP, crop); in exynos_subdev_g_crop()
246 int exynos_subdev_s_crop(int fd, struct v4l2_subdev_crop *crop) in exynos_subdev_s_crop() argument
255 if (!crop) { in exynos_subdev_s_crop()
260 ret = ioctl(fd, VIDIOC_SUBDEV_S_CROP, crop); in exynos_subdev_s_crop()
Dexynos_v4l2.c607 int exynos_v4l2_cropcap(int fd, struct v4l2_cropcap *crop) in exynos_v4l2_cropcap() argument
618 if (!crop) { in exynos_v4l2_cropcap()
623 if (__v4l2_check_buf_type(crop->type) == false) { in exynos_v4l2_cropcap()
628 ret = ioctl(fd, VIDIOC_CROPCAP, crop); in exynos_v4l2_cropcap()
639 int exynos_v4l2_g_crop(int fd, struct v4l2_crop *crop) in exynos_v4l2_g_crop() argument
650 if (!crop) { in exynos_v4l2_g_crop()
655 if (__v4l2_check_buf_type(crop->type) == false) { in exynos_v4l2_g_crop()
660 ret = ioctl(fd, VIDIOC_G_CROP, crop); in exynos_v4l2_g_crop()
671 int exynos_v4l2_s_crop(int fd, struct v4l2_crop *crop) in exynos_v4l2_s_crop() argument
682 if (!crop) { in exynos_v4l2_s_crop()
[all …]
/hardware/samsung_slsi/exynos5/include/
Dexynos_v4l2.h80 int exynos_v4l2_cropcap(int fd, struct v4l2_cropcap *crop);
82 int exynos_v4l2_g_crop(int fd, struct v4l2_crop *crop);
84 int exynos_v4l2_s_crop(int fd, struct v4l2_crop *crop);
112 int exynos_subdev_g_crop(int fd, struct v4l2_subdev_crop *crop);
114 int exynos_subdev_s_crop(int fd, struct v4l2_subdev_crop *crop);
/hardware/ti/omap4-aah/hwc/
Dhwc.c308 c->width, c->height, c->crop.x, c->crop.y, in dump_dsscomp()
309 c->crop.w, c->crop.h, in dump_dsscomp()
633 oc->crop.w = oc->win.w = width; in omap4_hwc_setup_layer_base()
634 oc->crop.h = oc->win.h = height; in omap4_hwc_setup_layer_base()
673 oc->crop.x = layer->sourceCrop.left; in omap4_hwc_setup_layer()
674 oc->crop.y = layer->sourceCrop.top; in omap4_hwc_setup_layer()
675 oc->crop.w = WIDTH(layer->sourceCrop); in omap4_hwc_setup_layer()
676 oc->crop.h = HEIGHT(layer->sourceCrop); in omap4_hwc_setup_layer()
786 } crop, win; in crop_to_rect() local
793 crop.xy[0] = cfg->crop.x; crop.xy[1] = cfg->crop.y; in crop_to_rect()
[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()
DoverlayRotator.h72 virtual void setCrop(const utils::Dim& crop) = 0;
107 virtual void setCrop(const utils::Dim& crop);
164 virtual void setCrop(const utils::Dim& crop);
/hardware/qcom/display/msm8974/liboverlay/
DoverlayMdssRot.cpp83 void MdssRot::setCrop(const utils::Dim& crop) { in setCrop() argument
85 mRotInfo.src_rect.x = crop.x; in setCrop()
86 mRotInfo.src_rect.y = crop.y; in setCrop()
87 mRotInfo.src_rect.w = crop.w; in setCrop()
88 mRotInfo.src_rect.h = crop.h; in setCrop()
92 mRotInfo.dst_rect.w = crop.w; in setCrop()
93 mRotInfo.dst_rect.h = crop.h; in setCrop()
DoverlayRotator.h86 virtual void setCrop(const utils::Dim& crop) = 0;
121 virtual void setCrop(const utils::Dim& crop);
178 virtual void setCrop(const utils::Dim& crop);
/hardware/samsung_slsi/exynos5/librotator/
Dexynos_rotator.c80 struct v4l2_crop crop; member
463 info->crop.type = info->buf_type; in m_exynos_rotator_set_format()
464 if (exynos_v4l2_g_crop(fd, &info->crop) < 0) { in m_exynos_rotator_set_format()
469 if (info->crop_left != info->crop.c.left || in m_exynos_rotator_set_format()
470 info->crop_top != info->crop.c.top || in m_exynos_rotator_set_format()
471 info->crop_width != info->crop.c.width || in m_exynos_rotator_set_format()
472 info->crop_height != info->crop.c.height) { in m_exynos_rotator_set_format()
524 info->crop.type = info->buf_type; in m_exynos_rotator_set_format()
525 info->crop.c.left = info->crop_left; in m_exynos_rotator_set_format()
526 info->crop.c.top = info->crop_top; in m_exynos_rotator_set_format()
[all …]
/hardware/intel/common/libmix/videoencoder/
DVideoEncoderDef.h423 Cropping crop; member
454 this->crop.LeftOffset = other.crop.LeftOffset;
455 this->crop.RightOffset = other.crop.RightOffset;
456 this->crop.TopOffset = other.crop.TopOffset;
457 this->crop.BottomOffset = other.crop.BottomOffset;
/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()
DoverlayRotator.h72 virtual void setCrop(const utils::Dim& crop) = 0;
112 virtual void setCrop(const utils::Dim& crop);
171 virtual void setCrop(const utils::Dim& crop);
/hardware/samsung_slsi/exynos5/libhwc/
Dhwc.cpp219 hwc_rect_t *crop, size_t alignment) in align_crop_and_center() argument
226 if (crop) { in align_crop_and_center()
227 crop->left = (w - w_orig) / 2; in align_crop_and_center()
228 crop->top = (h - h_orig) / 2; in align_crop_and_center()
229 crop->right = crop->left + w_orig; in align_crop_and_center()
230 crop->bottom = crop->top + h_orig; in align_crop_and_center()
1320 unsigned int crop = -displayFrame.left; in exynos5_config_handle() local
1322 crop); in exynos5_config_handle()
1324 w -= crop; in exynos5_config_handle()
1325 offset += crop * bpp / 8; in exynos5_config_handle()
[all …]

123