/linux/drivers/media/platform/mtk-vcodec/ |
A D | mtk_vcodec_enc.c | 315 pix_fmt_mp->plane_fmt[0].sizeimage, in vidioc_try_fmt() 316 pix_fmt_mp->plane_fmt[1].sizeimage); in vidioc_try_fmt() 319 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt() 325 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt() 328 pix_fmt_mp->plane_fmt[2].sizeimage = 0; in vidioc_try_fmt() 329 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt() 333 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt() 334 pix_fmt_mp->plane_fmt[2].sizeimage = in vidioc_try_fmt() 337 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt() 440 plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; in vidioc_venc_s_fmt_cap() [all …]
|
A D | mtk_vcodec_dec.c | 234 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt() 267 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt() 272 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt() 274 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt() 315 if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) { in vidioc_try_fmt_vid_out_mplane() 450 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt() 651 pix_mp->plane_fmt[0].sizeimage = q_data->sizeimage[0]; in vidioc_vdec_g_fmt() 653 pix_mp->plane_fmt[1].sizeimage = q_data->sizeimage[1]; in vidioc_vdec_g_fmt() 665 pix_mp->plane_fmt[0].sizeimage = q_data->sizeimage[0]; in vidioc_vdec_g_fmt() 674 pix_mp->plane_fmt[0].sizeimage = q_data->sizeimage[0]; in vidioc_vdec_g_fmt() [all …]
|
/linux/drivers/media/platform/vsp1/ |
A D | vsp1_rpf.c | 74 pstride = format->plane_fmt[0].bytesperline in rpf_configure_stream() 77 pstride |= format->plane_fmt[1].bytesperline in rpf_configure_stream() 216 offset_y = format->plane_fmt[0].bytesperline; in vsp1_rpf_configure_autofld() 217 offset_c = format->plane_fmt[1].bytesperline; in vsp1_rpf_configure_autofld() 290 mem.addr[0] += crop.top * format->plane_fmt[0].bytesperline in rpf_configure_partition() 296 offset = crop.top * format->plane_fmt[1].bytesperline in rpf_configure_partition()
|
A D | vsp1_video.c | 151 bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, in __vsp1_video_try_format() 155 pix->plane_fmt[i].bytesperline = round_up(bpl, align); in __vsp1_video_try_format() 156 pix->plane_fmt[i].sizeimage = pix->plane_fmt[i].bytesperline in __vsp1_video_try_format() 162 pix->plane_fmt[2].bytesperline = pix->plane_fmt[1].bytesperline; in __vsp1_video_try_format() 163 pix->plane_fmt[2].sizeimage = pix->plane_fmt[1].sizeimage; in __vsp1_video_try_format() 720 if (sizes[i] < format->plane_fmt[i].sizeimage) in vsp1_video_queue_setup() 728 sizes[i] = format->plane_fmt[i].sizeimage; in vsp1_video_queue_setup() 747 if (vb2_plane_size(vb, i) < format->plane_fmt[i].sizeimage) in vsp1_video_buffer_prepare()
|
A D | vsp1_wpf.c | 297 format->plane_fmt[0].bytesperline); in wpf_configure_stream() 300 format->plane_fmt[1].bytesperline); in wpf_configure_stream() 470 * format->plane_fmt[i].bytesperline; in wpf_configure_partition() 489 * format->plane_fmt[0].bytesperline; in wpf_configure_partition() 493 * format->plane_fmt[1].bytesperline; in wpf_configure_partition()
|
/linux/drivers/media/platform/mtk-jpeg/ |
A D | mtk_jpeg_core.c | 453 q_data->pix_mp.plane_fmt[i].bytesperline = in mtk_jpeg_s_fmt_mplane() 454 pix_mp->plane_fmt[i].bytesperline; in mtk_jpeg_s_fmt_mplane() 455 q_data->pix_mp.plane_fmt[i].sizeimage = in mtk_jpeg_s_fmt_mplane() 456 pix_mp->plane_fmt[i].sizeimage; in mtk_jpeg_s_fmt_mplane() 460 i, q_data->pix_mp.plane_fmt[i].bytesperline, in mtk_jpeg_s_fmt_mplane() 461 q_data->pix_mp.plane_fmt[i].sizeimage); in mtk_jpeg_s_fmt_mplane() 672 sizes[i] = q_data->pix_mp.plane_fmt[i].sizeimage; in mtk_jpeg_queue_setup() 684 struct v4l2_plane_pix_format plane_fmt = {}; in mtk_jpeg_buf_prepare() local 692 plane_fmt = q_data->pix_mp.plane_fmt[i]; in mtk_jpeg_buf_prepare() 695 vb2_set_plane_payload(vb, i, plane_fmt.sizeimage + in mtk_jpeg_buf_prepare() [all …]
|
/linux/drivers/media/platform/ti-vpe/ |
A D | vpe.c | 1687 plane_fmt = &pix->plane_fmt[i]; in __vpe_try_fmt() 1691 if (stride > plane_fmt->bytesperline) in __vpe_try_fmt() 1692 plane_fmt->bytesperline = stride; in __vpe_try_fmt() 1694 plane_fmt->bytesperline = clamp_t(u32, plane_fmt->bytesperline, in __vpe_try_fmt() 1698 plane_fmt->bytesperline = ALIGN(plane_fmt->bytesperline, in __vpe_try_fmt() 1703 plane_fmt->bytesperline; in __vpe_try_fmt() 1707 plane_fmt->bytesperline * in __vpe_try_fmt() 1712 plane_fmt->bytesperline * in __vpe_try_fmt() 1775 pix->plane_fmt[0].bytesperline); in __vpe_s_fmt() 1778 pix->plane_fmt[1].bytesperline); in __vpe_s_fmt() [all …]
|
/linux/drivers/media/platform/qcom/camss/ |
A D | camss-video.c | 315 pix->plane_fmt[i].bytesperline = bytesperline; in video_mbus_to_pix_mp() 316 pix->plane_fmt[i].sizeimage = pix->height / in video_mbus_to_pix_mp() 389 if (sizes[i] < format->plane_fmt[i].sizeimage) in video_queue_setup() 398 sizes[i] = format->plane_fmt[i].sizeimage; in video_queue_setup() 427 format->plane_fmt[0].bytesperline * in video_buf_init() 442 if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i)) in video_buf_prepare() 445 vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage); in video_buf_prepare() 698 p = &pix_mp->plane_fmt[i]; in __video_try_fmt() 727 pix_mp->plane_fmt[i].bytesperline = bpl; in __video_try_fmt() 728 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / in __video_try_fmt() [all …]
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
A D | sun4i_dma.c | 61 if (sizes[i] < csi->fmt.plane_fmt[i].sizeimage) in sun4i_csi_queue_setup() 68 sizes[i] = csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_queue_setup() 79 unsigned long size = csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_buffer_prepare() 104 addr += csi->fmt.plane_fmt[plane].sizeimage; in sun4i_csi_setup_scratch_buffer() 257 csi->scratch.size += csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_start_streaming() 300 writel(csi->fmt.plane_fmt[0].bytesperline, in sun4i_csi_start_streaming()
|
A D | sun4i_v4l2.c | 130 pix->plane_fmt[i].bytesperline = bpl; in _sun4i_csi_try_fmt() 131 pix->plane_fmt[i].sizeimage = bpl * pix->height / vsub; in _sun4i_csi_try_fmt()
|
/linux/drivers/media/platform/ |
A D | renesas-ceu.c | 402 cdwdr = pix->plane_fmt[0].bytesperline; in ceu_hw_config() 592 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() 600 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() 610 ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); in ceu_calc_plane_sizes() 611 ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage); in ceu_calc_plane_sizes() 632 if (sizes[i] < pix->plane_fmt[i].sizeimage) in ceu_vb2_setup() 641 sizes[i] = pix->plane_fmt[i].sizeimage; in ceu_vb2_setup() 665 if (vb2_plane_size(vb, i) < pix->plane_fmt[i].sizeimage) { in ceu_vb2_prepare() 669 pix->plane_fmt[i].sizeimage); in ceu_vb2_prepare() 673 vb2_set_plane_payload(vb, i, pix->plane_fmt[i].sizeimage); in ceu_vb2_prepare() [all …]
|
A D | rcar_fdp1.c | 949 pstride = q_data->format.plane_fmt[0].bytesperline in fdp1_configure_wpf() 953 pstride |= q_data->format.plane_fmt[1].bytesperline in fdp1_configure_wpf() 1438 pix->plane_fmt[i].bytesperline = round_up(bpl, align); in fdp1_compute_stride() 1439 pix->plane_fmt[i].sizeimage = pix->plane_fmt[i].bytesperline in fdp1_compute_stride() 1446 pix->plane_fmt[2].bytesperline = pix->plane_fmt[1].bytesperline; in fdp1_compute_stride() 1447 pix->plane_fmt[2].sizeimage = pix->plane_fmt[1].sizeimage; in fdp1_compute_stride() 1621 q_data->stride_y = pix->plane_fmt[0].bytesperline; in fdp1_set_format() 1622 q_data->stride_c = pix->plane_fmt[1].bytesperline; in fdp1_set_format() 1641 memset(dst_data->format.plane_fmt, 0, in fdp1_set_format() 1642 sizeof(dst_data->format.plane_fmt)); in fdp1_set_format() [all …]
|
A D | rcar_jpu.c | 807 if (pix->plane_fmt[0].sizeimage <= 0 || ctx->encoder) in __jpu_try_fmt() 808 pix->plane_fmt[0].sizeimage = JPU_JPEG_HDR_SIZE + in __jpu_try_fmt() 810 pix->plane_fmt[0].bytesperline = 0; in __jpu_try_fmt() 815 bpl = max(bpl, pix->plane_fmt[i].bytesperline); in __jpu_try_fmt() 821 pix->plane_fmt[i].bytesperline = bpl; in __jpu_try_fmt() 822 pix->plane_fmt[i].sizeimage = bpl * h * fmt->bpp[i] / 8; in __jpu_try_fmt() 1019 unsigned int q_size = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup() 1030 sizes[i] = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup() 1055 unsigned long size = q_data->format.plane_fmt[i].sizeimage; in jpu_buf_prepare() 1381 bpl = q_data->format.plane_fmt[0].bytesperline; in jpu_device_run()
|
/linux/drivers/staging/media/hantro/ |
A D | hantro_v4l2.c | 285 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt() 288 } else if (!pix_mp->plane_fmt[0].sizeimage) { in hantro_try_fmt() 294 pix_mp->plane_fmt[0].sizeimage = fmt->header_size + in hantro_try_fmt() 601 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup() 608 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup() 620 sz = pixfmt->plane_fmt[i].sizeimage; in hantro_buf_plane_check() 651 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc_dec.c | 346 pix_mp->plane_fmt[0].bytesperline = ctx->buf_width; in vidioc_g_fmt() 347 pix_mp->plane_fmt[0].sizeimage = ctx->luma_size; in vidioc_g_fmt() 348 pix_mp->plane_fmt[1].bytesperline = ctx->buf_width; in vidioc_g_fmt() 349 pix_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt() 357 pix_mp->plane_fmt[0].bytesperline = ctx->dec_src_buf_size; in vidioc_g_fmt() 358 pix_mp->plane_fmt[0].sizeimage = ctx->dec_src_buf_size; in vidioc_g_fmt() 437 if (pix_mp->plane_fmt[0].sizeimage == 0) in vidioc_s_fmt() 438 pix_mp->plane_fmt[0].sizeimage = ctx->dec_src_buf_size = in vidioc_s_fmt() 440 else if (pix_mp->plane_fmt[0].sizeimage > buf_size->cpb) in vidioc_s_fmt() 443 ctx->dec_src_buf_size = pix_mp->plane_fmt[0].sizeimage; in vidioc_s_fmt() [all …]
|
A D | s5p_mfc_enc.c | 1377 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->buf_width; in vidioc_g_fmt() 1378 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->luma_size; in vidioc_g_fmt() 1379 pix_fmt_mp->plane_fmt[1].bytesperline = ctx->buf_width; in vidioc_g_fmt() 1380 pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt() 1405 pix_fmt_mp->plane_fmt[0].bytesperline = in vidioc_try_fmt() 1406 pix_fmt_mp->plane_fmt[0].sizeimage; in vidioc_try_fmt() 1448 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_s_fmt() 1463 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->luma_size; in vidioc_s_fmt() 1464 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->buf_width; in vidioc_s_fmt() 1465 pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_s_fmt() [all …]
|
/linux/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-capture.c | 398 return pixm->plane_fmt[0].bytesperline * pixm->height; in rkisp1_pixfmt_comp_size() 399 return pixm->plane_fmt[component].sizeimage; in rkisp1_pixfmt_comp_size() 749 if (sizes[i] < pixm->plane_fmt[i].sizeimage) in rkisp1_vb2_queue_setup() 754 sizes[i] = pixm->plane_fmt[i].sizeimage; in rkisp1_vb2_queue_setup() 811 unsigned long size = cap->pix.fmt.plane_fmt[i].sizeimage; in rkisp1_vb2_buf_prepare() 1075 struct v4l2_plane_pix_format *plane_y = &pixm->plane_fmt[0]; in rkisp1_fill_pixfmt() 1080 memset(pixm->plane_fmt, 0, sizeof(pixm->plane_fmt)); in rkisp1_fill_pixfmt() 1093 struct v4l2_plane_pix_format *plane = &pixm->plane_fmt[i]; in rkisp1_fill_pixfmt() 1110 plane_y->sizeimage += pixm->plane_fmt[i].sizeimage; in rkisp1_fill_pixfmt() 1172 cap->sp_y_stride = pixm->plane_fmt[0].bytesperline / in rkisp1_set_fmt()
|
/linux/drivers/media/platform/exynos4-is/ |
A D | fimc-core.c | 687 pixm->plane_fmt[i].bytesperline = frame->bytesperline[i]; in __fimc_get_format() 688 pixm->plane_fmt[i].sizeimage = frame->payload[i]; in __fimc_get_format() 713 struct v4l2_plane_pix_format *plane_fmt = &pix->plane_fmt[i]; in fimc_adjust_mplane_format() local 714 u32 bpl = plane_fmt->bytesperline; in fimc_adjust_mplane_format() 734 plane_fmt->bytesperline = bytesperline; in fimc_adjust_mplane_format() 740 u32 row_size = plane_fmt->bytesperline * 32; in fimc_adjust_mplane_format() 745 plane_fmt->sizeimage = max(sizeimage, plane_fmt->sizeimage); in fimc_adjust_mplane_format()
|
A D | fimc-lite.c | 677 struct v4l2_plane_pix_format *plane_fmt = &pixm->plane_fmt[0]; in fimc_lite_g_fmt_mplane() local 681 plane_fmt->bytesperline = (frame->f_width * fmt->depth[0]) / 8; in fimc_lite_g_fmt_mplane() 682 plane_fmt->sizeimage = plane_fmt->bytesperline * frame->f_height; in fimc_lite_g_fmt_mplane() 697 u32 bpl = pixm->plane_fmt[0].bytesperline; in fimc_lite_try_fmt() 724 pixm->plane_fmt[0].bytesperline = (pixm->width * in fimc_lite_try_fmt() 727 if (pixm->plane_fmt[0].sizeimage == 0) in fimc_lite_try_fmt() 728 pixm->plane_fmt[0].sizeimage = (pixm->width * pixm->height * in fimc_lite_try_fmt() 762 pixm->plane_fmt[0].sizeimage); in fimc_lite_s_fmt_mplane()
|
A D | fimc-capture.c | 854 struct v4l2_plane_pix_format *plane_fmt, in fimc_get_sensor_frame_desc() argument 862 fd.entry[i].length = plane_fmt[i].sizeimage; in fimc_get_sensor_frame_desc() 877 plane_fmt[i].sizeimage = fd.entry[i].length; in fimc_get_sensor_frame_desc() 973 fimc_get_sensor_frame_desc(sensor, pix->plane_fmt, in __video_try_or_set_format() 1028 ff->bytesperline[i] = pix->plane_fmt[i].bytesperline; in __fimc_capture_set_format() 1029 ff->payload[i] = pix->plane_fmt[i].sizeimage; in __fimc_capture_set_format() 1156 struct v4l2_plane_pix_format plane_fmt[FIMC_MAX_PLANES]; in fimc_pipeline_validate() local 1160 ret = fimc_get_sensor_frame_desc(sd, plane_fmt, in fimc_pipeline_validate() 1167 if (frame->payload[i] < plane_fmt[i].sizeimage) in fimc_pipeline_validate()
|
/linux/drivers/media/platform/exynos-gsc/ |
A D | gsc-core.c | 454 struct v4l2_plane_pix_format *plane_fmt = &pix_mp->plane_fmt[i]; in gsc_try_fmt_mplane() local 455 u32 bpl = plane_fmt->bytesperline; in gsc_try_fmt_mplane() 468 plane_fmt->bytesperline = bpl; in gsc_try_fmt_mplane() 469 plane_fmt->sizeimage = max(pix_mp->width * pix_mp->height * in gsc_try_fmt_mplane() 471 plane_fmt->sizeimage); in gsc_try_fmt_mplane() 473 i, bpl, pix_mp->plane_fmt[i].sizeimage); in gsc_try_fmt_mplane() 499 pix_mp->plane_fmt[i].bytesperline = (frame->f_width * in gsc_g_fmt_mplane() 501 pix_mp->plane_fmt[i].sizeimage = in gsc_g_fmt_mplane() 502 pix_mp->plane_fmt[i].bytesperline * frame->f_height; in gsc_g_fmt_mplane()
|
/linux/drivers/media/platform/mtk-mdp/ |
A D | mtk_mdp_m2m.c | 246 pix_mp->plane_fmt[i].bytesperline = bpl; in mtk_mdp_try_fmt_mplane() 247 if (pix_mp->plane_fmt[i].sizeimage < sizeimage) in mtk_mdp_try_fmt_mplane() 248 pix_mp->plane_fmt[i].sizeimage = sizeimage; in mtk_mdp_try_fmt_mplane() 250 i, bpl, pix_mp->plane_fmt[i].sizeimage, sizeimage); in mtk_mdp_try_fmt_mplane() 655 pix_mp->plane_fmt[i].bytesperline = (frame->width * in mtk_mdp_m2m_g_fmt_mplane() 657 pix_mp->plane_fmt[i].sizeimage = (frame->width * in mtk_mdp_m2m_g_fmt_mplane() 661 pix_mp->plane_fmt[i].bytesperline, in mtk_mdp_m2m_g_fmt_mplane() 662 pix_mp->plane_fmt[i].sizeimage); in mtk_mdp_m2m_g_fmt_mplane() 706 frame->payload[i] = pix_mp->plane_fmt[i].sizeimage; in mtk_mdp_m2m_s_fmt_mplane() 707 frame->pitch[i] = pix_mp->plane_fmt[i].bytesperline; in mtk_mdp_m2m_s_fmt_mplane()
|
/linux/drivers/staging/media/rkvdec/ |
A D | rkvdec.c | 174 f->fmt.pix_mp.plane_fmt[0].sizeimage += 128 * in rkvdec_reset_decoded_fmt() 242 pix_mp->plane_fmt[0].sizeimage += in rkvdec_try_capture_fmt() 454 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in rkvdec_queue_setup() 460 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in rkvdec_queue_setup() 479 u32 sizeimage = f->fmt.pix_mp.plane_fmt[i].sizeimage; in rkvdec_buf_prepare() 491 vb2_set_plane_payload(vb, 0, f->fmt.pix_mp.plane_fmt[0].sizeimage); in rkvdec_buf_prepare()
|
/linux/Documentation/userspace-api/media/v4l/ |
A D | pixfmt-v4l2-mplane.rst | 85 - ``plane_fmt[VIDEO_MAX_PLANES]`` 92 and the number of valid entries in the ``plane_fmt`` array.
|
/linux/drivers/media/pci/intel/ipu3/ |
A D | ipu3-cio2-main.c | 804 if (*num_planes && sizes[i] < q->format.plane_fmt[i].sizeimage) in cio2_vb2_queue_setup() 806 sizes[i] = q->format.plane_fmt[i].sizeimage; in cio2_vb2_queue_setup() 941 q->format.plane_fmt[j].sizeimage); in cio2_vb2_buf_queue() 1099 mpix->plane_fmt[0].bytesperline = cio2_bytesperline(mpix->width); in cio2_v4l2_try_fmt() 1100 mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline * in cio2_v4l2_try_fmt() 1548 q->format.plane_fmt[0].bytesperline = in cio2_queue_init() 1550 q->format.plane_fmt[0].sizeimage = q->format.plane_fmt[0].bytesperline * in cio2_queue_init()
|