Lines Matching defs:fmt
25 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
1530 const struct bttv_format *fmt,
1541 if (NULL == fmt)
1543 if (fmt->btformat == BT848_COLOR_FMT_RAW) {
1587 buf->vb.size = (width * height * fmt->depth) >> 3;
1595 buf->tvnorm != norm || buf->fmt != fmt ||
1604 buf->fmt = fmt;
1633 *size = fh->fmt->depth*fh->width*fh->height >> 3;
1648 return bttv_prepare_buffer(q,fh->btv, buf, fh->fmt,
2155 n = btcx_screen_clips(btv->fbuf.fmt.width, btv->fbuf.fmt.height,
2251 const struct bttv_format * fmt,
2258 if (fmt->flags & FORMAT_FLAGS_PLANAR) {
2260 f->sizeimage = (width * height * fmt->depth) >> 3;
2262 f->bytesperline = (width * fmt->depth) >> 3;
2272 pix_format_set_size(&f->fmt.pix, fh->fmt,
2274 f->fmt.pix.field = fh->cap.field;
2275 f->fmt.pix.pixelformat = fh->fmt->fourcc;
2276 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
2286 f->fmt.win.w = fh->ov.w;
2287 f->fmt.win.field = fh->ov.field;
2292 static void bttv_get_width_mask_vid_cap(const struct bttv_format *fmt,
2296 if (fmt->flags & FORMAT_FLAGS_PLANAR) {
2308 const struct bttv_format *fmt;
2317 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
2318 if (NULL == fmt)
2321 field = f->fmt.pix.field;
2331 if (!(fmt->flags & FORMAT_FLAGS_PLANAR)) {
2338 field = (f->fmt.pix.height > height2)
2344 width = f->fmt.pix.width;
2345 height = f->fmt.pix.height;
2347 bttv_get_width_mask_vid_cap(fmt, &width_mask, &width_bias);
2356 f->fmt.pix.field = field;
2357 pix_format_set_size(&f->fmt.pix, fmt, width, height);
2358 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
2368 verify_window_lock(fh, &f->fmt.win,
2378 const struct bttv_format *fmt;
2393 width = f->fmt.pix.width;
2394 height = f->fmt.pix.height;
2395 field = f->fmt.pix.field;
2397 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
2398 bttv_get_width_mask_vid_cap(fmt, &width_mask, &width_bias);
2399 retval = limit_scaled_size_lock(fh, &width, &height, f->fmt.pix.field,
2406 f->fmt.pix.field = field;
2409 fh->fmt = fmt;
2410 fh->cap.field = f->fmt.pix.field;
2412 fh->width = f->fmt.pix.width;
2413 fh->height = f->fmt.pix.height;
2414 btv->init.fmt = fmt;
2415 btv->init.width = f->fmt.pix.width;
2416 btv->init.height = f->fmt.pix.height;
2432 return setup_window_lock(fh, btv, &f->fmt.win, 1);
2531 fb->fmt.pixelformat = fh->ovfmt->fourcc;
2577 const struct bttv_format *fmt;
2585 fmt = format_by_fourcc(fb->fmt.pixelformat);
2586 if (NULL == fmt)
2588 if (0 == (fmt->flags & FORMAT_FLAGS_PACKED))
2593 __s32 width = fb->fmt.width;
2594 __s32 height = fb->fmt.height;
2608 btv->fbuf.fmt.width = fb->fmt.width;
2609 btv->fbuf.fmt.height = fb->fmt.height;
2610 if (0 != fb->fmt.bytesperline)
2611 btv->fbuf.fmt.bytesperline = fb->fmt.bytesperline;
2613 btv->fbuf.fmt.bytesperline = btv->fbuf.fmt.width*fmt->depth/8;
2616 fh->ovfmt = fmt;
2617 btv->init.ovfmt = fmt;
2621 fh->ov.w.width = fb->fmt.width;
2622 fh->ov.w.height = fb->fmt.height;
2623 btv->init.ov.w.width = fb->fmt.width;
2624 btv->init.ov.w.height = fb->fmt.height;
4099 btv->init.fmt = format_by_fourcc(V4L2_PIX_FMT_BGR24);