Lines Matching refs:tpg

87 	unsigned buffers = tpg_g_buffers(&dev->tpg);  in vid_cap_queue_setup()
116 if (sizes[p] < tpg_g_line_width(&dev->tpg, p) * h + in vid_cap_queue_setup()
122 sizes[p] = (tpg_g_line_width(&dev->tpg, p) * h) / in vid_cap_queue_setup()
143 unsigned buffers = tpg_g_buffers(&dev->tpg); in vid_cap_buf_prepare()
160 size = (tpg_g_line_width(&dev->tpg, p) * in vid_cap_buf_prepare()
229 dev->must_blank[i] = tpg_g_perc_fill(&dev->tpg) < 100; in vid_cap_start_streaming()
291 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality()
296 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality()
301 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, 0); in vivid_update_quality()
305 tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); in vivid_update_quality()
317 tpg_s_quality(&dev->tpg, TPG_QUAL_NOISE, in vivid_update_quality()
322 tpg_s_quality(&dev->tpg, TPG_QUAL_GRAY, 0); in vivid_update_quality()
324 tpg_s_quality(&dev->tpg, TPG_QUAL_COLOR, 0); in vivid_update_quality()
336 if (tpg_g_quality(&dev->tpg) == TPG_QUAL_COLOR || in vivid_get_quality()
337 tpg_g_quality(&dev->tpg) == TPG_QUAL_NOISE) in vivid_get_quality()
338 return tpg_g_quality(&dev->tpg); in vivid_get_quality()
395 tpg_s_rgb_range(&dev->tpg, V4L2_DV_RGB_RANGE_AUTO); in vivid_update_format_cap()
410 tpg_s_rgb_range(&dev->tpg, V4L2_DV_RGB_RANGE_AUTO); in vivid_update_format_cap()
447 tpg_s_rgb_range(&dev->tpg, v4l2_ctrl_g_ctrl(dev->rgb_range_cap)); in vivid_update_format_cap()
453 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
466 tpg_s_video_aspect(&dev->tpg, vivid_get_video_aspect(dev)); in vivid_update_format_cap()
467 tpg_s_pixel_aspect(&dev->tpg, vivid_get_pixel_aspect(dev)); in vivid_update_format_cap()
468 tpg_update_mv_step(&dev->tpg); in vivid_update_format_cap()
509 return tpg_g_colorspace(&dev->tpg); in vivid_colorspace_cap()
516 return tpg_g_xfer_func(&dev->tpg); in vivid_xfer_func_cap()
523 return tpg_g_ycbcr_enc(&dev->tpg); in vivid_ycbcr_enc_cap()
530 return tpg_g_hsv_enc(&dev->tpg); in vivid_hsv_enc_cap()
537 return tpg_g_quantization(&dev->tpg); in vivid_quantization_cap()
561 mp->plane_fmt[p].bytesperline = tpg_g_bytesperline(&dev->tpg, p); in vivid_g_fmt_vid_cap()
563 (tpg_g_line_width(&dev->tpg, p) * mp->height) / in vivid_g_fmt_vid_cap()
795 tpg_s_buf_height(&dev->tpg, mp->height); in vivid_s_fmt_vid_cap()
796 tpg_s_fourcc(&dev->tpg, dev->fmt_cap->fourcc); in vivid_s_fmt_vid_cap()
797 for (p = 0; p < tpg_g_buffers(&dev->tpg); p++) in vivid_s_fmt_vid_cap()
798 tpg_s_bytesperline(&dev->tpg, p, mp->plane_fmt[p].bytesperline); in vivid_s_fmt_vid_cap()
801 tpg_s_field(&dev->tpg, V4L2_FIELD_TOP, true); in vivid_s_fmt_vid_cap()
803 tpg_s_field(&dev->tpg, dev->field_cap, false); in vivid_s_fmt_vid_cap()
804 tpg_s_crop_compose(&dev->tpg, &dev->crop_cap, &dev->compose_cap); in vivid_s_fmt_vid_cap()
807 tpg_update_mv_step(&dev->tpg); in vivid_s_fmt_vid_cap()
808 dev->tpg.colorspace = mp->colorspace; in vivid_s_fmt_vid_cap()
809 dev->tpg.xfer_func = mp->xfer_func; in vivid_s_fmt_vid_cap()
811 dev->tpg.ycbcr_enc = mp->ycbcr_enc; in vivid_s_fmt_vid_cap()
813 dev->tpg.hsv_enc = mp->hsv_enc; in vivid_s_fmt_vid_cap()
814 dev->tpg.quantization = mp->quantization; in vivid_s_fmt_vid_cap()
979 tpg_s_buf_height(&dev->tpg, fmt.height); in vivid_vid_cap_s_selection()
988 tpg_s_buf_height(&dev->tpg, fmt.height); in vivid_vid_cap_s_selection()
998 tpg_s_buf_height(&dev->tpg, dev->fmt_cap_rect.height); in vivid_vid_cap_s_selection()
1060 tpg_s_crop_compose(&dev->tpg, crop, compose); in vivid_vid_cap_s_selection()
1374 switch (tpg_g_quality(&dev->tpg)) { in vidioc_enum_input()
1650 if (vivid_is_tv_cap(dev) && tpg_g_quality(&dev->tpg) == TPG_QUAL_NOISE) { in vidioc_querystd()