Home
last modified time | relevance | path

Searched refs:src_fmt (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_v4l2.c176 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane()
229 pix_mp->width = ctx->src_fmt.width; in vidioc_try_fmt()
230 pix_mp->height = ctx->src_fmt.height; in vidioc_try_fmt()
305 fmt = &ctx->src_fmt; in hantro_reset_encoded_fmt()
328 raw_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
333 encoded_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
401 ctx->src_fmt = *pix_mp; in vidioc_s_fmt_out_mplane()
483 ctx->src_fmt.colorspace = pix_mp->colorspace; in vidioc_s_fmt_cap_mplane()
484 ctx->src_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in vidioc_s_fmt_cap_mplane()
485 ctx->src_fmt.xfer_func = pix_mp->xfer_func; in vidioc_s_fmt_cap_mplane()
[all …]
Dhantro_h1_jpeg_enc.c21 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_set_src_img_ctrl()
35 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_jpeg_enc_set_buffers()
119 reg = H1_REG_ENC_CTRL_WIDTH(JPEG_MB_WIDTH(ctx->src_fmt.width)) in hantro_h1_jpeg_enc_run()
120 | H1_REG_ENC_CTRL_HEIGHT(JPEG_MB_HEIGHT(ctx->src_fmt.height)) in hantro_h1_jpeg_enc_run()
Drk3399_vpu_hw_jpeg_enc.c39 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_set_src_img_ctrl()
67 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_jpeg_enc_set_buffers()
152 reg = VEPU_REG_MB_WIDTH(JPEG_MB_WIDTH(ctx->src_fmt.width)) in rk3399_vpu_jpeg_enc_run()
153 | VEPU_REG_MB_HEIGHT(JPEG_MB_HEIGHT(ctx->src_fmt.height)) in rk3399_vpu_jpeg_enc_run()
Dhantro.h240 struct v4l2_pix_format_mplane src_fmt; member
/Linux-v5.4/drivers/media/platform/exynos4-is/
Dfimc-isp.c142 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt()
235 isp->src_fmt = format.format; in fimc_isp_subdev_set_fmt()
236 __is_set_frame_size(is, &isp->src_fmt); in fimc_isp_subdev_set_fmt()
238 isp->src_fmt = *mf; in fimc_isp_subdev_set_fmt()
679 isp->src_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH; in __isp_subdev_set_default_format()
680 isp->src_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT; in __isp_subdev_set_default_format()
681 isp->src_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
682 __is_set_frame_size(is, &isp->src_fmt); in __isp_subdev_set_default_format()
Dfimc-isp-video.c449 struct v4l2_subdev_format sink_fmt, src_fmt; in isp_video_pipeline_validate() local
470 src_fmt.pad = pad->index; in isp_video_pipeline_validate()
471 src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in isp_video_pipeline_validate()
472 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in isp_video_pipeline_validate()
476 if (src_fmt.format.width != sink_fmt.format.width || in isp_video_pipeline_validate()
477 src_fmt.format.height != sink_fmt.format.height || in isp_video_pipeline_validate()
478 src_fmt.format.code != sink_fmt.format.code) in isp_video_pipeline_validate()
Dfimc-lite.c768 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local
797 src_fmt.pad = pad->index; in fimc_pipeline_validate()
798 src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate()
799 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in fimc_pipeline_validate()
803 if (src_fmt.format.width != sink_fmt.format.width || in fimc_pipeline_validate()
804 src_fmt.format.height != sink_fmt.format.height || in fimc_pipeline_validate()
805 src_fmt.format.code != sink_fmt.format.code) in fimc_pipeline_validate()
1095 struct v4l2_mbus_framefmt *src_fmt; in fimc_lite_subdev_set_fmt() local
1102 src_fmt = __fimc_lite_subdev_get_try_fmt(sd, cfg, pad); in fimc_lite_subdev_set_fmt()
1103 *src_fmt = *mf; in fimc_lite_subdev_set_fmt()
Dfimc-isp.h162 struct v4l2_mbus_framefmt src_fmt; member
Dfimc-capture.c1108 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local
1153 src_fmt.pad = src_pad->index; in fimc_pipeline_validate()
1154 src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate()
1155 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in fimc_pipeline_validate()
1159 if (src_fmt.format.width != sink_fmt.format.width || in fimc_pipeline_validate()
1160 src_fmt.format.height != sink_fmt.format.height || in fimc_pipeline_validate()
1161 src_fmt.format.code != sink_fmt.format.code) in fimc_pipeline_validate()
1165 fimc_user_defined_mbus_fmt(src_fmt.format.code)) { in fimc_pipeline_validate()
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_scaler.c142 u32 src_fmt, u32 tile) in scaler_set_src_fmt() argument
146 val = SCALER_SRC_CFG_SET_COLOR_FORMAT(src_fmt) | (tile << 10); in scaler_set_src_fmt()
363 const struct scaler_format *src_fmt, *dst_fmt; in scaler_commit() local
365 src_fmt = scaler_get_format(task->src.buf.fourcc); in scaler_commit()
377 scaler, src_fmt->internal_fmt, task->src.buf.modifier != 0); in scaler_commit()
380 scaler_set_src_luma_chroma_pos(scaler, src_pos, src_fmt); in scaler_commit()
/Linux-v5.4/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c244 f->fmt.pix = ctx->src_fmt; in cedrus_g_fmt_vid_out()
323 ctx->src_fmt = f->fmt.pix; in cedrus_s_fmt_vid_out()
373 pix_fmt = &ctx->src_fmt; in cedrus_queue_setup()
429 pix_fmt = &ctx->src_fmt; in cedrus_buf_prepare()
447 switch (ctx->src_fmt.pixelformat) { in cedrus_start_streaming()
Dcedrus_mpeg2.c156 reg = VE_DEC_MPEG_PICBOUNDSIZE_WIDTH(ctx->src_fmt.width); in cedrus_mpeg2_setup()
157 reg |= VE_DEC_MPEG_PICBOUNDSIZE_HEIGHT(ctx->src_fmt.height); in cedrus_mpeg2_setup()
Dcedrus_dec.c41 switch (ctx->src_fmt.pixelformat) { in cedrus_device_run()
Dcedrus.h95 struct v4l2_pix_format src_fmt; member
Dcedrus_h264.c500 field_size = DIV_ROUND_UP(ctx->src_fmt.width, 16) * in cedrus_h264_start()
501 DIV_ROUND_UP(ctx->src_fmt.height, 16) * 16; in cedrus_h264_start()
/Linux-v5.4/drivers/media/platform/sti/bdisp/
Dbdisp-hw.c769 u32 src_fmt, dst_fmt; in bdisp_hw_build_node() local
786 src_fmt = src->fmt->pixelformat; in bdisp_hw_build_node()
868 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
890 node->s2ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
909 node->s3ty |= bdisp_hw_color_format(src_fmt); in bdisp_hw_build_node()
/Linux-v5.4/drivers/media/platform/s5p-mfc/
Ds5p_mfc_dec.c344 pix_mp->pixelformat = ctx->src_fmt->fourcc; in vidioc_g_fmt()
345 pix_mp->num_planes = ctx->src_fmt->num_planes; in vidioc_g_fmt()
417 ctx->src_fmt = find_format(f, MFC_FMT_DEC); in vidioc_s_fmt()
418 ctx->codec_mode = ctx->src_fmt->codec_mode; in vidioc_s_fmt()
767 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_H264) { in vidioc_g_selection()
1172 ctx->src_fmt = find_format(&f, MFC_FMT_DEC); in s5p_mfc_dec_init()
1181 ctx->src_fmt, ctx->dst_fmt); in s5p_mfc_dec_init()
Ds5p_mfc_enc.c1368 pix_fmt_mp->pixelformat = ctx->src_fmt->fourcc; in vidioc_g_fmt()
1369 pix_fmt_mp->num_planes = ctx->src_fmt->num_planes; in vidioc_g_fmt()
1448 ctx->src_fmt = find_format(f, MFC_FMT_RAW); in vidioc_s_fmt()
1451 mfc_debug(2, "codec number: %d\n", ctx->src_fmt->codec_mode); in vidioc_s_fmt()
2391 if (ctx->src_fmt) in s5p_mfc_queue_setup()
2392 *plane_count = ctx->src_fmt->num_planes; in s5p_mfc_queue_setup()
2436 ret = check_vb_with_fmt(ctx->src_fmt, vb); in s5p_mfc_buf_init()
2470 ret = check_vb_with_fmt(ctx->src_fmt, vb); in s5p_mfc_buf_prepare()
2687 ctx->src_fmt = find_format(&f, MFC_FMT_RAW); in s5p_mfc_enc_init()
Ds5p_mfc_opr_v5.c318 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12M) { in s5p_mfc_enc_calc_src_size_v5()
329 } else if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12MT) { in s5p_mfc_enc_calc_src_size_v5()
706 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12M) in s5p_mfc_set_enc_params()
708 else if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12MT) in s5p_mfc_set_enc_params()
1135 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12M) in s5p_mfc_encode_one_frame_v5()
1137 else if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12MT) in s5p_mfc_encode_one_frame_v5()
Ds5p_mfc_common.h626 struct s5p_mfc_fmt *src_fmt; member
Ds5p_mfc_opr_v6.c809 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12M) { in s5p_mfc_set_enc_params()
816 } else if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV21M) { in s5p_mfc_set_enc_params()
823 } else if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_NV12MT_16X16) { in s5p_mfc_set_enc_params()
/Linux-v5.4/drivers/media/i2c/
Dimx274.c996 const struct v4l2_mbus_framefmt *src_fmt; in imx274_get_selection() local
1012 src_fmt = &cfg->try_fmt; in imx274_get_selection()
1015 src_fmt = &imx274->format; in imx274_get_selection()
1033 sel->r.width = src_fmt->width; in imx274_get_selection()
1034 sel->r.height = src_fmt->height; in imx274_get_selection()
/Linux-v5.4/drivers/media/platform/s3c-camif/
Dcamif-capture.c809 struct v4l2_subdev_format src_fmt; in camif_pipeline_validate() local
818 src_fmt.pad = pad->index; in camif_pipeline_validate()
819 src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in camif_pipeline_validate()
820 ret = v4l2_subdev_call(camif->sensor.sd, pad, get_fmt, NULL, &src_fmt); in camif_pipeline_validate()
824 if (src_fmt.format.width != camif->mbus_fmt.width || in camif_pipeline_validate()
825 src_fmt.format.height != camif->mbus_fmt.height || in camif_pipeline_validate()
826 src_fmt.format.code != camif->mbus_fmt.code) in camif_pipeline_validate()
/Linux-v5.4/sound/soc/intel/skylake/
Dskl-topology.c2661 struct skl_dfw_v4_module_fmt *src_fmt, in skl_tplg_fill_fmt_v4() argument
2667 dst_fmt[i].fmt.channels = src_fmt[i].channels; in skl_tplg_fill_fmt_v4()
2668 dst_fmt[i].fmt.s_freq = src_fmt[i].freq; in skl_tplg_fill_fmt_v4()
2669 dst_fmt[i].fmt.bit_depth = src_fmt[i].bit_depth; in skl_tplg_fill_fmt_v4()
2670 dst_fmt[i].fmt.valid_bit_depth = src_fmt[i].valid_bit_depth; in skl_tplg_fill_fmt_v4()
2671 dst_fmt[i].fmt.ch_cfg = src_fmt[i].ch_cfg; in skl_tplg_fill_fmt_v4()
2672 dst_fmt[i].fmt.ch_map = src_fmt[i].ch_map; in skl_tplg_fill_fmt_v4()
2674 src_fmt[i].interleaving_style; in skl_tplg_fill_fmt_v4()
2675 dst_fmt[i].fmt.sample_type = src_fmt[i].sample_type; in skl_tplg_fill_fmt_v4()
Dskl-topology.h134 struct skl_audio_data_format src_fmt; member

12