Lines Matching defs:fmt
25 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
1470 unsigned int size = btv->fmt->depth * btv->width * btv->height >> 3;
1506 unsigned int size = (btv->fmt->depth * btv->width * btv->height) >> 3;
1970 const struct bttv_format * fmt,
1977 if (fmt->flags & FORMAT_FLAGS_PLANAR) {
1979 f->sizeimage = (width * height * fmt->depth) >> 3;
1981 f->bytesperline = (width * fmt->depth) >> 3;
1991 pix_format_set_size(&f->fmt.pix, btv->fmt, btv->width, btv->height);
1992 f->fmt.pix.field = btv->field;
1993 f->fmt.pix.pixelformat = btv->fmt->fourcc;
1994 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1999 static void bttv_get_width_mask_vid_cap(const struct bttv_format *fmt,
2003 if (fmt->flags & FORMAT_FLAGS_PLANAR) {
2015 const struct bttv_format *fmt;
2023 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
2024 if (NULL == fmt)
2027 field = f->fmt.pix.field;
2037 if (!(fmt->flags & FORMAT_FLAGS_PLANAR)) {
2044 field = (f->fmt.pix.height > height2)
2050 width = f->fmt.pix.width;
2051 height = f->fmt.pix.height;
2053 bttv_get_width_mask_vid_cap(fmt, &width_mask, &width_bias);
2060 f->fmt.pix.field = field;
2061 pix_format_set_size(&f->fmt.pix, fmt, width, height);
2062 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
2071 const struct bttv_format *fmt;
2085 width = f->fmt.pix.width;
2086 height = f->fmt.pix.height;
2087 field = f->fmt.pix.field;
2089 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
2090 bttv_get_width_mask_vid_cap(fmt, &width_mask, &width_bias);
2091 retval = limit_scaled_size_lock(btv, &width, &height, f->fmt.pix.field,
2096 f->fmt.pix.field = field;
2099 btv->fmt = fmt;
2100 btv->width = f->fmt.pix.width;
2101 btv->height = f->fmt.pix.height;
2102 btv->field = f->fmt.pix.field;
3331 btv->fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24);