/hardware/qcom/camera/QCamera/stack/mm-camera-test/src/ |
H A D | mm_qcamera_display.c | 178 common_crop_t *crop = (common_crop_t *) (frame->cropinfo); local 204 if (crop->in2_w != 0 || crop->in2_h != 0) { 206 e->src_rect.x = (crop->out2_w - crop->in2_w + 1) / 2 - 1; 208 e->src_rect.y = (crop->out2_h - crop->in2_h + 1) / 2 - 1; 210 e->src_rect.w = crop->in2_w; 211 e->src_rect.h = crop->in2_h; 460 int v4l2_render(int frame_fd, struct v4l2_buffer *vb, struct v4l2_crop *crop) argument 517 common_crop_t *crop; local [all...] |
/hardware/qcom/display/liboverlay/pipes/ |
H A D | overlayVideoExtPipe.h | 86 // Use cached crop data to get aspect ratio 87 utils::Dim crop = mVideoExt.getCrop(); local 88 utils::Whf whf(crop.w, crop.h, 0);
|
/hardware/samsung_slsi/exynos5/include/ |
H A D | exynos_v4l2.h | 80 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/display/libhwcomposer/ |
H A D | hwc_utils.cpp | 160 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst, argument 162 int& crop_l = crop.left; 163 int& crop_t = crop.top; 164 int& crop_r = crop.right; 165 int& crop_b = crop.bottom; 166 int crop_w = crop.right - crop.left; 167 int crop_h = crop.bottom - crop.top;
|
H A D | hwc_mdpcomp.cpp | 214 hwc_rect_t crop = sourceCrop; local 215 int crop_w = crop.right - crop.left; 216 int crop_h = crop.bottom - crop.top; 234 qhwc::calculate_crop_rects(crop, dst, hw_w, hw_h, 0); 237 crop_w = crop.right - crop.left; 238 crop_h = crop.bottom - crop [all...] |
H A D | hwc_utils.h | 93 void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
|
/hardware/ti/omap4xxx/hwc/ |
H A D | hwc.c | 219 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 D | exynos_subdev.c | 216 * @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 D | exynos_v4l2.c | 607 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/camera/QCamera/stack/mm-jpeg-interface/src/ |
H A D | mm_jpeg.c | 293 /* check crop boundary */ 294 if ((src_buf->crop.width == 0) || (src_buf->crop.height == 0) || 295 (src_buf->crop.width + src_buf->crop.offset_x > src_buf->src_dim.width) || 296 (src_buf->crop.height + src_buf->crop.offset_y > src_buf->src_dim.height)) { 297 CDBG_ERROR("%s: invalid crop boundary (%d, %d) offset (%d, %d) out of (%d, %d)", 299 src_buf->crop.width, 300 src_buf->crop [all...] |
/hardware/qcom/camera/mm-camera-interface/ |
H A D | mm_jpeg_encoder.h | 49 common_crop_t *crop,
|
H A D | mm_camera_channel.c | 495 mm_camera_ch_crop_t *crop) 502 &crop->crop); 507 &crop->crop); 512 &crop->crop); 518 &crop->snapshot.main_crop); 523 &crop->snapshot.thumbnail_crop); 492 mm_camera_ch_util_get_crop(mm_camera_obj_t *my_obj, mm_camera_channel_type_t ch_type, mm_camera_state_evt_type_t evt, mm_camera_ch_crop_t *crop) argument
|
H A D | mm_camera_stream.c | 230 struct v4l2_crop crop; local 232 memset(&crop, 0, sizeof(crop)); 233 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; 234 rc = ioctl(stream->fd, VIDIOC_G_CROP, &crop); 237 val->left = crop.c.left; 238 val->top = crop.c.top; 239 val->width = crop.c.width; 240 val->height = crop.c.height;
|
/hardware/qcom/camera/ |
H A D | QCameraHWI_Still.cpp | 1587 common_crop_t crop; local 1724 memset(&crop,0,sizeof(common_crop_t)); 1728 /* Setting crop info */ 1731 crop.in2_w=mCrop.snapshot.main_crop.width;// dimension.picture_width 1732 crop.in2_h=mCrop.snapshot.main_crop.height;// dimension.picture_height; 1734 crop.out2_w = mPictureWidth; 1735 crop.out2_h = mPictureHeight; 1737 crop.out2_w = mActualPictureWidth; 1738 crop.out2_h = mActualPictureHeight; 1739 if (!crop 1815 notifyShutter(common_crop_t *crop, bool mPlayShutterSoundOnly) argument 1901 common_crop_t crop; local [all...] |
H A D | QCameraHWI.cpp | 2033 ALOGV("%s: Fetching crop info", __func__); 2048 ALOGV("%s: Setting crop info for snapshot", __func__); 2052 ALOGV("%s: Setting crop info for snapshot", __func__); 2069 ALOGV("%s: Fetching crop info", __func__); 2073 v4l2_crop.crop.left, 2074 v4l2_crop.crop.top, 2075 v4l2_crop.crop.width, 2076 v4l2_crop.crop.height); 2079 v4l2_crop.crop.left, 2080 v4l2_crop.crop [all...] |
/hardware/samsung_slsi/exynos5/librotator/ |
H A D | exynos_rotator.c | 80 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/QCamera/HAL/core/src/ |
H A D | QCameraHWI_Still.cpp | 1285 //common_crop_t crop; 1440 common_crop_t crop; local 1547 memset(&crop,0,sizeof(common_crop_t)); 1551 /* Setting crop info */ 1554 crop.in2_w=mCrop.snapshot.main_crop.width;// dimension.picture_width 1555 crop.in2_h=mCrop.snapshot.main_crop.height;// dimension.picture_height; 1557 crop.out2_w = mPictureWidth; 1558 crop.out2_h = mPictureHeight; 1560 crop.out2_w = mActualPictureWidth; 1561 crop 1634 notifyShutter(common_crop_t *crop, bool mPlayShutterSoundOnly) argument 1721 common_crop_t crop; local [all...] |
H A D | QCameraHWI.cpp | 1894 LOGI("%s: Fetching crop info", __func__); 1909 LOGD("%s: Setting crop info for snapshot", __func__); 1913 LOGD("%s: Setting crop info for snapshot", __func__); 1930 LOGI("%s: Fetching crop info", __func__); 1934 v4l2_crop.crop.left, 1935 v4l2_crop.crop.top, 1936 v4l2_crop.crop.width, 1937 v4l2_crop.crop.height); 1940 v4l2_crop.crop.left, 1941 v4l2_crop.crop [all...] |
/hardware/qcom/camera/QCamera/stack/mm-jpeg-interface/inc/ |
H A D | mm_jpeg_interface.h | 112 /* crop information */ 113 image_crop_t crop; member in struct:__anon580
|
/hardware/samsung_slsi/exynos5/libgscaler/ |
H A D | exynos_gsc_utils.h | 116 struct v4l2_crop crop; member in struct:gsc_info
|
H A D | exynos_gscaler.c | 639 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/samsung_slsi/exynos5/libhwc/ |
H A D | hwc.cpp | 202 hwc_rect_t *crop, size_t alignment) 209 if (crop) { 210 crop->left = (w - w_orig) / 2; 211 crop->top = (h - h_orig) / 2; 212 crop->right = crop->left + w_orig; 213 crop->bottom = crop->top + h_orig; 354 /* GSC's dst crop size should be aligned 128Bytes */ 1284 unsigned int crop local 201 align_crop_and_center(T &w, T &h, hwc_rect_t *crop, size_t alignment) argument 1295 unsigned int crop = displayFrame.right - pdev->xres; local 1302 unsigned int crop = -displayFrame.top; local 1313 int crop = displayFrame.bottom - pdev->yres; local [all...] |
/hardware/qcom/camera/QCamera/stack/mm-camera-interface/src/ |
H A D | mm_camera_stream.c | 59 mm_camera_rect_t *crop); 877 mm_camera_rect_t *crop) 886 crop->left = crop_info.c.left; 887 crop->top = crop_info.c.top; 888 crop->width = crop_info.c.width; 889 crop->height = crop_info.c.height; 930 mm_camera_rect_t *crop = (mm_camera_rect_t *)out_value; local 931 rc = mm_stream_get_crop(my_obj, crop); 973 mm_camera_rect_t *crop = (mm_camera_rect_t *)payload->value; local 974 rc = mm_stream_get_crop(my_obj, crop); 876 mm_stream_get_crop(mm_stream_t *my_obj, mm_camera_rect_t *crop) argument 1016 mm_camera_rect_t *crop = (mm_camera_rect_t *)payload->value; local [all...] |
/hardware/ti/omap3/omx/video/src/openmax_il/prepost_processor/src/ |
H A D | OMX_VPP.c | 692 /* 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/samsung_slsi/exynos5/exynos_omx/codecs/exynos_codecs/video/exynos5/mfc_v4l2/dec/src/ |
H A D | ExynosVideoDecoder.c | 750 struct v4l2_crop crop; local 765 memset(&crop, 0, sizeof(crop)); 773 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; 774 if (exynos_v4l2_g_crop(pCtx->hDec, &crop) != 0) { 782 bufferConf->cropRect.nTop = crop.c.top; 783 bufferConf->cropRect.nLeft = crop.c.left; 784 bufferConf->cropRect.nWidth = crop.c.width; 785 bufferConf->cropRect.nHeight = crop.c.height;
|