Lines Matching refs:fb

1374 static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb)  in ivtv_g_fbuf()  argument
1406 fb->capability = V4L2_FBUF_CAP_EXTERNOVERLAY | V4L2_FBUF_CAP_CHROMAKEY | in ivtv_g_fbuf()
1413 fb->fmt.pixelformat = pixel_format[pixfmt]; in ivtv_g_fbuf()
1414 fb->fmt.width = itv->osd_rect.width; in ivtv_g_fbuf()
1415 fb->fmt.height = itv->osd_rect.height; in ivtv_g_fbuf()
1416 fb->fmt.field = V4L2_FIELD_INTERLACED; in ivtv_g_fbuf()
1417 fb->fmt.bytesperline = fb->fmt.width; in ivtv_g_fbuf()
1418 fb->fmt.colorspace = V4L2_COLORSPACE_SMPTE170M; in ivtv_g_fbuf()
1419 fb->fmt.field = V4L2_FIELD_INTERLACED; in ivtv_g_fbuf()
1420 if (fb->fmt.pixelformat != V4L2_PIX_FMT_PAL8) in ivtv_g_fbuf()
1421 fb->fmt.bytesperline *= 2; in ivtv_g_fbuf()
1422 if (fb->fmt.pixelformat == V4L2_PIX_FMT_RGB32 || in ivtv_g_fbuf()
1423 fb->fmt.pixelformat == V4L2_PIX_FMT_YUV32) in ivtv_g_fbuf()
1424 fb->fmt.bytesperline *= 2; in ivtv_g_fbuf()
1425 fb->fmt.sizeimage = fb->fmt.bytesperline * fb->fmt.height; in ivtv_g_fbuf()
1426 fb->base = (void *)itv->osd_video_pbase; in ivtv_g_fbuf()
1427 fb->flags = 0; in ivtv_g_fbuf()
1430 fb->flags |= V4L2_FBUF_FLAG_CHROMAKEY; in ivtv_g_fbuf()
1433 fb->flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA; in ivtv_g_fbuf()
1436 fb->flags |= V4L2_FBUF_FLAG_OVERLAY; in ivtv_g_fbuf()
1446 fb->capability |= V4L2_FBUF_CAP_LOCAL_INV_ALPHA; in ivtv_g_fbuf()
1448 fb->capability |= V4L2_FBUF_CAP_LOCAL_ALPHA; in ivtv_g_fbuf()
1453 fb->flags |= V4L2_FBUF_FLAG_LOCAL_INV_ALPHA; in ivtv_g_fbuf()
1455 fb->flags |= V4L2_FBUF_FLAG_LOCAL_ALPHA; in ivtv_g_fbuf()
1461 static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) in ivtv_s_fbuf() argument
1473 itv->osd_global_alpha_state = (fb->flags & V4L2_FBUF_FLAG_GLOBAL_ALPHA) != 0; in ivtv_s_fbuf()
1475 (fb->flags & (V4L2_FBUF_FLAG_LOCAL_ALPHA|V4L2_FBUF_FLAG_LOCAL_INV_ALPHA)) != 0; in ivtv_s_fbuf()
1476 itv->osd_chroma_key_state = (fb->flags & V4L2_FBUF_FLAG_CHROMAKEY) != 0; in ivtv_s_fbuf()
1478 yi->track_osd = (fb->flags & V4L2_FBUF_FLAG_OVERLAY) != 0; in ivtv_s_fbuf()