/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
H A D | hantro_v4l2.c | 34 struct v4l2_pix_format_mplane *pix_mp); 36 struct v4l2_pix_format_mplane *pix_mp); 212 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt_out_mplane() local 217 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane() 225 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt_cap_mplane() local 230 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane() 236 struct v4l2_pix_format_mplane *pix_mp, in hantro_try_fmt() 246 (pix_mp in hantro_try_fmt() 235 hantro_try_fmt(const struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp, enum v4l2_buf_type type) hantro_try_fmt() argument 400 hantro_set_fmt_out(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp) hantro_set_fmt_out() argument 470 hantro_set_fmt_cap(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp) hantro_set_fmt_cap() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
H A D | visl-video.c | 22 u32 fourcc = ctx->coded_fmt.fmt.pix_mp.pixelformat; in visl_set_current_codec() 52 const struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in visl_print_fmt() local 55 dprintk(ctx->dev, "width: %d\n", pix_mp->width); in visl_print_fmt() 56 dprintk(ctx->dev, "height: %d\n", pix_mp->height); in visl_print_fmt() 58 pix_mp->pixelformat, in visl_print_fmt() 59 (pix_mp->pixelformat >> 8) & 0xff, in visl_print_fmt() 60 (pix_mp->pixelformat >> 16) & 0xff, in visl_print_fmt() 61 (pix_mp->pixelformat >> 24) & 0xff); in visl_print_fmt() 63 dprintk(ctx->dev, "field: %d\n", pix_mp in visl_print_fmt() 251 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; visl_reset_coded_fmt() local 365 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; visl_try_fmt_vid_cap() local 395 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; visl_try_fmt_vid_out() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
H A D | hantro_v4l2.c | 34 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; in vidioc_g_fmt_out_mplane() local 277 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane() 285 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt_cap_mplane() local 290 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane() 296 struct v4l2_pix_format_mplane *pix_mp, in hantro_try_fmt() 307 (pix_mp in hantro_try_fmt() 295 hantro_try_fmt(const struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp, enum v4l2_buf_type type) hantro_try_fmt() argument 503 hantro_set_fmt_out(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp, bool need_postproc) hantro_set_fmt_out() argument 577 hantro_set_fmt_cap(struct hantro_ctx *ctx, struct v4l2_pix_format_mplane *pix_mp) hantro_set_fmt_cap() argument [all...] |
H A D | hantro_postproc.c | 199 struct v4l2_pix_format_mplane pix_mp; in hantro_postproc_alloc() local 207 v4l2_fill_pixfmt_mp(&pix_mp, fmt->fourcc, ctx->src_fmt.width, in hantro_postproc_alloc() 210 buf_size = pix_mp.plane_fmt[0].sizeimage; in hantro_postproc_alloc() 212 buf_size += hantro_h264_mv_size(pix_mp.width, in hantro_postproc_alloc() 213 pix_mp.height); in hantro_postproc_alloc() 215 buf_size += hantro_vp9_mv_size(pix_mp.width, in hantro_postproc_alloc() 216 pix_mp.height); in hantro_postproc_alloc() 218 buf_size += hantro_hevc_mv_size(pix_mp.width, in hantro_postproc_alloc() 219 pix_mp.height); in hantro_postproc_alloc() 221 buf_size += hantro_av1_mv_size(pix_mp in hantro_postproc_alloc() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-regs.c | 51 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mdp_map_ycbcr_prof_mplane() local 56 switch (pix_mp->colorspace) { in mdp_map_ycbcr_prof_mplane() 61 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane() 65 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane() 69 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane() 134 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mdp_try_fmt_mplane() local 141 fmt = mdp_find_fmt(mdp->mdp_data, pix_mp->pixelformat, f->type); in mdp_try_fmt_mplane() 146 (pix_mp in mdp_try_fmt_mplane() 367 struct v4l2_pix_format_mplane *pix_mp = &frame->format.fmt.pix_mp; mdp_prepare_buffer() local [all...] |
H A D | mtk-mdp3-m2m.c | 193 struct v4l2_pix_format_mplane *pix_mp; in mdp_m2m_queue_setup() local 196 pix_mp = &ctx_get_frame(ctx, q->type)->format.fmt.pix_mp; in mdp_m2m_queue_setup() 200 if (*num_planes != pix_mp->num_planes) in mdp_m2m_queue_setup() 202 for (i = 0; i < pix_mp->num_planes; ++i) in mdp_m2m_queue_setup() 203 if (sizes[i] < pix_mp->plane_fmt[i].sizeimage) in mdp_m2m_queue_setup() 206 *num_planes = pix_mp->num_planes; in mdp_m2m_queue_setup() 207 for (i = 0; i < pix_mp->num_planes; ++i) in mdp_m2m_queue_setup() 208 sizes[i] = pix_mp->plane_fmt[i].sizeimage; in mdp_m2m_queue_setup() 217 struct v4l2_pix_format_mplane *pix_mp; in mdp_m2m_buf_prepare() local 285 struct v4l2_pix_format_mplane *pix_mp; mdp_m2m_g_fmt_mplane() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/nvidia/tegra-vde/ |
H A D | v4l2.c | 99 if (*num_planes != f->fmt.pix_mp.num_planes) in tegra_queue_setup() 102 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { in tegra_queue_setup() 103 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in tegra_queue_setup() 107 *num_planes = f->fmt.pix_mp.num_planes; in tegra_queue_setup() 109 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) in tegra_queue_setup() 110 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in tegra_queue_setup() 229 pixfmt = &ctx->coded_fmt.fmt.pix_mp; in tegra_buf_prepare() 232 pixfmt = &ctx->decoded_fmt.fmt.pix_mp; in tegra_buf_prepare() 411 f->fmt.pix_mp.pixelformat = fourcc; in tegra_reset_fmt() 412 f->fmt.pix_mp in tegra_reset_fmt() 536 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; tegra_try_decoded_fmt() local 635 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; tegra_try_coded_fmt() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-jpeg/ |
H A D | mtk_jpeg_core.c | 262 static int mtk_jpeg_try_fmt_mplane(struct v4l2_pix_format_mplane *pix_mp, in mtk_jpeg_try_fmt_mplane() argument 267 pix_mp->field = V4L2_FIELD_NONE; in mtk_jpeg_try_fmt_mplane() 269 pix_mp->num_planes = fmt->colplanes; in mtk_jpeg_try_fmt_mplane() 270 pix_mp->pixelformat = fmt->fourcc; in mtk_jpeg_try_fmt_mplane() 273 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0]; in mtk_jpeg_try_fmt_mplane() 275 pix_mp->height = clamp(pix_mp->height, MTK_JPEG_MIN_HEIGHT, in mtk_jpeg_try_fmt_mplane() 277 pix_mp->width = clamp(pix_mp->width, MTK_JPEG_MIN_WIDTH, in mtk_jpeg_try_fmt_mplane() 289 pix_mp in mtk_jpeg_try_fmt_mplane() 310 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; mtk_jpeg_g_fmt_vid_mplane() local 417 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; mtk_jpeg_s_fmt_mplane() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.c | 259 static int mtk_jpeg_try_fmt_mplane(struct v4l2_pix_format_mplane *pix_mp, in mtk_jpeg_try_fmt_mplane() argument 264 pix_mp->field = V4L2_FIELD_NONE; in mtk_jpeg_try_fmt_mplane() 266 pix_mp->num_planes = fmt->colplanes; in mtk_jpeg_try_fmt_mplane() 267 pix_mp->pixelformat = fmt->fourcc; in mtk_jpeg_try_fmt_mplane() 270 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0]; in mtk_jpeg_try_fmt_mplane() 272 pix_mp->height = clamp(pix_mp->height, MTK_JPEG_MIN_HEIGHT, in mtk_jpeg_try_fmt_mplane() 274 pix_mp->width = clamp(pix_mp->width, MTK_JPEG_MIN_WIDTH, in mtk_jpeg_try_fmt_mplane() 286 pix_mp in mtk_jpeg_try_fmt_mplane() 307 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; mtk_jpeg_g_fmt_vid_mplane() local 414 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; mtk_jpeg_s_fmt_mplane() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/ |
H A D | mtk_mdp_m2m.c | 178 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mtk_mdp_try_fmt_mplane() local 184 fmt = mtk_mdp_find_fmt(pix_mp->pixelformat, f->type); in mtk_mdp_try_fmt_mplane() 190 pix_mp->pixelformat); in mtk_mdp_try_fmt_mplane() 194 pix_mp->field = V4L2_FIELD_NONE; in mtk_mdp_try_fmt_mplane() 195 pix_mp->pixelformat = fmt->pixelformat; in mtk_mdp_try_fmt_mplane() 197 pix_mp->colorspace = ctx->colorspace; in mtk_mdp_try_fmt_mplane() 198 pix_mp->xfer_func = ctx->xfer_func; in mtk_mdp_try_fmt_mplane() 199 pix_mp->ycbcr_enc = ctx->ycbcr_enc; in mtk_mdp_try_fmt_mplane() 200 pix_mp in mtk_mdp_try_fmt_mplane() 637 struct v4l2_pix_format_mplane *pix_mp; mtk_mdp_m2m_g_fmt_mplane() local 687 struct v4l2_pix_format_mplane *pix_mp; mtk_mdp_m2m_s_fmt_mplane() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/rkvdec/ |
H A D | rkvdec.c | 166 f->fmt.pix_mp.pixelformat = fourcc; in rkvdec_reset_fmt() 167 f->fmt.pix_mp.field = V4L2_FIELD_NONE; in rkvdec_reset_fmt() 168 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709; in rkvdec_reset_fmt() 169 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in rkvdec_reset_fmt() 170 f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT; in rkvdec_reset_fmt() 171 f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT; in rkvdec_reset_fmt() 182 f->fmt.pix_mp.width = ctx->coded_fmt_desc->frmsize.min_width; in rkvdec_reset_coded_fmt() 183 f->fmt.pix_mp.height = ctx->coded_fmt_desc->frmsize.min_height; in rkvdec_reset_coded_fmt() 195 v4l2_fill_pixfmt_mp(&f->fmt.pix_mp, in rkvdec_reset_decoded_fmt() 197 ctx->coded_fmt.fmt.pix_mp in rkvdec_reset_decoded_fmt() 238 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; rkvdec_try_capture_fmt() local 281 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; rkvdec_try_output_fmt() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_m2m.c | 178 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mtk_mdp_try_fmt_mplane() local 184 fmt = mtk_mdp_find_fmt(pix_mp->pixelformat, f->type); in mtk_mdp_try_fmt_mplane() 190 pix_mp->pixelformat); in mtk_mdp_try_fmt_mplane() 194 pix_mp->field = V4L2_FIELD_NONE; in mtk_mdp_try_fmt_mplane() 195 pix_mp->pixelformat = fmt->pixelformat; in mtk_mdp_try_fmt_mplane() 197 pix_mp->colorspace = ctx->colorspace; in mtk_mdp_try_fmt_mplane() 198 pix_mp->xfer_func = ctx->xfer_func; in mtk_mdp_try_fmt_mplane() 199 pix_mp->ycbcr_enc = ctx->ycbcr_enc; in mtk_mdp_try_fmt_mplane() 200 pix_mp in mtk_mdp_try_fmt_mplane() 634 struct v4l2_pix_format_mplane *pix_mp; mtk_mdp_m2m_g_fmt_mplane() local 684 struct v4l2_pix_format_mplane *pix_mp; mtk_mdp_m2m_s_fmt_mplane() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/rkvdec/ |
H A D | rkvdec.c | 131 f->fmt.pix_mp.pixelformat = fourcc; in rkvdec_reset_fmt() 132 f->fmt.pix_mp.field = V4L2_FIELD_NONE; in rkvdec_reset_fmt() 133 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709, in rkvdec_reset_fmt() 134 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in rkvdec_reset_fmt() 135 f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT; in rkvdec_reset_fmt() 136 f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT; in rkvdec_reset_fmt() 147 f->fmt.pix_mp.width = ctx->coded_fmt_desc->frmsize.min_width; in rkvdec_reset_coded_fmt() 148 f->fmt.pix_mp.height = ctx->coded_fmt_desc->frmsize.min_height; in rkvdec_reset_coded_fmt() 160 v4l2_fill_pixfmt_mp(&f->fmt.pix_mp, in rkvdec_reset_decoded_fmt() 162 ctx->coded_fmt.fmt.pix_mp in rkvdec_reset_decoded_fmt() 203 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; rkvdec_try_capture_fmt() local 244 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; rkvdec_try_output_fmt() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 311 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 318 return video_mbus_to_pix_mp(&fmt.format, &format->fmt.pix_mp, in video_get_subdev_format() 332 &video->active_fmt.fmt.pix_mp; in video_queue_setup() 361 &video->active_fmt.fmt.pix_mp; in video_buf_init() 389 &video->active_fmt.fmt.pix_mp; in video_buf_prepare() 416 struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp; in video_check_format() 418 struct v4l2_pix_format_mplane *sd_pix = &format.fmt.pix_mp; in video_check_format() 430 pix->field != format.fmt.pix_mp.field) in video_check_format() 656 struct v4l2_pix_format_mplane *pix_mp; in __video_try_fmt() local 665 pix_mp in __video_try_fmt() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 363 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 370 return video_mbus_to_pix_mp(&fmt.format, &format->fmt.pix_mp, in video_get_subdev_format() 384 &video->active_fmt.fmt.pix_mp; in video_queue_setup() 413 &video->active_fmt.fmt.pix_mp; in video_buf_init() 441 &video->active_fmt.fmt.pix_mp; in video_buf_prepare() 468 struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp; in video_check_format() 470 struct v4l2_pix_format_mplane *sd_pix = &format.fmt.pix_mp; in video_check_format() 482 pix->field != format.fmt.pix_mp.field) in video_check_format() 699 struct v4l2_pix_format_mplane *pix_mp; in __video_try_fmt() local 708 pix_mp in __video_try_fmt() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec.c | 29 if (fmt->fourcc == f->fmt.pix_mp.pixelformat) in mtk_vdec_find_format() 266 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() 347 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt_vid_out_mplane() 442 struct v4l2_pix_format_mplane *pix_mp; in vidioc_vdec_s_fmt() local 454 pix_mp = &f->fmt.pix_mp; in vidioc_vdec_s_fmt() 494 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt() 495 q_data->coded_width = pix_mp->width; in vidioc_vdec_s_fmt() 496 q_data->coded_height = pix_mp->height; in vidioc_vdec_s_fmt() 498 ctx->colorspace = pix_mp in vidioc_vdec_s_fmt() 650 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; vidioc_vdec_g_fmt() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/ |
H A D | gsc-core.c | 394 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in gsc_try_fmt_mplane() local 400 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane() 402 fmt = find_fmt(&pix_mp->pixelformat, NULL, 0); in gsc_try_fmt_mplane() 405 pix_mp->pixelformat); in gsc_try_fmt_mplane() 409 if (pix_mp->field == V4L2_FIELD_ANY) in gsc_try_fmt_mplane() 410 pix_mp->field = V4L2_FIELD_NONE; in gsc_try_fmt_mplane() 411 else if (pix_mp->field != V4L2_FIELD_NONE) { in gsc_try_fmt_mplane() 412 pr_debug("Not supported field order(%d)\n", pix_mp in gsc_try_fmt_mplane() 482 struct v4l2_pix_format_mplane *pix_mp; gsc_g_fmt_mplane() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 392 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in gsc_try_fmt_mplane() local 398 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane() 400 fmt = find_fmt(&pix_mp->pixelformat, NULL, 0); in gsc_try_fmt_mplane() 403 pix_mp->pixelformat); in gsc_try_fmt_mplane() 407 if (pix_mp->field == V4L2_FIELD_ANY) in gsc_try_fmt_mplane() 408 pix_mp->field = V4L2_FIELD_NONE; in gsc_try_fmt_mplane() 409 else if (pix_mp->field != V4L2_FIELD_NONE) { in gsc_try_fmt_mplane() 410 pr_debug("Not supported field order(%d)\n", pix_mp in gsc_try_fmt_mplane() 480 struct v4l2_pix_format_mplane *pix_mp; gsc_g_fmt_mplane() local [all...] |
/kernel/linux/linux-5.10/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 767 struct v4l2_pix_format_mplane *pix_mp; in vidioc_g_fmt() local 801 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt() 802 pix_mp->width = q_data->coded_width; in vidioc_g_fmt() 803 pix_mp->height = q_data->coded_height; in vidioc_g_fmt() 804 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 805 pix_mp->pixelformat = info->id; in vidioc_g_fmt() 806 pix_mp->num_planes = 1; in vidioc_g_fmt() 807 pix_mp->plane_fmt[0].bytesperline = in vidioc_g_fmt() 809 pix_mp in vidioc_g_fmt() 838 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt() local 903 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt_vid_cap() local 940 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt_vid_out() local 982 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt() local 1071 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt_vid_out() local [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 763 struct v4l2_pix_format_mplane *pix_mp; in vidioc_g_fmt() local 797 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt() 798 pix_mp->width = q_data->coded_width; in vidioc_g_fmt() 799 pix_mp->height = q_data->coded_height; in vidioc_g_fmt() 800 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 801 pix_mp->pixelformat = info->id; in vidioc_g_fmt() 802 pix_mp->num_planes = 1; in vidioc_g_fmt() 803 pix_mp->plane_fmt[0].bytesperline = in vidioc_g_fmt() 805 pix_mp in vidioc_g_fmt() 831 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt() local 894 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt_vid_cap() local 931 struct v4l2_pix_format_mplane *pix_mp; vidioc_try_fmt_vid_out() local 973 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt() local 1062 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt_vid_out() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_dec.c | 153 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && in find_format() 304 struct v4l2_pix_format_mplane *pix_mp; in vidioc_g_fmt() local 307 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt() 324 pix_mp->width = ctx->buf_width; in vidioc_g_fmt() 325 pix_mp->height = ctx->buf_height; in vidioc_g_fmt() 326 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 327 pix_mp->num_planes = 2; in vidioc_g_fmt() 330 pix_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt() 331 pix_mp in vidioc_g_fmt() 397 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_dec.c | 171 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && in find_format() 335 struct v4l2_pix_format_mplane *pix_mp; in vidioc_g_fmt() local 338 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt() 355 pix_mp->width = ctx->buf_width; in vidioc_g_fmt() 356 pix_mp->height = ctx->buf_height; in vidioc_g_fmt() 357 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 358 pix_mp->num_planes = 2; in vidioc_g_fmt() 361 pix_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt() 362 pix_mp in vidioc_g_fmt() 428 struct v4l2_pix_format_mplane *pix_mp; vidioc_s_fmt() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
H A D | vdec.c | 368 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_g_fmt() 386 f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries; in vdec_g_fmt() 387 f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars; in vdec_g_fmt() 388 f->fmt.pix_mp.ycbcr_enc = vdec->codec_info.matrix_coeffs; in vdec_g_fmt() 389 f->fmt.pix_mp.quantization = vdec->codec_info.full_range; in vdec_g_fmt() 406 f->fmt.pix_mp.pixelformat)) in vdec_try_fmt() 407 f->fmt.pix_mp.pixelformat = cap_fmt->pixfmt; in vdec_try_fmt() 413 f->fmt.pix_mp.colorspace = vdec->codec_info.color_primaries; in vdec_try_fmt() 414 f->fmt.pix_mp.xfer_func = vdec->codec_info.transfer_chars; in vdec_try_fmt() 415 f->fmt.pix_mp in vdec_try_fmt() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
H A D | mtk_vcodec_enc.c | 254 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() 419 q_data->coded_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_cap() 420 q_data->coded_height = f->fmt.pix_mp.height; in vidioc_venc_s_fmt_cap() 421 q_data->field = f->fmt.pix_mp.field; in vidioc_venc_s_fmt_cap() 423 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { in vidioc_venc_s_fmt_cap() 426 plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; in vidioc_venc_s_fmt_cap() 453 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_venc_s_fmt_out() 485 q_data->visible_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_out() 486 q_data->visible_height = f->fmt.pix_mp.height; in vidioc_venc_s_fmt_out() 492 q_data->coded_width = f->fmt.pix_mp in vidioc_venc_s_fmt_out() [all...] |
H A D | mtk_vcodec_dec.c | 81 if (fmt->fourcc == f->fmt.pix_mp.pixelformat) in mtk_vdec_find_format() 659 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() 744 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt_vid_out_mplane() 836 struct v4l2_pix_format_mplane *pix_mp; in vidioc_vdec_s_fmt() local 847 pix_mp = &f->fmt.pix_mp; in vidioc_vdec_s_fmt() 886 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt() 887 q_data->coded_width = pix_mp->width; in vidioc_vdec_s_fmt() 888 q_data->coded_height = pix_mp->height; in vidioc_vdec_s_fmt() 890 ctx->colorspace = pix_mp in vidioc_vdec_s_fmt() 989 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; vidioc_vdec_g_fmt() local [all...] |