Home
last modified time | relevance | path

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

12

/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_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()
Dhwc_mdpcomp.cpp270 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in isValidDimension() local
275 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension()
278 int crop_w = crop.right - crop.left; in isValidDimension()
279 int crop_h = crop.bottom - crop.top; in isValidDimension()
567 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); in loadBasedComp() local
568 batchPixelCount += (crop.right - crop.left) * in loadBasedComp()
569 (crop.bottom - crop.top); in loadBasedComp()
Dhwc_ad.h44 bool prepare(hwc_context_t *ctx, const hwc_rect_t& crop,
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_utils.cpp544 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
547 int& crop_l = crop.left; in calculate_crop_rects()
548 int& crop_t = crop.top; in calculate_crop_rects()
549 int& crop_r = crop.right; in calculate_crop_rects()
550 int& crop_b = crop.bottom; in calculate_crop_rects()
551 int crop_w = crop.right - crop.left; in calculate_crop_rects()
552 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
772 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
778 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
886 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
[all …]
Dhwc_mdpcomp.cpp278 hwc_rect_t crop = layer->sourceCrop; in isValidDimension() local
283 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform); in isValidDimension()
286 int crop_w = crop.right - crop.left; in isValidDimension()
287 int crop_h = crop.bottom - crop.top; in isValidDimension()
/hardware/qcom/display/msm8x26/libhwcomposer/
Dhwc_utils.cpp504 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, in calculate_crop_rects() argument
507 int& crop_l = crop.left; in calculate_crop_rects()
508 int& crop_t = crop.top; in calculate_crop_rects()
509 int& crop_r = crop.right; in calculate_crop_rects()
510 int& crop_b = crop.bottom; in calculate_crop_rects()
511 int crop_w = crop.right - crop.left; in calculate_crop_rects()
512 int crop_h = crop.bottom - crop.top; in calculate_crop_rects()
733 hwc_rect_t& crop, hwc_rect_t& dst) { in trimLayer() argument
739 qhwc::calculate_crop_rects(crop, dst, scissor, transform); in trimLayer()
846 const eTransform& orient, const hwc_rect_t& crop, in configMdp() argument
[all …]
/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/qcom/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c238 p_job_params->main_dim.crop.top = 0; in encode_init()
239 p_job_params->main_dim.crop.left = 0; in encode_init()
240 p_job_params->main_dim.crop.width = p_obj->width; in encode_init()
241 p_job_params->main_dim.crop.height = p_obj->height; in encode_init()
248 p_job_params->thumb_dim.crop.top = 0; in encode_init()
249 p_job_params->thumb_dim.crop.left = 0; in encode_init()
250 p_job_params->thumb_dim.crop.width = p_obj->width; in encode_init()
251 p_job_params->thumb_dim.crop.height = p_obj->height; in encode_init()
/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/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c824 if ((p_thumb_dim->crop.width == 0) || (p_thumb_dim->crop.height == 0)) { in mm_jpeg_session_config_thumbnail()
825 p_thumb_dim->crop.width = p_thumb_dim->src_dim.width; in mm_jpeg_session_config_thumbnail()
826 p_thumb_dim->crop.height = p_thumb_dim->src_dim.height; in mm_jpeg_session_config_thumbnail()
830 if ((p_thumb_dim->crop.width + p_thumb_dim->crop.left > p_thumb_dim->src_dim.width) || in mm_jpeg_session_config_thumbnail()
831 (p_thumb_dim->crop.height + p_thumb_dim->crop.top > p_thumb_dim->src_dim.height)) { in mm_jpeg_session_config_thumbnail()
834 p_thumb_dim->crop.width, in mm_jpeg_session_config_thumbnail()
835 p_thumb_dim->crop.height, in mm_jpeg_session_config_thumbnail()
836 p_thumb_dim->crop.left, in mm_jpeg_session_config_thumbnail()
837 p_thumb_dim->crop.top, in mm_jpeg_session_config_thumbnail()
856 thumbnail_info.crop_info.nWidth = p_thumb_dim->crop.width; in mm_jpeg_session_config_thumbnail()
[all …]
/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/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 …]
/hardware/samsung_slsi/exynos5/libgscaler/
Dexynos_gscaler.c639 info->crop.type = info->buf_type; in m_exynos_gsc_set_format()
640 info->crop.c.left = info->crop_left; in m_exynos_gsc_set_format()
641 info->crop.c.top = info->crop_top; in m_exynos_gsc_set_format()
642 info->crop.c.width = info->crop_width; in m_exynos_gsc_set_format()
643 info->crop.c.height = info->crop_height; in m_exynos_gsc_set_format()
645 if (exynos_v4l2_s_crop(fd, &info->crop) < 0) { in m_exynos_gsc_set_format()
1386 struct v4l2_crop crop; in exynos_gsc_out_config() local
1595 crop.type = fmt.type; in exynos_gsc_out_config()
1596 crop.c.left = gsc_handle->src_img.x; in exynos_gsc_out_config()
1597 crop.c.top = gsc_handle->src_img.y; in exynos_gsc_out_config()
[all …]
Dexynos_gsc_utils.h116 struct v4l2_crop crop; member
/hardware/qcom/camera/QCamera2/HAL/
DQCameraPostProc.cpp1043 cam_rect_t crop; in encodeData() local
1044 memset(&crop, 0, sizeof(cam_rect_t)); in encodeData()
1045 main_stream->getCropInfo(crop); in encodeData()
1054 jpg_job.encode_job.main_dim.crop = crop; in encodeData()
1064 memset(&crop, 0, sizeof(cam_rect_t)); in encodeData()
1065 thumb_stream->getCropInfo(crop); in encodeData()
1078 jpg_job.encode_job.thumb_dim.crop = crop; in encodeData()
DQCameraStream.cpp347 mCropInfo = crop_info.crop_info[i].crop; in processZoomDone()
799 int32_t QCameraStream::getCropInfo(cam_rect_t &crop) in getCropInfo() argument
802 crop = mCropInfo; in getCropInfo()
/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3PostProc.cpp899 cam_rect_t crop; in encodeData() local
900 memset(&crop, 0, sizeof(cam_rect_t)); in encodeData()
915 jpg_job.encode_job.main_dim.crop = crop; in encodeData()
937 memset(&crop, 0, sizeof(cam_rect_t)); in encodeData()
953 jpg_job.encode_job.thumb_dim.crop = crop; in encodeData()
/hardware/ti/omap3/omx/video/src/openmax_il/prepost_processor/src/
DOMX_VPP.c1507 OMX_CONFIG_RECTTYPE *crop = (OMX_CONFIG_RECTTYPE*)ComponentConfigStructure; in VPP_GetConfig() local
1508 crop->nLeft = pComponentPrivate->pCrop->nLeft; in VPP_GetConfig()
1509 crop->nWidth = pComponentPrivate->pCrop->nWidth; in VPP_GetConfig()
1510 crop->nTop = pComponentPrivate->pCrop->nTop; in VPP_GetConfig()
1511 crop->nHeight = pComponentPrivate->pCrop->nHeight; in VPP_GetConfig()
1643 OMX_CONFIG_RECTTYPE *crop = (OMX_CONFIG_RECTTYPE*)ComponentConfigStructure; in VPP_SetConfig() local
1644 … ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInXstart = crop->nLeft; in VPP_SetConfig()
1645 … ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInXsize = crop->nWidth; in VPP_SetConfig()
1646 … ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInYstart = crop->nTop; in VPP_SetConfig()
1647 … ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInYsize = crop->nHeight; in VPP_SetConfig()
[all …]
/hardware/qcom/camera/QCamera2/stack/common/
Dmm_jpeg_interface.h98 cam_rect_t crop; member

12