Searched defs:crop (Results 1 - 25 of 41) 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.cpp271 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
276 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
280 int crop_w = rotated90 ? crop.bottom - crop.top : crop.right - crop.left;
281 int crop_h = rotated90 ? crop.right - crop.left : crop.bottom - crop
569 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
[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/intel/img/hwcomposer/include/
H A DDataBuffer.h24 typedef struct crop { struct in namespace:android::intel
/hardware/qcom/display/msm8084/libhwcomposer/
H A Dhwc_ad.cpp172 const hwc_rect_t& crop,
239 hwc_rect_t dst = crop; //input same as output
241 if(configMdp(ctx->mOverlay, parg, OVERLAY_TRANSFORM_0, crop, dst, NULL,
171 prepare(hwc_context_t *ctx, const hwc_rect_t& crop, const Whf& whf, const private_handle_t *hnd) argument
/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/msm8226/libhwcomposer/
H A Dhwc_ad.cpp151 const hwc_rect_t& crop,
214 hwc_rect_t dst = crop; //input same as output
216 if(configMdp(ctx->mOverlay, parg, OVERLAY_TRANSFORM_0, crop, dst, NULL,
150 prepare(hwc_context_t *ctx, const hwc_rect_t& crop, const Whf& whf, const private_handle_t *hnd) argument
H A Dhwc_copybit.cpp669 hwc_rect_t crop = integerizeSourceCrop(layer->sourceCropf); local
670 qhwc::calculate_crop_rects(crop, dispFrame, iRect,
674 copybit_rect_t srcRect = {crop.left, crop.top, crop.right,
675 crop.bottom};
932 // copy new src and src rect crop
/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/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/ti/omap4-aah/test/CameraHal/
H A Dcamera_test_surfacetexture.h163 Rect crop = getCrop(graphic_buffer, mtx); local
165 mDeferThread->add(graphic_buffer, crop, mCounter++);
H A Dcamera_test_surfacetexture.cpp152 const Rect &crop,
160 if (!buffer || !crop.isValid()) {
176 unsigned int height = crop.height();
177 unsigned int width = crop.width();
207 const Rect &crop,
219 int height = crop.height();
220 int width = crop.width();
239 const Rect &crop,
252 uvoffset = strideSrc * crop.height();
258 int height = crop
148 writeCroppedNV12(unsigned int offset, unsigned int stride, unsigned int bufWidth, unsigned int bufHeight, const Rect &crop, int fd, unsigned char *buffer) argument
203 writeCroppedUYVY(unsigned int offset, unsigned int stride, unsigned int bufWidth, unsigned int bufHeight, const Rect &crop, int fd, unsigned char *buffer) argument
234 copyCroppedNV12(unsigned int offset, unsigned int strideSrc, unsigned int strideDst, unsigned int bufWidth, unsigned int bufHeight, const Rect &crop, void *bufferSrc, void *bufferDst) argument
284 copyCroppedPacked16(unsigned int offset, unsigned int stride, unsigned int bufWidth, unsigned int bufHeight, const Rect &crop, void *bufferSrc, void *bufferDst) argument
622 handleBuffer(sp<GraphicBuffer> &graphic_buffer, uint8_t *buffer, unsigned int count, const Rect &crop) argument
[all...]
/hardware/samsung_slsi/exynos5/libgscaler/
H A Dexynos_gsc_utils.h116 struct v4l2_crop crop; member in struct:gsc_info
H A Dexynos_gscaler.c644 info->crop.type = info->buf_type;
645 info->crop.c.left = info->crop_left;
646 info->crop.c.top = info->crop_top;
647 info->crop.c.width = info->crop_width;
648 info->crop.c.height = info->crop_height;
650 if (exynos_v4l2_s_crop(fd, &info->crop) < 0) {
1401 struct v4l2_crop crop; local
1477 /* set crop: src crop of GSC sub-dev*/
1492 ALOGE("%s::GSC subdev set crop faile
[all...]
/hardware/intel/img/hwcomposer/ips/anniedale/
H A DAnnOverlayPlane.cpp674 int crop = (mSrcCrop.w - 4 * mPosition.w)/2 + 1; local
675 mSrcCrop.x += crop;
676 mSrcCrop.w -= 2 * crop;
680 int crop = (mSrcCrop.h - 4 * mPosition.h)/2 + 1; local
681 mSrcCrop.y += crop;
682 mSrcCrop.h -= 2 * crop;
/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/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.cpp279 hwc_rect_t crop = layer->sourceCrop; local
284 qhwc::calculate_crop_rects(crop, dst, scissor, layer->transform);
287 int crop_w = crop.right - crop.left;
288 int crop_h = crop.bottom - crop.top;
H A Dhwc_utils.cpp551 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument
554 int& crop_l = crop.left;
555 int& crop_t = crop.top;
556 int& crop_r = crop.right;
557 int& crop_b = crop.bottom;
558 int crop_w = crop.right - crop.left;
559 int crop_h = crop.bottom - crop.top;
779 hwc_rect_t& crop, hwc_rect_
778 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...]

Completed in 880 milliseconds

12