Lines Matching refs:height
41 unsigned h = dev->fmt_out_rect.height; in vid_out_queue_setup()
140 size = dev->bytesperline_out[p] * dev->fmt_out_rect.height + in vid_out_buf_prepare()
230 dev->sink_rect.height = 480; in vivid_update_format_out()
234 dev->sink_rect.height = 576; in vivid_update_format_out()
242 dev->sink_rect.height = bt->height; in vivid_update_format_out()
252 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out()
267 dev->crop_out.height /= 2; in vivid_update_format_out()
303 dev->sink_rect.width == 720 && dev->sink_rect.height <= 576) in vivid_get_pixel_aspect()
304 return dev->sink_rect.height == 480 ? in vivid_get_pixel_aspect()
319 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out()
329 mp->plane_fmt[p].bytesperline * mp->height; in vivid_g_fmt_vid_out()
335 (stride * mp->height) / fmt->vdownsampling[p]; in vivid_g_fmt_vid_out()
367 h = dev->sink_rect.height; in vivid_try_fmt_vid_out()
373 mp->height = h / factor; in vivid_try_fmt_vid_out()
375 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
389 mp->height = r.height / factor; in vivid_try_fmt_vid_out()
404 pfmt[p].sizeimage = pfmt[p].bytesperline * mp->height; in vivid_try_fmt_vid_out()
418 } else if (bt->width == 720 && bt->height <= 576) { in vivid_try_fmt_vid_out()
449 mp->height != dev->fmt_out_rect.height || in vivid_s_fmt_vid_out()
469 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
480 factor * r.height / MAX_ZOOM in vivid_s_fmt_vid_out()
485 factor * r.height * MAX_ZOOM in vivid_s_fmt_vid_out()
495 factor * crop->height / MAX_ZOOM in vivid_s_fmt_vid_out()
500 factor * crop->height * MAX_ZOOM in vivid_s_fmt_vid_out()
509 r.height *= factor; in vivid_s_fmt_vid_out()
514 r.height /= factor; in vivid_s_fmt_vid_out()
517 r.height *= factor; in vivid_s_fmt_vid_out()
521 crop->height *= factor; in vivid_s_fmt_vid_out()
525 crop->height /= factor; in vivid_s_fmt_vid_out()
528 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
531 r.height /= factor; in vivid_s_fmt_vid_out()
536 dev->fmt_out_rect.height = mp->height; in vivid_s_fmt_vid_out()
688 (dev->sink_rect.height / factor) * MAX_ZOOM in vivid_vid_out_s_selection()
696 (s->r.height * factor) / MAX_ZOOM in vivid_vid_out_s_selection()
701 (s->r.height * factor) * MAX_ZOOM in vivid_vid_out_s_selection()
710 s->r.height *= factor; in vivid_vid_out_s_selection()
715 s->r.height /= factor; in vivid_vid_out_s_selection()
718 s->r.height /= factor; in vivid_vid_out_s_selection()
733 s->r.height /= factor; in vivid_vid_out_s_selection()
739 s->r.height * MAX_ZOOM in vivid_vid_out_s_selection()
744 s->r.height / MAX_ZOOM in vivid_vid_out_s_selection()
774 crop->height /= factor; in vivid_vid_out_s_selection()
778 s->r.height *= factor; in vivid_vid_out_s_selection()
780 compose->height != s->r.height)) { in vivid_vid_out_s_selection()
831 win->w.height = compose->height; in vidioc_g_fmt_vid_out_overlay()
842 ((dev->compose_out.width + 7) / 8) * dev->compose_out.height)) in vidioc_g_fmt_vid_out_overlay()
868 win->w.height = compose->height; in vidioc_try_fmt_vid_out_overlay()
886 r->height = clamp_t(s32, r->height, 1, dev->display_height - r->top); in vidioc_try_fmt_vid_out_overlay()
918 unsigned bitmap_size = ((compose->width + 7) / 8) * compose->height; in vidioc_s_fmt_vid_out_overlay()
973 a->fmt.height = dev->display_height; in vivid_vid_out_g_fbuf()
979 a->fmt.sizeimage = a->fmt.height * a->fmt.bytesperline; in vivid_vid_out_g_fbuf()