Searched defs:crop (Results 1 - 25 of 30) sorted by relevance

12

/hardware/qcom/display/msm8974/libhwcomposer/
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...]
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...]
/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 DoverlayMdpRot.cpp97 void MdpRot::setCrop(const utils::Dim& crop) { argument
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;
/hardware/qcom/camera/QCamera2/HAL/
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...]
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;
/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/libhardware/tests/camera2/
H A Dcamera2_utils.cpp554 android_native_rect_t crop = { left, top, right, bottom }; local
555 return native_window_set_crop(a, &crop);
/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;
/hardware/samsung_slsi/exynos5/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/
H A DExynosVideoDecoder.c789 struct v4l2_crop crop; local
804 memset(&crop, 0, sizeof(crop));
812 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
813 if (exynos_v4l2_g_crop(pCtx->hDec, &crop) != 0) {
821 bufferConf->cropRect.nTop = crop.c.top;
822 bufferConf->cropRect.nLeft = crop.c.left;
823 bufferConf->cropRect.nWidth = crop.c.width;
824 bufferConf->cropRect.nHeight = crop.c.height;
/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/ti/omap3/omx/image/src/openmax_il/jpeg_enc/src/
H A DOMX_JpegEncoder.c1522 OMX_CONFIG_RECTTYPE *crop = (OMX_CONFIG_RECTTYPE*)ComponentConfigStructure; local
1523 if ((crop->nTop != 0) || (crop->nLeft != 0))
1528 pComponentPrivate->pCrop->nWidth = crop->nWidth;
1529 pComponentPrivate->pCrop->nHeight = crop->nHeight;
/hardware/ti/omap3/omx/video/src/openmax_il/prepost_processor/src/
H A DOMX_VPP.c692 /* crop */
1507 OMX_CONFIG_RECTTYPE *crop = (OMX_CONFIG_RECTTYPE*)ComponentConfigStructure; local
1508 crop->nLeft = pComponentPrivate->pCrop->nLeft;
1509 crop->nWidth = pComponentPrivate->pCrop->nWidth;
1510 crop->nTop = pComponentPrivate->pCrop->nTop;
1511 crop->nHeight = pComponentPrivate->pCrop->nHeight;
1643 OMX_CONFIG_RECTTYPE *crop = (OMX_CONFIG_RECTTYPE*)ComponentConfigStructure; local
1644 ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInXstart = crop->nLeft;
1645 ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInXsize = crop->nWidth;
1646 ((VPP_COMPONENT_PRIVATE*) pHandle->pComponentPrivate)->pIpFrameStatus->ulInYstart = crop
[all...]
/hardware/qcom/display/msm8960/libhwcomposer/
H A Dhwc_mdpcomp.cpp278 hwc_rect_t crop = layer->sourceCrop; local
283 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
286 int crop_w = crop.right - crop.left;
287 int crop_h = crop.bottom - crop.top;
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...]
/hardware/qcom/display/msm8x26/libhwcomposer/
H A Dhwc_mdpcomp.cpp273 hwc_rect_t crop = layer->sourceCrop; local
278 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
281 int crop_w = crop.right - crop.left;
282 int crop_h = crop.bottom - crop.top;
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/qcom/msm8960/original-kernel-headers/media/
H A Dmsm_isp.h344 struct msm_pp_crop crop; member in struct:msm_mctl_pp_frame_cmd
/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/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...]

Completed in 668 milliseconds

12