Home
last modified time | relevance | path

Searched refs:plane_fmt (Results 1 – 25 of 61) sorted by relevance

123

/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_enc.c300 f->fmt.pix_mp.plane_fmt[0].bytesperline = 0; in vidioc_try_fmt_cap()
347 pix_fmt_mp->plane_fmt[0].sizeimage, in vidioc_try_fmt_out()
348 pix_fmt_mp->plane_fmt[1].sizeimage); in vidioc_try_fmt_out()
351 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt_out()
354 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt_out()
357 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt_out()
360 pix_fmt_mp->plane_fmt[2].sizeimage = 0; in vidioc_try_fmt_out()
361 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt_out()
363 pix_fmt_mp->plane_fmt[2].bytesperline = 0; in vidioc_try_fmt_out()
365 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt_out()
[all …]
Dmtk_vcodec_dec.c268 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt()
298 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt()
300 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt()
303 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt()
305 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt()
346 if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) { in vidioc_try_fmt_vid_out_mplane()
481 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt()
687 pix_mp->plane_fmt[0].bytesperline = q_data->bytesperline[0]; in vidioc_vdec_g_fmt()
688 pix_mp->plane_fmt[0].sizeimage = q_data->sizeimage[0]; in vidioc_vdec_g_fmt()
689 pix_mp->plane_fmt[1].bytesperline = q_data->bytesperline[1]; in vidioc_vdec_g_fmt()
[all …]
/drivers/media/platform/renesas/vsp1/
Dvsp1_rpf.c74 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()
294 unsigned int bpl = format->plane_fmt[1].bytesperline; in rpf_configure_partition()
Dvsp1_video.c151 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()
Dvsp1_wpf.c297 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()
/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.c270 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0]; in mtk_jpeg_try_fmt_mplane()
292 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[i]; in mtk_jpeg_try_fmt_mplane()
337 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[i]; in mtk_jpeg_g_fmt_vid_mplane()
339 pfmt->bytesperline = q_data->pix_mp.plane_fmt[i].bytesperline; in mtk_jpeg_g_fmt_vid_mplane()
340 pfmt->sizeimage = q_data->pix_mp.plane_fmt[i].sizeimage; in mtk_jpeg_g_fmt_vid_mplane()
450 q_data->pix_mp.plane_fmt[i].bytesperline = in mtk_jpeg_s_fmt_mplane()
451 pix_mp->plane_fmt[i].bytesperline; in mtk_jpeg_s_fmt_mplane()
452 q_data->pix_mp.plane_fmt[i].sizeimage = in mtk_jpeg_s_fmt_mplane()
453 pix_mp->plane_fmt[i].sizeimage; in mtk_jpeg_s_fmt_mplane()
457 i, q_data->pix_mp.plane_fmt[i].bytesperline, in mtk_jpeg_s_fmt_mplane()
[all …]
/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-regs.c429 u32 bpl = pix_mp->plane_fmt[i].bytesperline; in mdp_try_fmt_mplane()
431 u32 si = pix_mp->plane_fmt[i].sizeimage; in mdp_try_fmt_mplane()
435 pix_mp->plane_fmt[i].bytesperline = bpl; in mdp_try_fmt_mplane()
443 pix_mp->plane_fmt[i].sizeimage = si; in mdp_try_fmt_mplane()
615 pix_mp->plane_fmt[i].bytesperline, i); in mdp_prepare_buffer()
617 b->format.plane_fmt[i].stride = stride; in mdp_prepare_buffer()
618 b->format.plane_fmt[i].size = in mdp_prepare_buffer()
625 b->format.plane_fmt[0].stride, i); in mdp_prepare_buffer()
627 b->format.plane_fmt[i].stride = stride; in mdp_prepare_buffer()
628 b->format.plane_fmt[i].size = in mdp_prepare_buffer()
[all …]
/drivers/media/platform/ti/vpe/
Dvpe.c1050 offset = pix->plane_fmt[0].bytesperline * pix->height; in add_out_dtd()
1064 stride = pix->plane_fmt[VPE_LUMA].bytesperline; in add_out_dtd()
1116 offset = pix->plane_fmt[0].bytesperline * pix->height; in add_in_dtd()
1130 stride = pix->plane_fmt[VPE_LUMA].bytesperline; in add_in_dtd()
1600 struct v4l2_plane_pix_format *plane_fmt; in __vpe_try_fmt() local
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()
[all …]
/drivers/media/platform/qcom/camss/
Dcamss-video.c317 pix->plane_fmt[i].bytesperline = bytesperline; in video_mbus_to_pix_mp()
318 pix->plane_fmt[i].sizeimage = pix->height / in video_mbus_to_pix_mp()
391 if (sizes[i] < format->plane_fmt[i].sizeimage) in video_queue_setup()
400 sizes[i] = format->plane_fmt[i].sizeimage; in video_queue_setup()
429 format->plane_fmt[0].bytesperline * in video_buf_init()
444 if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i)) in video_buf_prepare()
447 vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage); in video_buf_prepare()
697 p = &pix_mp->plane_fmt[i]; in __video_try_fmt()
726 pix_mp->plane_fmt[i].bytesperline = bpl; in __video_try_fmt()
727 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / in __video_try_fmt()
[all …]
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c61 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()
/drivers/media/platform/renesas/
Drenesas-ceu.c402 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()
601 ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage / 2); 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()
[all …]
Drcar_fdp1.c949 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()
1434 bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, in fdp1_compute_stride()
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()
[all …]
Drcar_jpu.c805 if (pix->plane_fmt[0].sizeimage <= 0 || ctx->encoder) in __jpu_try_fmt()
806 pix->plane_fmt[0].sizeimage = JPU_JPEG_HDR_SIZE + in __jpu_try_fmt()
808 pix->plane_fmt[0].bytesperline = 0; in __jpu_try_fmt()
813 bpl = max(bpl, pix->plane_fmt[i].bytesperline); in __jpu_try_fmt()
819 pix->plane_fmt[i].bytesperline = bpl; in __jpu_try_fmt()
820 pix->plane_fmt[i].sizeimage = bpl * h * fmt->bpp[i] / 8; in __jpu_try_fmt()
1017 unsigned int q_size = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup()
1028 sizes[i] = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup()
1053 unsigned long size = q_data->format.plane_fmt[i].sizeimage; in jpu_buf_prepare()
1379 bpl = q_data->format.plane_fmt[0].bytesperline; in jpu_device_run()
/drivers/media/platform/verisilicon/
Dhantro_v4l2.c327 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
332 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
337 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
340 } else if (!pix_mp->plane_fmt[0].sizeimage) { in hantro_try_fmt()
346 pix_mp->plane_fmt[0].sizeimage = fmt->header_size + in hantro_try_fmt()
794 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup()
801 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup()
813 sz = pixfmt->plane_fmt[i].sizeimage; in hantro_buf_plane_check()
847 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
Dhantro_postproc.c123 chroma_offset = ctx->dst_fmt.plane_fmt[0].bytesperline * in hantro_postproc_g2_enable()
206 buf_size = pix_mp.plane_fmt[0].sizeimage; in hantro_postproc_alloc()
/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_dec.c362 pix_mp->plane_fmt[0].bytesperline = ctx->buf_width; in vidioc_g_fmt()
363 pix_mp->plane_fmt[0].sizeimage = ctx->luma_size; in vidioc_g_fmt()
364 pix_mp->plane_fmt[1].bytesperline = ctx->buf_width; in vidioc_g_fmt()
365 pix_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt()
373 pix_mp->plane_fmt[0].bytesperline = ctx->dec_src_buf_size; in vidioc_g_fmt()
374 pix_mp->plane_fmt[0].sizeimage = ctx->dec_src_buf_size; in vidioc_g_fmt()
453 if (pix_mp->plane_fmt[0].sizeimage == 0) in vidioc_s_fmt()
454 pix_mp->plane_fmt[0].sizeimage = ctx->dec_src_buf_size = in vidioc_s_fmt()
456 else if (pix_mp->plane_fmt[0].sizeimage > buf_size->cpb) in vidioc_s_fmt()
459 ctx->dec_src_buf_size = pix_mp->plane_fmt[0].sizeimage; in vidioc_s_fmt()
[all …]
Ds5p_mfc_enc.c1372 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1373 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1383 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->buf_width; in vidioc_g_fmt()
1384 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->luma_size; in vidioc_g_fmt()
1385 pix_fmt_mp->plane_fmt[1].bytesperline = ctx->buf_width; in vidioc_g_fmt()
1386 pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt()
1411 pix_fmt_mp->plane_fmt[0].bytesperline = in vidioc_try_fmt()
1412 pix_fmt_mp->plane_fmt[0].sizeimage; in vidioc_try_fmt()
1453 ctx->enc_dst_buf_size = pix_fmt_mp->plane_fmt[0].sizeimage; in vidioc_s_fmt()
1454 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_s_fmt()
[all …]
/drivers/media/platform/rockchip/rkisp1/
Drkisp1-capture.c398 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()
758 if (sizes[i] < pixm->plane_fmt[i].sizeimage) in rkisp1_vb2_queue_setup()
763 sizes[i] = pixm->plane_fmt[i].sizeimage; in rkisp1_vb2_queue_setup()
820 unsigned long size = cap->pix.fmt.plane_fmt[i].sizeimage; in rkisp1_vb2_buf_prepare()
1074 struct v4l2_plane_pix_format *plane_y = &pixm->plane_fmt[0]; in rkisp1_fill_pixfmt()
1079 memset(pixm->plane_fmt, 0, sizeof(pixm->plane_fmt)); in rkisp1_fill_pixfmt()
1092 struct v4l2_plane_pix_format *plane = &pixm->plane_fmt[i]; in rkisp1_fill_pixfmt()
1109 plane_y->sizeimage += pixm->plane_fmt[i].sizeimage; in rkisp1_fill_pixfmt()
1171 cap->sp_y_stride = pixm->plane_fmt[0].bytesperline / in rkisp1_set_fmt()
/drivers/media/platform/samsung/exynos4-is/
Dfimc-core.c687 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()
Dfimc-lite.c673 struct v4l2_plane_pix_format *plane_fmt = &pixm->plane_fmt[0]; in fimc_lite_g_fmt_mplane() local
677 plane_fmt->bytesperline = (frame->f_width * fmt->depth[0]) / 8; in fimc_lite_g_fmt_mplane()
678 plane_fmt->sizeimage = plane_fmt->bytesperline * frame->f_height; in fimc_lite_g_fmt_mplane()
693 u32 bpl = pixm->plane_fmt[0].bytesperline; in fimc_lite_try_fmt()
720 pixm->plane_fmt[0].bytesperline = (pixm->width * in fimc_lite_try_fmt()
723 if (pixm->plane_fmt[0].sizeimage == 0) in fimc_lite_try_fmt()
724 pixm->plane_fmt[0].sizeimage = (pixm->width * pixm->height * in fimc_lite_try_fmt()
758 pixm->plane_fmt[0].sizeimage); in fimc_lite_s_fmt_mplane()
/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_m2m.c246 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()
/drivers/media/platform/samsung/exynos-gsc/
Dgsc-core.c453 struct v4l2_plane_pix_format *plane_fmt = &pix_mp->plane_fmt[i]; in gsc_try_fmt_mplane() local
454 u32 bpl = plane_fmt->bytesperline; in gsc_try_fmt_mplane()
467 plane_fmt->bytesperline = bpl; in gsc_try_fmt_mplane()
468 plane_fmt->sizeimage = max(pix_mp->width * pix_mp->height * in gsc_try_fmt_mplane()
470 plane_fmt->sizeimage); in gsc_try_fmt_mplane()
472 i, bpl, pix_mp->plane_fmt[i].sizeimage); in gsc_try_fmt_mplane()
498 pix_mp->plane_fmt[i].bytesperline = (frame->f_width * in gsc_g_fmt_mplane()
500 pix_mp->plane_fmt[i].sizeimage = in gsc_g_fmt_mplane()
501 pix_mp->plane_fmt[i].bytesperline * frame->f_height; in gsc_g_fmt_mplane()
/drivers/media/platform/nvidia/tegra-vde/
Dv4l2.c103 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in tegra_queue_setup()
110 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in tegra_queue_setup()
242 size = pixfmt->plane_fmt[i].sizeimage; in tegra_buf_prepare()
458 plane = &pixfmt->plane_fmt[i]; in tegra_fill_pixfmt_mp()
638 int size = pix_mp->plane_fmt[0].sizeimage; in tegra_try_coded_fmt()
651 pix_mp->plane_fmt[0].sizeimage = max(ALIGN(size, SXE_BUFFER), SZ_2M); in tegra_try_coded_fmt()
/drivers/staging/media/rkvdec/
Drkvdec.c199 f->fmt.pix_mp.plane_fmt[0].sizeimage += 128 * in rkvdec_reset_decoded_fmt()
269 pix_mp->plane_fmt[0].sizeimage += in rkvdec_try_capture_fmt()
487 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in rkvdec_queue_setup()
493 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in rkvdec_queue_setup()
512 u32 sizeimage = f->fmt.pix_mp.plane_fmt[i].sizeimage; in rkvdec_buf_prepare()
524 vb2_set_plane_payload(vb, 0, f->fmt.pix_mp.plane_fmt[0].sizeimage); in rkvdec_buf_prepare()
/drivers/media/pci/intel/ipu3/
Dipu3-cio2-main.c809 if (*num_planes && sizes[i] < q->format.plane_fmt[i].sizeimage) in cio2_vb2_queue_setup()
811 sizes[i] = q->format.plane_fmt[i].sizeimage; in cio2_vb2_queue_setup()
946 q->format.plane_fmt[j].sizeimage); in cio2_vb2_buf_queue()
1100 mpix->plane_fmt[0].bytesperline = cio2_bytesperline(mpix->width); in cio2_v4l2_try_fmt()
1101 mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline * in cio2_v4l2_try_fmt()
1549 q->format.plane_fmt[0].bytesperline = in cio2_queue_init()
1551 q->format.plane_fmt[0].sizeimage = q->format.plane_fmt[0].bytesperline * in cio2_queue_init()

123