Lines Matching defs:fmt
53 struct v4l2_format *fmt)
58 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix;
77 struct v4l2_format *fmt)
81 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix;
122 struct v4l2_format *fmt)
133 ret = cx18_try_fmt_vid_cap(file, fh, fmt);
136 w = fmt->fmt.pix.width;
137 h = fmt->fmt.pix.height;
140 s->pixelformat == fmt->fmt.pix.pixelformat)
146 s->pixelformat = fmt->fmt.pix.pixelformat;
147 s->vb_bytes_per_frame = fmt->fmt.pix.sizeimage;
148 s->vb_bytes_per_line = fmt->fmt.pix.bytesperline;
154 return cx18_g_fmt_vid_cap(file, fh, fmt);
215 * Expand the service_set of *fmt into valid service_lines for the std,
216 * and clear the passed in fmt->service_set
218 void cx18_expand_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
220 u16 set = fmt->service_set;
223 fmt->service_set = 0;
226 fmt->service_lines[f][l] = select_service_from_set(f, l, set, is_pal);
231 * Sanitize the service_lines in *fmt per the video std, and return 1
234 static int check_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
241 fmt->service_lines[f][l] = select_service_from_set(f, l, fmt->service_lines[f][l], is_pal);
242 set |= fmt->service_lines[f][l];
248 /* Compute the service_set from the assumed valid service_lines of *fmt */
249 u16 cx18_get_service_set(struct v4l2_sliced_vbi_format *fmt)
256 set |= fmt->service_lines[f][l];
262 struct v4l2_format *fmt)
265 struct v4l2_vbi_format *vbifmt = &fmt->fmt.vbi;
281 struct v4l2_format *fmt)
284 struct v4l2_sliced_vbi_format *vbifmt = &fmt->fmt.sliced;
296 * fmt->fmt.sliced under valid calling conditions
298 if (v4l2_subdev_call(cx->sd_av, vbi, g_sliced_fmt, &fmt->fmt.sliced))
306 struct v4l2_format *fmt)
308 return cx18_g_fmt_vbi_cap(file, fh, fmt);
312 struct v4l2_format *fmt)
315 struct v4l2_sliced_vbi_format *vbifmt = &fmt->fmt.sliced;
331 struct v4l2_format *fmt)
346 * Note cx18_av_vbi_wipes out a lot of the passed in fmt under valid
349 ret = v4l2_subdev_call(cx->sd_av, vbi, s_raw_fmt, &fmt->fmt.vbi);
357 return cx18_g_fmt_vbi_cap(file, fh, fmt);
361 struct v4l2_format *fmt)
366 struct v4l2_sliced_vbi_format *vbifmt = &fmt->fmt.sliced;
368 cx18_try_fmt_sliced_vbi_cap(file, fh, fmt);
380 * passed in fmt->fmt.sliced under valid calling conditions
382 ret = v4l2_subdev_call(cx->sd_av, vbi, s_sliced_fmt, &fmt->fmt.sliced);
500 struct v4l2_fmtdesc *fmt)
505 if (fmt->index >= ARRAY_SIZE(cx18_formats_yuv))
507 *fmt = cx18_formats_yuv[fmt->index];
510 if (fmt->index)
512 *fmt = cx18_formats_mpeg[0];