Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/media/platform/rockchip/rkisp1/
Drkisp1-isp.c210 const struct rkisp1_mbus_info *src_fmt; in rkisp1_config_isp() local
223 src_fmt = rkisp1_mbus_info_get_by_code(src_frm->code); in rkisp1_config_isp()
227 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
309 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
436 const struct v4l2_mbus_framefmt *src_fmt; in rkisp1_isp_start() local
456 src_fmt = v4l2_subdev_state_get_format(sd_state, in rkisp1_isp_start()
458 src_info = rkisp1_mbus_info_get_by_code(src_fmt->code); in rkisp1_isp_start()
553 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_isp_init_state() local
575 src_fmt = v4l2_subdev_state_get_format(sd_state, in rkisp1_isp_init_state()
577 *src_fmt = *sink_fmt; in rkisp1_isp_init_state()
[all …]
Drkisp1-resizer.c271 const struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local
277 src_fmt = v4l2_subdev_state_get_format(sd_state, RKISP1_RSZ_PAD_SRC); in rkisp1_rsz_config()
280 src_yuv_info = rkisp1_rsz_get_yuv_mbus_info(src_fmt->code); in rkisp1_rsz_config()
295 src_y.width = src_fmt->width; in rkisp1_rsz_config()
296 src_y.height = src_fmt->height; in rkisp1_rsz_config()
310 src_fmt->width, src_fmt->height, in rkisp1_rsz_config()
382 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_state() local
401 src_fmt = v4l2_subdev_state_get_format(sd_state, RKISP1_RSZ_PAD_SINK); in rkisp1_rsz_init_state()
402 *src_fmt = *sink_fmt; in rkisp1_rsz_init_state()
414 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_set_src_fmt() local
[all …]
Drkisp1-csi.c291 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_init_state() local
294 src_fmt = v4l2_subdev_state_get_format(sd_state, RKISP1_CSI_PAD_SRC); in rkisp1_csi_init_state()
301 *src_fmt = *sink_fmt; in rkisp1_csi_init_state()
312 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_set_fmt() local
338 src_fmt = v4l2_subdev_state_get_format(sd_state, RKISP1_CSI_PAD_SRC); in rkisp1_csi_set_fmt()
339 *src_fmt = *sink_fmt; in rkisp1_csi_set_fmt()
/linux-6.12.1/drivers/media/test-drivers/vimc/
Dvimc-scaler.c39 struct v4l2_mbus_framefmt src_fmt; member
188 struct v4l2_mbus_framefmt *src_fmt; in vimc_scaler_set_fmt() local
197 src_fmt = v4l2_subdev_state_get_format(sd_state, VIMC_SCALER_SRC); in vimc_scaler_set_fmt()
198 *src_fmt = *fmt; in vimc_scaler_set_fmt()
295 vscaler->hw.src_fmt = *format; in vimc_scaler_s_stream()
338 const struct v4l2_mbus_framefmt *src_fmt = &vscaler->hw.src_fmt; in vimc_scaler_fill_src_frame() local
344 for (src_y = 0; src_y < src_fmt->height; src_y++) { in vimc_scaler_fill_src_frame()
347 snk_y = (src_y * r->height) / src_fmt->height + r->top; in vimc_scaler_fill_src_frame()
350 for (src_x = 0; src_x < src_fmt->width; src_x++) { in vimc_scaler_fill_src_frame()
353 snk_x = (src_x * r->width) / src_fmt->width + r->left; in vimc_scaler_fill_src_frame()
Dvimc-debayer.c322 const struct v4l2_mbus_framefmt *src_fmt; in vimc_debayer_s_stream() local
332 src_fmt = v4l2_subdev_state_get_format(state, 1); in vimc_debayer_s_stream()
335 vpix = vimc_pix_map_by_code(src_fmt->code); in vimc_debayer_s_stream()
336 frame_size = src_fmt->width * src_fmt->height * vpix->bpp; in vimc_debayer_s_stream()
349 vdebayer->hw.src_code = src_fmt->code; in vimc_debayer_s_stream()
/linux-6.12.1/drivers/media/platform/chips-media/wave5/
Dwave5-helper.c159 f->fmt.pix_mp.width = inst->src_fmt.width; in wave5_vpu_g_fmt_out()
160 f->fmt.pix_mp.height = inst->src_fmt.height; in wave5_vpu_g_fmt_out()
161 f->fmt.pix_mp.pixelformat = inst->src_fmt.pixelformat; in wave5_vpu_g_fmt_out()
162 f->fmt.pix_mp.field = inst->src_fmt.field; in wave5_vpu_g_fmt_out()
163 f->fmt.pix_mp.flags = inst->src_fmt.flags; in wave5_vpu_g_fmt_out()
164 f->fmt.pix_mp.num_planes = inst->src_fmt.num_planes; in wave5_vpu_g_fmt_out()
166 f->fmt.pix_mp.plane_fmt[i].bytesperline = inst->src_fmt.plane_fmt[i].bytesperline; in wave5_vpu_g_fmt_out()
167 f->fmt.pix_mp.plane_fmt[i].sizeimage = inst->src_fmt.plane_fmt[i].sizeimage; in wave5_vpu_g_fmt_out()
Dwave5-vpu-enc.c182 if (inst->src_fmt.num_planes == 1) { in start_encode()
187 } else if (inst->src_fmt.num_planes == 2) { in start_encode()
193 } else if (inst->src_fmt.num_planes == 3) { in start_encode()
509 f->fmt.pix_mp.pixelformat = inst->src_fmt.pixelformat; in wave5_vpu_enc_try_fmt_out()
510 f->fmt.pix_mp.num_planes = inst->src_fmt.num_planes; in wave5_vpu_enc_try_fmt_out()
511 wave5_update_pix_fmt(&f->fmt.pix_mp, inst->src_fmt.width, inst->src_fmt.height); in wave5_vpu_enc_try_fmt_out()
541 inst->src_fmt.width = f->fmt.pix_mp.width; in wave5_vpu_enc_s_fmt_out()
542 inst->src_fmt.height = f->fmt.pix_mp.height; in wave5_vpu_enc_s_fmt_out()
543 inst->src_fmt.pixelformat = f->fmt.pix_mp.pixelformat; in wave5_vpu_enc_s_fmt_out()
544 inst->src_fmt.field = f->fmt.pix_mp.field; in wave5_vpu_enc_s_fmt_out()
[all …]
Dwave5-vpu-dec.c398 wave5_update_pix_fmt(&inst->src_fmt, initial_info->pic_width, in handle_dynamic_resolution_change()
727 f->fmt.pix_mp.pixelformat = inst->src_fmt.pixelformat; in wave5_vpu_dec_try_fmt_out()
728 f->fmt.pix_mp.num_planes = inst->src_fmt.num_planes; in wave5_vpu_dec_try_fmt_out()
729 wave5_update_pix_fmt(&f->fmt.pix_mp, inst->src_fmt.width, inst->src_fmt.height); in wave5_vpu_dec_try_fmt_out()
766 inst->src_fmt.width = f->fmt.pix_mp.width; in wave5_vpu_dec_s_fmt_out()
767 inst->src_fmt.height = f->fmt.pix_mp.height; in wave5_vpu_dec_s_fmt_out()
768 inst->src_fmt.pixelformat = f->fmt.pix_mp.pixelformat; in wave5_vpu_dec_s_fmt_out()
769 inst->src_fmt.field = f->fmt.pix_mp.field; in wave5_vpu_dec_s_fmt_out()
770 inst->src_fmt.flags = f->fmt.pix_mp.flags; in wave5_vpu_dec_s_fmt_out()
771 inst->src_fmt.num_planes = f->fmt.pix_mp.num_planes; in wave5_vpu_dec_s_fmt_out()
[all …]
/linux-6.12.1/drivers/media/platform/verisilicon/
Dhantro_h1_jpeg_enc.c30 overfill_r = ctx->src_fmt.width - ctx->dst_fmt.width; in hantro_h1_set_src_img_ctrl()
31 overfill_b = ctx->src_fmt.height - ctx->dst_fmt.height; in hantro_h1_set_src_img_ctrl()
33 reg = H1_REG_IN_IMG_CTRL_ROW_LEN(ctx->src_fmt.width) in hantro_h1_set_src_img_ctrl()
45 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in hantro_h1_jpeg_enc_set_buffers()
145 reg = H1_REG_ENC_CTRL_WIDTH(MB_WIDTH(ctx->src_fmt.width)) in hantro_h1_jpeg_enc_run()
146 | H1_REG_ENC_CTRL_HEIGHT(MB_HEIGHT(ctx->src_fmt.height)) in hantro_h1_jpeg_enc_run()
Drockchip_vpu2_hw_jpeg_enc.c47 overfill_r = ctx->src_fmt.width - ctx->dst_fmt.width; in rockchip_vpu2_set_src_img_ctrl()
48 overfill_b = ctx->src_fmt.height - ctx->dst_fmt.height; in rockchip_vpu2_set_src_img_ctrl()
50 reg = VEPU_REG_IN_IMG_CTRL_ROW_LEN(ctx->src_fmt.width); in rockchip_vpu2_set_src_img_ctrl()
72 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rockchip_vpu2_jpeg_enc_set_buffers()
176 reg = VEPU_REG_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)) in rockchip_vpu2_jpeg_enc_run()
177 | VEPU_REG_MB_HEIGHT(MB_HEIGHT(ctx->src_fmt.height)) in rockchip_vpu2_jpeg_enc_run()
Dhantro_v4l2.c277 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane()
324 pix_mp->width = ctx->src_fmt.width; in hantro_try_fmt()
325 pix_mp->height = ctx->src_fmt.height; in hantro_try_fmt()
431 encoded_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
518 if (vb2_is_streaming(vq) && pix_mp->pixelformat != ctx->src_fmt.pixelformat) { in hantro_set_fmt_out()
531 ctx->src_fmt = *pix_mp; in hantro_set_fmt_out()
604 ctx->src_fmt.colorspace = pix_mp->colorspace; in hantro_set_fmt_cap()
605 ctx->src_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_cap()
606 ctx->src_fmt.xfer_func = pix_mp->xfer_func; in hantro_set_fmt_cap()
607 ctx->src_fmt.quantization = pix_mp->quantization; in hantro_set_fmt_cap()
[all …]
Dhantro_postproc.c110 if (ctx->src_fmt.width <= ctx->dst_fmt.width) in down_scale_factor()
113 return DIV_ROUND_CLOSEST(ctx->src_fmt.width, ctx->dst_fmt.width); in down_scale_factor()
167 if (!ctx->src_fmt.width || !ctx->src_fmt.height) in hantro_postproc_g2_enum_framesizes()
171 fsize->discrete.width = ctx->src_fmt.width >> fsize->index; in hantro_postproc_g2_enum_framesizes()
172 fsize->discrete.height = ctx->src_fmt.height >> fsize->index; in hantro_postproc_g2_enum_framesizes()
206 v4l2_fill_pixfmt_mp(&pix_mp, fmt->fourcc, ctx->src_fmt.width, in hantro_postproc_buffer_size()
207 ctx->src_fmt.height); in hantro_postproc_buffer_size()
Dhantro_g1_h264_dec.c52 reg = G1_REG_DEC_CTRL1_PIC_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)) | in set_params()
53 G1_REG_DEC_CTRL1_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->src_fmt.height)) | in set_params()
222 offset = ALIGN(ctx->src_fmt.width, MB_DIM); in set_buffers()
233 offset = bytes_per_mb * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
234 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
241 offset += 32 * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
242 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
Drockchip_vpu2_hw_h264_dec.c263 VDPU_REG_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->src_fmt.height)) | in set_params()
264 VDPU_REG_PIC_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)); in set_params()
439 offset = ALIGN(ctx->src_fmt.width, MB_DIM); in set_buffers()
450 offset = bytes_per_mb * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
451 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
458 offset += 32 * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
459 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c87 fmt = rotate_find_format(ctx->src_fmt.pixelformat); in rotate_device_run()
94 ctx->src_fmt.bytesperline, ctx->src_fmt.height, in rotate_device_run()
98 ROTATE_SIZE(ctx->src_fmt.width, ctx->src_fmt.height)); in rotate_device_run()
264 fmt = rotate_find_format(ctx->src_fmt.pixelformat); in rotate_set_cap_format()
271 f->pixelformat = ctx->src_fmt.pixelformat; in rotate_set_cap_format()
276 f->width = ctx->src_fmt.height; in rotate_set_cap_format()
277 f->height = ctx->src_fmt.width; in rotate_set_cap_format()
279 f->width = ctx->src_fmt.width; in rotate_set_cap_format()
280 f->height = ctx->src_fmt.height; in rotate_set_cap_format()
303 f->fmt.pix = ctx->src_fmt; in rotate_g_fmt_vid_out()
[all …]
/linux-6.12.1/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c234 f->fmt.pix = ctx->src_fmt; in cedrus_g_fmt_vid_out()
249 pix_fmt->width = ctx->src_fmt.width; in cedrus_try_fmt_vid_cap_p()
250 pix_fmt->height = ctx->src_fmt.height; in cedrus_try_fmt_vid_cap_p()
324 ctx->src_fmt = *pix_fmt; in cedrus_s_fmt_vid_out_p()
328 switch (ctx->src_fmt.pixelformat) { in cedrus_s_fmt_vid_out_p()
340 switch (ctx->src_fmt.pixelformat) { in cedrus_s_fmt_vid_out_p()
367 ctx->src_fmt.pixelformat = 0; in cedrus_reset_out_format()
368 cedrus_s_fmt_vid_out_p(ctx, &ctx->src_fmt); in cedrus_reset_out_format()
385 f->fmt.pix.pixelformat != ctx->src_fmt.pixelformat)) in cedrus_s_fmt_vid_out()
439 pix_fmt = &ctx->src_fmt; in cedrus_queue_setup()
[all …]
Dcedrus_h264.c146 field_size = DIV_ROUND_UP(ctx->src_fmt.width, 16) * in cedrus_write_frame_list()
147 DIV_ROUND_UP(ctx->src_fmt.height, 16) * 16; in cedrus_write_frame_list()
366 if (ctx->src_fmt.width > 2048) { in cedrus_set_params()
552 if (ctx->src_fmt.width > 2048) in cedrus_h264_start()
561 pic_info_size += ctx->src_fmt.height * 2 * 64; in cedrus_h264_start()
590 if (ctx->src_fmt.width > 2048) { in cedrus_h264_start()
597 ALIGN(ctx->src_fmt.width, 32) * 12; in cedrus_h264_start()
613 ALIGN(ctx->src_fmt.width, 64) * 5 * 2; in cedrus_h264_start()
Dcedrus_hw.c45 switch (ctx->src_fmt.pixelformat) { in cedrus_engine_enable()
64 if (ctx->src_fmt.width == 4096) in cedrus_engine_enable()
66 if (ctx->src_fmt.width > 2048) in cedrus_engine_enable()
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c92 width = ctx->src_fmt.width; in deinterlace_device_run()
93 height = ctx->src_fmt.height; in deinterlace_device_run()
94 stride = ctx->src_fmt.bytesperline; in deinterlace_device_run()
112 switch (ctx->src_fmt.pixelformat) { in deinterlace_device_run()
129 switch (ctx->src_fmt.pixelformat) { in deinterlace_device_run()
157 hstep = (ctx->src_fmt.width << 16) / ctx->dst_fmt.width; in deinterlace_device_run()
158 vstep = (ctx->src_fmt.height << 16) / ctx->dst_fmt.height; in deinterlace_device_run()
408 f->fmt.pix = ctx->src_fmt; in deinterlace_g_fmt_vid_out()
478 ctx->src_fmt = f->fmt.pix; in deinterlace_s_fmt_vid_out()
524 pix_fmt = &ctx->src_fmt; in deinterlace_queue_setup()
[all …]
/linux-6.12.1/drivers/media/platform/ti/vpe/
Dcsc.c140 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt) in csc_set_coeff() argument
152 if (V4L2_TYPE_IS_MULTIPLANAR(src_fmt->type)) { in csc_set_coeff()
153 mp = &src_fmt->fmt.pix_mp; in csc_set_coeff()
158 pix = &src_fmt->fmt.pix; in csc_set_coeff()
/linux-6.12.1/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_enc.c1212 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->src_fmt->fourcc == in enc_pre_frame_start()
1254 if (ctx->src_fmt->fourcc == in enc_post_frame_start()
1256 ctx->src_fmt->fourcc == in enc_post_frame_start()
1276 if (ctx->src_fmt->fourcc == in enc_post_frame_start()
1278 ctx->src_fmt->fourcc == V4L2_PIX_FMT_YVU420M) in enc_post_frame_start()
1412 pix_fmt_mp->pixelformat = ctx->src_fmt->fourcc; in vidioc_g_fmt()
1413 pix_fmt_mp->num_planes = ctx->src_fmt->num_planes; in vidioc_g_fmt()
1419 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->src_fmt->fourcc == in vidioc_g_fmt()
1500 ctx->src_fmt = find_format(f, MFC_FMT_RAW); in vidioc_s_fmt()
1503 mfc_debug(2, "codec number: %d\n", ctx->src_fmt->codec_mode); in vidioc_s_fmt()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/exynos4-is/
Dfimc-isp.c142 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt()
238 isp->src_fmt = format.format; in fimc_isp_subdev_set_fmt()
239 __is_set_frame_size(is, &isp->src_fmt); in fimc_isp_subdev_set_fmt()
241 isp->src_fmt = *mf; in fimc_isp_subdev_set_fmt()
685 isp->src_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH; in __isp_subdev_set_default_format()
686 isp->src_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT; in __isp_subdev_set_default_format()
687 isp->src_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
688 __is_set_frame_size(is, &isp->src_fmt); in __isp_subdev_set_default_format()
Dfimc-isp-video.c459 struct v4l2_subdev_format src_fmt = { in isp_video_pipeline_validate() local
478 src_fmt.pad = pad->index; in isp_video_pipeline_validate()
479 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in isp_video_pipeline_validate()
483 if (src_fmt.format.width != sink_fmt.format.width || in isp_video_pipeline_validate()
484 src_fmt.format.height != sink_fmt.format.height || in isp_video_pipeline_validate()
485 src_fmt.format.code != sink_fmt.format.code) in isp_video_pipeline_validate()
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-pipe.c241 const struct v4l2_mbus_framefmt *src_fmt; in mxc_isi_pipe_enable() local
267 src_fmt = v4l2_subdev_state_get_format(state, MXC_ISI_PIPE_PAD_SOURCE); in mxc_isi_pipe_enable()
273 src_info = mxc_isi_bus_format_by_code(src_fmt->code, in mxc_isi_pipe_enable()
832 const struct v4l2_mbus_framefmt *src_fmt; in mxc_isi_pipe_acquire() local
840 src_fmt = v4l2_subdev_state_get_format(state, MXC_ISI_PIPE_PAD_SOURCE); in mxc_isi_pipe_acquire()
845 src_info = mxc_isi_bus_format_by_code(src_fmt->code, in mxc_isi_pipe_acquire()
848 bypass = sink_fmt->width == src_fmt->width && in mxc_isi_pipe_acquire()
849 sink_fmt->height == src_fmt->height && in mxc_isi_pipe_acquire()
/linux-6.12.1/drivers/gpu/drm/exynos/
Dexynos_drm_scaler.c144 u32 src_fmt, u32 tile) in scaler_set_src_fmt() argument
148 val = SCALER_SRC_CFG_SET_COLOR_FORMAT(src_fmt) | (tile << 10); in scaler_set_src_fmt()
365 const struct scaler_format *src_fmt, *dst_fmt; in scaler_commit() local
368 src_fmt = scaler_get_format(task->src.buf.fourcc); in scaler_commit()
381 scaler, src_fmt->internal_fmt, task->src.buf.modifier != 0); in scaler_commit()
384 scaler_set_src_luma_chroma_pos(scaler, src_pos, src_fmt); in scaler_commit()

123