Lines Matching refs:pixfmt

58 	struct v4l2_pix_format *pixfmt = &fmt->fmt.pix;  in cx18_g_fmt_vid_cap()  local
60 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
61 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
62 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in cx18_g_fmt_vid_cap()
63 pixfmt->field = V4L2_FIELD_INTERLACED; in cx18_g_fmt_vid_cap()
65 pixfmt->pixelformat = s->pixelformat; in cx18_g_fmt_vid_cap()
66 pixfmt->sizeimage = s->vb_bytes_per_frame; in cx18_g_fmt_vid_cap()
67 pixfmt->bytesperline = s->vb_bytes_per_line; in cx18_g_fmt_vid_cap()
69 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in cx18_g_fmt_vid_cap()
70 pixfmt->sizeimage = 128 * 1024; in cx18_g_fmt_vid_cap()
71 pixfmt->bytesperline = 0; in cx18_g_fmt_vid_cap()
81 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in cx18_try_fmt_vid_cap() local
82 int w = pixfmt->width; in cx18_try_fmt_vid_cap()
83 int h = pixfmt->height; in cx18_try_fmt_vid_cap()
92 if (pixfmt->pixelformat != V4L2_PIX_FMT_NV12_16L16 && in cx18_try_fmt_vid_cap()
93 pixfmt->pixelformat != V4L2_PIX_FMT_UYVY) in cx18_try_fmt_vid_cap()
94 pixfmt->pixelformat = V4L2_PIX_FMT_UYVY; in cx18_try_fmt_vid_cap()
101 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12_16L16) { in cx18_try_fmt_vid_cap()
102 pixfmt->sizeimage = h * 720 * 3 / 2; in cx18_try_fmt_vid_cap()
103 pixfmt->bytesperline = 720; /* First plane */ in cx18_try_fmt_vid_cap()
105 pixfmt->sizeimage = h * 720 * 2; in cx18_try_fmt_vid_cap()
106 pixfmt->bytesperline = 1440; /* Packed */ in cx18_try_fmt_vid_cap()
109 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in cx18_try_fmt_vid_cap()
110 pixfmt->sizeimage = 128 * 1024; in cx18_try_fmt_vid_cap()
111 pixfmt->bytesperline = 0; in cx18_try_fmt_vid_cap()
114 pixfmt->width = w; in cx18_try_fmt_vid_cap()
115 pixfmt->height = h; in cx18_try_fmt_vid_cap()
116 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in cx18_try_fmt_vid_cap()
117 pixfmt->field = V4L2_FIELD_INTERLACED; in cx18_try_fmt_vid_cap()