Searched refs:pix_mp (Results 1 - 25 of 66) sorted by relevance

123

/linux-master/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-regs.c51 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
56 switch (pix_mp->colorspace) {
61 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE)
65 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE)
69 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE)
134 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
141 fmt = mdp_find_fmt(mdp->mdp_data, pix_mp->pixelformat, f->type);
146 (pix_mp
385 struct v4l2_pix_format_mplane *pix_mp = &frame->format.fmt.pix_mp; local
[all...]
H A Dmtk-mdp3-m2m.c208 struct v4l2_pix_format_mplane *pix_mp; local
211 pix_mp = &ctx_get_frame(ctx, q->type)->format.fmt.pix_mp;
215 if (*num_planes != pix_mp->num_planes)
217 for (i = 0; i < pix_mp->num_planes; ++i)
218 if (sizes[i] < pix_mp->plane_fmt[i].sizeimage)
221 *num_planes = pix_mp->num_planes;
222 for (i = 0; i < pix_mp->num_planes; ++i)
223 sizes[i] = pix_mp->plane_fmt[i].sizeimage;
232 struct v4l2_pix_format_mplane *pix_mp; local
300 struct v4l2_pix_format_mplane *pix_mp; local
[all...]
/linux-master/drivers/media/test-drivers/visl/
H A Dvisl-video.c22 u32 fourcc = ctx->coded_fmt.fmt.pix_mp.pixelformat;
55 const struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
58 dprintk(ctx->dev, "width: %d\n", pix_mp->width);
59 dprintk(ctx->dev, "height: %d\n", pix_mp->height);
61 pix_mp->pixelformat,
62 (pix_mp->pixelformat >> 8) & 0xff,
63 (pix_mp->pixelformat >> 16) & 0xff,
64 (pix_mp->pixelformat >> 24) & 0xff);
66 dprintk(ctx->dev, "field: %d\n", pix_mp
269 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
383 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
413 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c34 struct v4l2_pix_format_mplane *pix_mp,
37 struct v4l2_pix_format_mplane *pix_mp);
272 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
277 *pix_mp = ctx->src_fmt;
285 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
290 *pix_mp = ctx->dst_fmt;
296 struct v4l2_pix_format_mplane *pix_mp,
307 (pix_mp
295 hantro_try_fmt(const struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp, enum v4l2_buf_type type) argument
503 hantro_set_fmt_out(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp, bool need_postproc) argument
566 hantro_set_fmt_cap(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp) argument
[all...]
H A Dhantro_postproc.c197 struct v4l2_pix_format_mplane pix_mp; local
206 v4l2_fill_pixfmt_mp(&pix_mp, fmt->fourcc, ctx->src_fmt.width,
209 buf_size = pix_mp.plane_fmt[0].sizeimage;
211 buf_size += hantro_h264_mv_size(pix_mp.width,
212 pix_mp.height);
214 buf_size += hantro_vp9_mv_size(pix_mp.width,
215 pix_mp.height);
217 buf_size += hantro_hevc_mv_size(pix_mp.width,
218 pix_mp.height);
220 buf_size += hantro_av1_mv_size(pix_mp
[all...]
/linux-master/drivers/staging/media/rkvdec/
H A Drkvdec.c166 f->fmt.pix_mp.pixelformat = fourcc;
167 f->fmt.pix_mp.field = V4L2_FIELD_NONE;
168 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709;
169 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
170 f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT;
171 f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT;
182 f->fmt.pix_mp.width = ctx->coded_fmt_desc->frmsize.min_width;
183 f->fmt.pix_mp.height = ctx->coded_fmt_desc->frmsize.min_height;
195 v4l2_fill_pixfmt_mp(&f->fmt.pix_mp,
197 ctx->coded_fmt.fmt.pix_mp
238 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
281 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/chips-media/wave5/
H A Dwave5-helper.c140 f->fmt.pix_mp.width = inst->src_fmt.width;
141 f->fmt.pix_mp.height = inst->src_fmt.height;
142 f->fmt.pix_mp.pixelformat = inst->src_fmt.pixelformat;
143 f->fmt.pix_mp.field = inst->src_fmt.field;
144 f->fmt.pix_mp.flags = inst->src_fmt.flags;
145 f->fmt.pix_mp.num_planes = inst->src_fmt.num_planes;
146 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) {
147 f->fmt.pix_mp.plane_fmt[i].bytesperline = inst->src_fmt.plane_fmt[i].bytesperline;
148 f->fmt.pix_mp.plane_fmt[i].sizeimage = inst->src_fmt.plane_fmt[i].sizeimage;
151 f->fmt.pix_mp
[all...]
H A Dwave5-vpu-dec.c236 static void wave5_update_pix_fmt(struct v4l2_pix_format_mplane *pix_mp, unsigned int width, argument
239 switch (pix_mp->pixelformat) {
243 pix_mp->width = round_up(width, 32);
244 pix_mp->height = round_up(height, 16);
245 pix_mp->plane_fmt[0].bytesperline = round_up(width, 32);
246 pix_mp->plane_fmt[0].sizeimage = width * height * 3 / 2;
251 pix_mp->width = round_up(width, 32);
252 pix_mp->height = round_up(height, 16);
253 pix_mp->plane_fmt[0].bytesperline = round_up(width, 32);
254 pix_mp
[all...]
H A Dwave5-vpu-enc.c108 static void wave5_update_pix_fmt(struct v4l2_pix_format_mplane *pix_mp, unsigned int width, argument
111 switch (pix_mp->pixelformat) {
115 pix_mp->width = width;
116 pix_mp->height = height;
117 pix_mp->plane_fmt[0].bytesperline = round_up(width, 32);
118 pix_mp->plane_fmt[0].sizeimage = round_up(width, 32) * height * 3 / 2;
121 pix_mp->width = width;
122 pix_mp->height = height;
123 pix_mp->plane_fmt[0].bytesperline = round_up(width, 32);
124 pix_mp
[all...]
/linux-master/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c99 if (*num_planes != f->fmt.pix_mp.num_planes)
102 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) {
103 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage)
107 *num_planes = f->fmt.pix_mp.num_planes;
109 for (i = 0; i < f->fmt.pix_mp.num_planes; i++)
110 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage;
229 pixfmt = &ctx->coded_fmt.fmt.pix_mp;
232 pixfmt = &ctx->decoded_fmt.fmt.pix_mp;
411 f->fmt.pix_mp.pixelformat = fourcc;
412 f->fmt.pix_mp
536 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
635 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_m2m.c178 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
184 fmt = mtk_mdp_find_fmt(pix_mp->pixelformat, f->type);
190 pix_mp->pixelformat);
194 pix_mp->field = V4L2_FIELD_NONE;
195 pix_mp->pixelformat = fmt->pixelformat;
197 pix_mp->colorspace = ctx->colorspace;
198 pix_mp->xfer_func = ctx->xfer_func;
199 pix_mp->ycbcr_enc = ctx->ycbcr_enc;
200 pix_mp
634 struct v4l2_pix_format_mplane *pix_mp; local
684 struct v4l2_pix_format_mplane *pix_mp; local
[all...]
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec.c29 if (fmt->fourcc == f->fmt.pix_mp.pixelformat)
244 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp;
325 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp;
420 struct v4l2_pix_format_mplane *pix_mp; local
432 pix_mp = &f->fmt.pix_mp;
472 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage;
473 q_data->coded_width = pix_mp->width;
474 q_data->coded_height = pix_mp->height;
476 ctx->colorspace = pix_mp
628 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/qcom/camss/
H A Dcamss-video.c363 format->fmt.pix_mp.pixelformat,
370 return video_mbus_to_pix_mp(&fmt.format, &format->fmt.pix_mp,
384 &video->active_fmt.fmt.pix_mp;
413 &video->active_fmt.fmt.pix_mp;
441 &video->active_fmt.fmt.pix_mp;
468 struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp;
470 struct v4l2_pix_format_mplane *sd_pix = &format.fmt.pix_mp;
482 pix->field != format.fmt.pix_mp.field)
699 struct v4l2_pix_format_mplane *pix_mp; local
708 pix_mp
[all...]
/linux-master/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_core.c259 static int mtk_jpeg_try_fmt_mplane(struct v4l2_pix_format_mplane *pix_mp, argument
264 pix_mp->field = V4L2_FIELD_NONE;
266 pix_mp->num_planes = fmt->colplanes;
267 pix_mp->pixelformat = fmt->fourcc;
270 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0];
272 pix_mp->height = clamp(pix_mp->height, MTK_JPEG_MIN_HEIGHT,
274 pix_mp->width = clamp(pix_mp->width, MTK_JPEG_MIN_WIDTH,
286 pix_mp
307 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
414 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-core.c392 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
398 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height);
400 fmt = find_fmt(&pix_mp->pixelformat, NULL, 0);
403 pix_mp->pixelformat);
407 if (pix_mp->field == V4L2_FIELD_ANY)
408 pix_mp->field = V4L2_FIELD_NONE;
409 else if (pix_mp->field != V4L2_FIELD_NONE) {
410 pr_debug("Not supported field order(%d)\n", pix_mp
480 struct v4l2_pix_format_mplane *pix_mp; local
[all...]
/linux-master/drivers/media/test-drivers/vicodec/
H A Dvicodec-core.c763 struct v4l2_pix_format_mplane *pix_mp; local
797 pix_mp = &f->fmt.pix_mp;
798 pix_mp->width = q_data->coded_width;
799 pix_mp->height = q_data->coded_height;
800 pix_mp->field = V4L2_FIELD_NONE;
801 pix_mp->pixelformat = info->id;
802 pix_mp->num_planes = 1;
803 pix_mp->plane_fmt[0].bytesperline =
805 pix_mp
831 struct v4l2_pix_format_mplane *pix_mp; local
894 struct v4l2_pix_format_mplane *pix_mp; local
931 struct v4l2_pix_format_mplane *pix_mp; local
973 struct v4l2_pix_format_mplane *pix_mp; local
1062 struct v4l2_pix_format_mplane *pix_mp; local
[all...]
/linux-master/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_dec.c185 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat &&
349 struct v4l2_pix_format_mplane *pix_mp; local
352 pix_mp = &f->fmt.pix_mp;
369 pix_mp->width = ctx->buf_width;
370 pix_mp->height = ctx->buf_height;
371 pix_mp->field = V4L2_FIELD_NONE;
372 pix_mp->num_planes = ctx->dst_fmt->num_planes;
375 pix_mp->pixelformat = ctx->dst_fmt->fourcc;
376 pix_mp
447 struct v4l2_pix_format_mplane *pix_mp; local
[all...]
/linux-master/drivers/media/platform/amphion/
H A Dvdec.c368 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
386 f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries;
387 f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars;
388 f->fmt.pix_mp.ycbcr_enc = vdec->codec_info.matrix_coeffs;
389 f->fmt.pix_mp.quantization = vdec->codec_info.full_range;
406 f->fmt.pix_mp.pixelformat))
407 f->fmt.pix_mp.pixelformat = cap_fmt->pixfmt;
413 f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries;
414 f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars;
415 f->fmt.pix_mp
[all...]
H A Dvenc.c180 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
197 f->fmt.pix_mp.colorspace = venc->params.color.primaries;
198 f->fmt.pix_mp.xfer_func = venc->params.color.transfer;
199 f->fmt.pix_mp.ycbcr_enc = venc->params.color.matrix;
200 f->fmt.pix_mp.quantization = venc->params.color.full_range;
222 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
253 venc->params.color.primaries = pix_mp->colorspace;
254 venc->params.color.transfer = pix_mp->xfer_func;
255 venc->params.color.matrix = pix_mp
[all...]
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.c285 f->fmt.pix_mp.field = V4L2_FIELD_NONE;
286 f->fmt.pix_mp.num_planes = 1;
287 f->fmt.pix_mp.plane_fmt[0].bytesperline = 0;
288 f->fmt.pix_mp.flags = 0;
297 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp;
444 q_data->coded_width = f->fmt.pix_mp.width;
445 q_data->coded_height = f->fmt.pix_mp.height;
446 q_data->field = f->fmt.pix_mp.field;
448 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) {
451 plane_fmt = &f->fmt.pix_mp
[all...]
/linux-master/drivers/staging/media/ipu3/
H A Dipu3-v4l2.c32 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.width;
34 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.height;
91 &imgu_pipe->nodes[node].vdev_fmt.fmt.pix_mp : NULL;
360 need_bytes = node->vdev_fmt.fmt.pix_mp.plane_fmt[0].sizeimage;
405 size = fmt->fmt.pix_mp.plane_fmt[0].sizeimage;
592 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat &&
715 fmts[i] = &f->fmt.pix_mp;
720 fmts[i] = kmemdup(&imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp,
728 fmts[i] = &imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp;
766 imgu_pipe->nodes[node].vdev_fmt.fmt.pix_mp
801 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
819 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/nxp/imx-jpeg/
H A Dmxc-jpeg.c2266 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
2268 u32 fourcc = f->fmt.pix_mp.pixelformat;
2269 u32 w = (pix_mp->width < MXC_JPEG_MAX_WIDTH) ?
2270 pix_mp->width : MXC_JPEG_MAX_WIDTH;
2271 u32 h = (pix_mp->height < MXC_JPEG_MAX_HEIGHT) ?
2272 pix_mp->height : MXC_JPEG_MAX_HEIGHT;
2286 f->fmt.pix_mp.pixelformat = fourcc;
2290 memset(pix_mp->reserved, 0, sizeof(pix_mp
2387 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
2469 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; local
[all...]
/linux-master/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c136 _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp);
146 _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp);
147 csi->fmt = f->fmt.pix_mp;
157 f->fmt.pix_mp = csi->fmt;
/linux-master/drivers/staging/media/meson/vdec/
H A Dvdec.c496 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
575 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
603 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
627 format.fmt.pix_mp.pixelformat = pixfmt_out;
628 format.fmt.pix_mp.width = orig_pixmp.width;
629 format.fmt.pix_mp.height = orig_pixmp.height;
633 sess->width = format.fmt.pix_mp.width;
634 sess->height = format.fmt.pix_mp.height;
645 format.fmt.pix_mp.pixelformat = pixfmt_cap;
646 format.fmt.pix_mp
[all...]
/linux-master/drivers/media/platform/qcom/venus/
H A Dvdec.c187 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
288 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
324 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;
353 format.fmt.pix_mp.pixelformat = pixfmt_out;
354 format.fmt.pix_mp.width = orig_pixmp.width;
355 format.fmt.pix_mp.height = orig_pixmp.height;
359 inst->out_width = format.fmt.pix_mp.width;
360 inst->out_height = format.fmt.pix_mp.height;
371 format.fmt.pix_mp.pixelformat = pixfmt_cap;
372 format.fmt.pix_mp
[all...]

Completed in 321 milliseconds

123