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

12

/hardware/qcom/display/msm8974/libhwcomposer/
H A Dhwc_utils.cpp505 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument
508 int& crop_l = crop.left;
509 int& crop_t = crop.top;
510 int& crop_r = crop.right;
511 int& crop_b = crop.bottom;
512 int crop_w = crop.right - crop.left;
513 int crop_h = crop.bottom - crop.top;
739 hwc_rect_t& crop, hwc_rect_
738 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
798 configRotator(Rotator *rot, const Whf& whf, hwc_rect_t& crop, const eMdpFlags& mdpFlags, const eTransform& orient, const int& downscale) argument
827 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
853 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop) argument
891 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
983 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
1161 setBwc(hwc_context_t *ctx, 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,
H A 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,
209 //Trims a layer's source crop which is outside of screen boundary.
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);
H A Dhwc_ad.cpp157 const hwc_rect_t& crop,
213 hwc_rect_t dst = crop; //input same as output
215 if(configMdp(ctx->mOverlay, parg, OVERLAY_TRANSFORM_0, crop, dst, NULL,
156 prepare(hwc_context_t *ctx, const hwc_rect_t& crop, const Whf& whf, const private_handle_t *hnd) argument
H A Dhwc_mdpcomp.cpp270 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
275 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
278 int crop_w = crop.right - crop.left;
279 int crop_h = crop.bottom - crop.top;
567 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
568 batchPixelCount += (crop.right - crop.left) *
569 (crop
[all...]
/hardware/qcom/display/msm8960/libhwcomposer/
H A Dhwc_utils.cpp544 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument
547 int& crop_l = crop.left;
548 int& crop_t = crop.top;
549 int& crop_r = crop.right;
550 int& crop_b = crop.bottom;
551 int crop_w = crop.right - crop.left;
552 int crop_h = crop.bottom - crop.top;
772 hwc_rect_t& crop, hwc_rect_
771 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
885 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
911 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop) argument
938 hwc_rect_t crop = layer->sourceCrop; local
1019 hwc_rect_t crop = layer->sourceCrop; local
[all...]
H A Dhwc_utils.h162 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
189 //Trims a layer's source crop which is outside of screen boundary.
191 hwc_rect_t& crop, hwc_rect_t& dst);
/hardware/qcom/display/msm8x26/libhwcomposer/
H A Dhwc_utils.cpp504 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument
507 int& crop_l = crop.left;
508 int& crop_t = crop.top;
509 int& crop_r = crop.right;
510 int& crop_b = crop.bottom;
511 int crop_w = crop.right - crop.left;
512 int crop_h = crop.bottom - crop.top;
733 hwc_rect_t& crop, hwc_rect_
732 trimLayer(hwc_context_t *ctx, const int& dpy, const int& transform, hwc_rect_t& crop, hwc_rect_t& dst) argument
845 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
871 updateSource(eTransform& orient, Whf& whf, hwc_rect_t& crop) argument
898 hwc_rect_t crop = layer->sourceCrop; local
965 hwc_rect_t crop = layer->sourceCrop; local
[all...]
/hardware/samsung_slsi/exynos5/include/
H A 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/qcom/camera/QCamera2/stack/mm-jpeg-interface/test/
H A Dmm_jpeg_test.c238 p_job_params->main_dim.crop.top = 0;
239 p_job_params->main_dim.crop.left = 0;
240 p_job_params->main_dim.crop.width = p_obj->width;
241 p_job_params->main_dim.crop.height = p_obj->height;
248 p_job_params->thumb_dim.crop.top = 0;
249 p_job_params->thumb_dim.crop.left = 0;
250 p_job_params->thumb_dim.crop.width = p_obj->width;
251 p_job_params->thumb_dim.crop.height = p_obj->height;
/hardware/ti/omap4xxx/hwc/
H A Dhwc.c219 c->width, c->height, c->crop.x, c->crop.y,
220 c->crop.w, c->crop.h,
444 oc->crop.w = oc->win.w = width;
445 oc->crop.h = oc->win.h = height;
483 /* crop */
484 oc->crop.x = layer->sourceCrop.left;
485 oc->crop.y = layer->sourceCrop.top;
486 oc->crop
597 } crop, win; local
[all...]
/hardware/samsung_slsi/exynos5/libv4l2/
H A Dexynos_subdev.c216 * @brief Retrieve the crop rectangle on a pad.
219 int exynos_subdev_g_crop(int fd, struct v4l2_subdev_crop *crop) argument
228 if (!crop) {
229 ALOGE("%s: crop is NULL", __func__);
233 ret = ioctl(fd, VIDIOC_SUBDEV_G_CROP, crop);
243 * @brief Set the crop rectangle on a pad.
246 int exynos_subdev_s_crop(int fd, struct v4l2_subdev_crop *crop) argument
255 if (!crop) {
256 ALOGE("%s: crop is NULL", __func__);
260 ret = ioctl(fd, VIDIOC_SUBDEV_S_CROP, crop);
[all...]
H A Dexynos_v4l2.c607 int exynos_v4l2_cropcap(int fd, struct v4l2_cropcap *crop) argument
618 if (!crop) {
619 ALOGE("%s: crop is NULL", __func__);
623 if (__v4l2_check_buf_type(crop->type) == false) {
628 ret = ioctl(fd, VIDIOC_CROPCAP, crop);
639 int exynos_v4l2_g_crop(int fd, struct v4l2_crop *crop) argument
650 if (!crop) {
651 ALOGE("%s: crop is NULL", __func__);
655 if (__v4l2_check_buf_type(crop->type) == false) {
660 ret = ioctl(fd, VIDIOC_G_CROP, crop);
671 exynos_v4l2_s_crop(int fd, struct v4l2_crop *crop) argument
[all...]
/hardware/qcom/display/msm8974/liboverlay/
H A DoverlayMdssRot.cpp83 void MdssRot::setCrop(const utils::Dim& crop) { argument
85 mRotInfo.src_rect.x = crop.x;
86 mRotInfo.src_rect.y = crop.y;
87 mRotInfo.src_rect.w = crop.w;
88 mRotInfo.src_rect.h = crop.h;
92 mRotInfo.dst_rect.w = crop.w;
93 mRotInfo.dst_rect.h = crop.h;
H A 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/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/
H A Dmm_jpeg.c824 if ((p_thumb_dim->crop.width == 0) || (p_thumb_dim->crop.height == 0)) {
825 p_thumb_dim->crop.width = p_thumb_dim->src_dim.width;
826 p_thumb_dim->crop.height = p_thumb_dim->src_dim.height;
829 /* check crop boundary */
830 if ((p_thumb_dim->crop.width + p_thumb_dim->crop.left > p_thumb_dim->src_dim.width) ||
831 (p_thumb_dim->crop.height + p_thumb_dim->crop.top > p_thumb_dim->src_dim.height)) {
832 CDBG_ERROR("%s:%d] invalid crop boundar
[all...]
/hardware/samsung_slsi/exynos5/librotator/
H A Dexynos_rotator.c80 struct v4l2_crop crop; member in struct:rotator_info
461 // crop
463 info->crop.type = info->buf_type;
464 if (exynos_v4l2_g_crop(fd, &info->crop) < 0) {
469 if (info->crop_left != info->crop.c.left ||
470 info->crop_top != info->crop.c.top ||
471 info->crop_width != info->crop.c.width ||
472 info->crop_height != info->crop.c.height) {
473 ALOGV("%s::crop is different..", __func__);
493 ALOGV("%s::fmt, crop i
[all...]
/hardware/qcom/camera/QCamera2/stack/common/
H A Dmm_jpeg_interface.h97 /* crop information */
98 cam_rect_t crop; member in struct:__anon571
/hardware/samsung_slsi/exynos5/libgscaler/
H A Dexynos_gsc_utils.h116 struct v4l2_crop crop; member in struct:gsc_info
H A Dexynos_gscaler.c639 info->crop.type = info->buf_type;
640 info->crop.c.left = info->crop_left;
641 info->crop.c.top = info->crop_top;
642 info->crop.c.width = info->crop_width;
643 info->crop.c.height = info->crop_height;
645 if (exynos_v4l2_s_crop(fd, &info->crop) < 0) {
1386 struct v4l2_crop crop; local
1462 /* set crop: src crop of GSC sub-dev*/
1477 ALOGE("%s::GSC subdev set crop faile
[all...]
/hardware/qcom/camera/QCamera2/HAL/
H A DQCameraStream.h76 int32_t getCropInfo(cam_rect_t &crop);
109 pthread_mutex_t mCropLock; // lock to protect crop info
H A DQCameraPostProc.cpp1043 cam_rect_t crop; local
1044 memset(&crop, 0, sizeof(cam_rect_t));
1045 main_stream->getCropInfo(crop);
1054 jpg_job.encode_job.main_dim.crop = crop;
1064 memset(&crop, 0, sizeof(cam_rect_t));
1065 thumb_stream->getCropInfo(crop);
1078 jpg_job.encode_job.thumb_dim.crop = crop;
H A DQCameraStream.cpp331 * @previewWindoe : preview window ops table to set preview crop window
332 * @crop_info : crop info
343 // get stream param for crop info
347 mCropInfo = crop_info.crop_info[i].crop;
350 // update preview window crop if it's preview/postview stream
790 * DESCRIPTION: query crop info of the stream
793 * @crop : reference to struct to store the queried crop info
799 int32_t QCameraStream::getCropInfo(cam_rect_t &crop) argument
802 crop
[all...]
/hardware/samsung_slsi/exynos5/libhwc/
H A Dhwc.cpp219 hwc_rect_t *crop, size_t alignment)
226 if (crop) {
227 crop->left = (w - w_orig) / 2;
228 crop->top = (h - h_orig) / 2;
229 crop->right = crop->left + w_orig;
230 crop->bottom = crop->top + h_orig;
365 /* GSC's dst crop size should be aligned 128Bytes */
1320 unsigned int crop local
218 align_crop_and_center(T &w, T &h, hwc_rect_t *crop, size_t alignment) argument
1331 unsigned int crop = displayFrame.right - pdev->xres; local
1338 unsigned int crop = -displayFrame.top; local
1349 int crop = displayFrame.bottom - pdev->yres; local
[all...]
/hardware/qcom/camera/QCamera2/HAL3/
H A DQCamera3PostProc.cpp899 cam_rect_t crop; local
900 memset(&crop, 0, sizeof(cam_rect_t));
902 //main_stream->getCropInfo(crop);
915 jpg_job.encode_job.main_dim.crop = crop;
937 memset(&crop, 0, sizeof(cam_rect_t));
939 //thumb_stream->getCropInfo(crop);
953 jpg_job.encode_job.thumb_dim.crop = crop;

Completed in 7122 milliseconds

12