Lines Matching refs:v4lfmt
38 v4l2_format v4lfmt { }; in v4l2_set_format() local
40 v4lfmt.type = buf_type; in v4l2_set_format()
41 r = ioctl(fd, VIDIOC_G_FMT, &v4lfmt); in v4l2_set_format()
49 v4l2_pix_format_mplane& mp = v4lfmt.fmt.pix_mp; in v4l2_set_format()
65 r = ioctl(fd, VIDIOC_S_FMT, &v4lfmt); in v4l2_set_format()
84 v4lfmt.fmt.pix.pixelformat = (uint32_t)fmt; in v4l2_set_format()
85 v4lfmt.fmt.pix.width = width; in v4l2_set_format()
86 v4lfmt.fmt.pix.height = height; in v4l2_set_format()
87 v4lfmt.fmt.pix.bytesperline = width * pfi.planes[0].bitspp / 8; in v4l2_set_format()
89 r = ioctl(fd, VIDIOC_S_FMT, &v4lfmt); in v4l2_set_format()
92 ASSERT(v4lfmt.fmt.pix.pixelformat == (uint32_t)fmt); in v4l2_set_format()
93 ASSERT(v4lfmt.fmt.pix.width == width); in v4l2_set_format()
94 ASSERT(v4lfmt.fmt.pix.height == height); in v4l2_set_format()
95 ASSERT(v4lfmt.fmt.pix.bytesperline == width * pfi.planes[0].bitspp / 8); in v4l2_set_format()