Lines Matching refs:fmt
86 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_get_format() argument
92 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
93 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
94 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
95 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_get_format()
96 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
97 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
98 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in uvc_v4l2_get_format()
99 fmt->fmt.pix.priv = 0; in uvc_v4l2_get_format()
105 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt) in uvc_v4l2_set_format() argument
117 if (format->fcc == fmt->fmt.pix.pixelformat) in uvc_v4l2_set_format()
123 fmt->fmt.pix.pixelformat); in uvc_v4l2_set_format()
127 bpl = format->bpp * fmt->fmt.pix.width / 8; in uvc_v4l2_set_format()
128 imagesize = bpl ? bpl * fmt->fmt.pix.height : fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
132 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
133 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
136 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_set_format()
137 fmt->fmt.pix.bytesperline = bpl; in uvc_v4l2_set_format()
138 fmt->fmt.pix.sizeimage = imagesize; in uvc_v4l2_set_format()
139 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in uvc_v4l2_set_format()
140 fmt->fmt.pix.priv = 0; in uvc_v4l2_set_format()