Home
last modified time | relevance | path

Searched refs:fb_cap (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c704 if (dev->overlay_cap_owner && dev->fb_cap.fmt.pixelformat != mp->pixelformat) { in vivid_s_fmt_vid_cap()
1149 -dev->fb_cap.fmt.width, dev->fb_cap.fmt.width); in vidioc_try_fmt_vid_overlay()
1151 -dev->fb_cap.fmt.height, dev->fb_cap.fmt.height); in vidioc_try_fmt_vid_overlay()
1168 r->top = clamp_t(s32, r->top, 0, dev->fb_cap.fmt.height - 1); in vidioc_try_fmt_vid_overlay()
1169 r->height = clamp_t(s32, r->height, 1, dev->fb_cap.fmt.height - r->top); in vidioc_try_fmt_vid_overlay()
1170 r->left = clamp_t(u32, r->left, 0, dev->fb_cap.fmt.width - 1); in vidioc_try_fmt_vid_overlay()
1171 r->width = clamp_t(u32, r->width, 1, dev->fb_cap.fmt.width - r->left); in vidioc_try_fmt_vid_overlay()
1239 if (i && dev->fb_cap.fmt.pixelformat != dev->fmt_cap->fourcc) { in vivid_vid_cap_overlay()
1258 *a = dev->fb_cap; in vivid_vid_cap_g_fbuf()
1284 dev->fb_cap.base = NULL; in vivid_vid_cap_s_fbuf()
[all …]
Dvivid-kthread-cap.c627 w = dev->fb_cap.fmt.width - x; in vivid_overlay()
634 vbase += dev->overlay_cap_top * dev->fb_cap.fmt.bytesperline; in vivid_overlay()
640 if (y < 0 || y > dev->fb_cap.fmt.height) in vivid_overlay()
645 vbase += dev->fb_cap.fmt.bytesperline; in vivid_overlay()
656 vbase += dev->fb_cap.fmt.bytesperline; in vivid_overlay()
734 if (dev->overlay_cap_owner && dev->fb_cap.base && in vivid_thread_vid_cap_tick()
735 dev->fb_cap.fmt.pixelformat == dev->fmt_cap->fourcc) in vivid_thread_vid_cap_tick()
Dvivid-core.c1896 dev->fb_cap.fmt.width = dev->src_rect.width; in vivid_create_instance()
1897 dev->fb_cap.fmt.height = dev->src_rect.height; in vivid_create_instance()
1898 dev->fb_cap.fmt.pixelformat = dev->fmt_cap->fourcc; in vivid_create_instance()
1899 dev->fb_cap.fmt.bytesperline = dev->src_rect.width * tpg_g_twopixelsize(&dev->tpg, 0) / 2; in vivid_create_instance()
1900 dev->fb_cap.fmt.sizeimage = dev->src_rect.height * dev->fb_cap.fmt.bytesperline; in vivid_create_instance()
Dvivid-core.h349 struct v4l2_framebuffer fb_cap; member