Lines Matching refs:pix_mp
22 u32 fourcc = ctx->coded_fmt.fmt.pix_mp.pixelformat;
52 const struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
55 dprintk(ctx->dev, "width: %d\n", pix_mp->width);
56 dprintk(ctx->dev, "height: %d\n", pix_mp->height);
58 pix_mp->pixelformat,
59 (pix_mp->pixelformat >> 8) & 0xff,
60 (pix_mp->pixelformat >> 16) & 0xff,
61 (pix_mp->pixelformat >> 24) & 0xff);
63 dprintk(ctx->dev, "field: %d\n", pix_mp->field);
64 dprintk(ctx->dev, "colorspace: %d\n", pix_mp->colorspace);
65 dprintk(ctx->dev, "num_planes: %d\n", pix_mp->num_planes);
66 dprintk(ctx->dev, "flags: %d\n", pix_mp->flags);
67 dprintk(ctx->dev, "quantization: %d\n", pix_mp->quantization);
68 dprintk(ctx->dev, "xfer_func: %d\n", pix_mp->xfer_func);
70 for (i = 0; i < pix_mp->num_planes; i++) {
72 "plane[%d]: sizeimage: %d\n", i, pix_mp->plane_fmt[i].sizeimage);
74 "plane[%d]: bytesperline: %d\n", i, pix_mp->plane_fmt[i].bytesperline);
83 u32 width = ctx->decoded_fmt.fmt.pix_mp.width;
84 u32 height = ctx->decoded_fmt.fmt.pix_mp.height;
85 struct v4l2_pix_format_mplane *f = &ctx->decoded_fmt.fmt.pix_mp;
240 f->fmt.pix_mp.pixelformat = fourcc;
241 f->fmt.pix_mp.field = V4L2_FIELD_NONE;
242 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709;
243 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
244 f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT;
245 f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT;
251 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
257 f->fmt.pix_mp.width = ctx->coded_format_desc->frmsize.min_width;
258 f->fmt.pix_mp.height = ctx->coded_format_desc->frmsize.min_height;
260 pix_mp->num_planes = 1;
261 pix_mp->plane_fmt[0].sizeimage = pix_mp->width * pix_mp->height * 8;
278 v4l2_fill_pixfmt_mp(&f->fmt.pix_mp,
280 ctx->coded_fmt.fmt.pix_mp.width,
281 ctx->coded_fmt.fmt.pix_mp.height);
365 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
373 if (coded_desc->decoded_fmts[i] == pix_mp->pixelformat)
378 pix_mp->pixelformat = coded_desc->decoded_fmts[0];
380 v4l2_apply_frmsize_constraints(&pix_mp->width,
381 &pix_mp->height,
384 v4l2_fill_pixfmt_mp(pix_mp, pix_mp->pixelformat,
385 pix_mp->width, pix_mp->height);
387 pix_mp->field = V4L2_FIELD_NONE;
395 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;
398 coded_desc = visl_find_coded_fmt_desc(pix_mp->pixelformat);
400 pix_mp->pixelformat = visl_coded_fmts[0].pixelformat;
404 v4l2_apply_frmsize_constraints(&pix_mp->width,
405 &pix_mp->height,
408 pix_mp->field = V4L2_FIELD_NONE;
409 pix_mp->num_planes = 1;
411 if (pix_mp->plane_fmt[0].sizeimage == 0)
412 pix_mp->plane_fmt[0].sizeimage = max(MIN_CODED_SZ,
413 pix_mp->width * pix_mp->height * 3);
438 desc = visl_find_coded_fmt_desc(f->fmt.pix_mp.pixelformat);
446 ctx->decoded_fmt.fmt.pix_mp.colorspace = f->fmt.pix_mp.colorspace;
447 ctx->decoded_fmt.fmt.pix_mp.xfer_func = f->fmt.pix_mp.xfer_func;
448 ctx->decoded_fmt.fmt.pix_mp.ycbcr_enc = f->fmt.pix_mp.ycbcr_enc;
449 ctx->decoded_fmt.fmt.pix_mp.quantization = f->fmt.pix_mp.quantization;
555 if (*num_planes != f->fmt.pix_mp.num_planes)
558 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) {
559 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage)
563 *num_planes = f->fmt.pix_mp.num_planes;
564 for (i = 0; i < f->fmt.pix_mp.num_planes; i++)
565 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage;
571 for (i = 0; i < f->fmt.pix_mp.num_planes; i++)
573 i, f->fmt.pix_mp.plane_fmt[i].sizeimage);