Lines Matching refs:crop
514 struct v4l2_rect *crop = &vout->crop; in omap_vout_calculate_offset() local
553 ctop = (pix->height - crop->height) - crop->top; in omap_vout_calculate_offset()
554 cleft = (pix->width - crop->width) - crop->left; in omap_vout_calculate_offset()
566 temp_ps * cleft + crop->top * temp_ps; in omap_vout_calculate_offset()
569 cleft + crop->top * temp_ps + (line_length * in omap_vout_calculate_offset()
570 ((crop->width / (vr_ps)) - 1) * ps); in omap_vout_calculate_offset()
585 (crop->height - 1) * ps); in omap_vout_calculate_offset()
594 temp_ps * crop->left + ctop * ps; in omap_vout_calculate_offset()
597 temp_ps * crop->left + ctop * ps + in omap_vout_calculate_offset()
598 (line_length * ((crop->width / vr_ps) - 1) * in omap_vout_calculate_offset()
605 crop->top + (crop->left / vr_ps) * ps; in omap_vout_calculate_offset()
608 crop->top + (crop->left / vr_ps) * ps + in omap_vout_calculate_offset()
609 (line_length * (crop->height - 1) * ps); in omap_vout_calculate_offset()
613 *cropped_offset = (line_length * ps * crop->top) / in omap_vout_calculate_offset()
614 vr_ps + (crop->left * ps) / vr_ps + in omap_vout_calculate_offset()
615 ((crop->width / vr_ps) - 1) * ps; in omap_vout_calculate_offset()
691 cropheight = vout->crop.width; in omapvid_setup_overlay()
692 cropwidth = vout->crop.height; in omapvid_setup_overlay()
696 cropheight = vout->crop.height; in omapvid_setup_overlay()
697 cropwidth = vout->crop.width; in omapvid_setup_overlay()
1476 omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); in vidioc_s_fmt_vid_out()
1524 ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); in vidioc_s_fmt_vid_overlay()
1600 static int vidioc_g_crop(struct file *file, void *fh, struct v4l2_crop *crop) in vidioc_g_crop() argument
1604 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in vidioc_g_crop()
1606 crop->c = vout->crop; in vidioc_g_crop()
1610 static int vidioc_s_crop(struct file *file, void *fh, struct v4l2_crop *crop) in vidioc_s_crop() argument
1640 if (crop->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) in vidioc_s_crop()
1641 ret = omap_vout_new_crop(&vout->pix, &vout->crop, &vout->win, in vidioc_s_crop()
1642 &vout->fbuf, &crop->c); in vidioc_s_crop()
2204 omap_vout_new_format(pix, &vout->fbuf, &vout->crop, &vout->win); in omap_vout_setup_video_data()