Home
last modified time | relevance | path

Searched refs:src_fmt (Results 1 - 25 of 89) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-isp.c133 const struct rkisp1_mbus_info *src_fmt = isp->src_fmt; in rkisp1_config_isp() local
146 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
228 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
359 if (isp->src_fmt->pixel_enc != V4L2_PIXEL_ENC_BAYER) in rkisp1_isp_start()
449 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_isp_init_config() local
471 src_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_isp_init_config()
473 *src_fmt = *sink_fmt; in rkisp1_isp_init_config()
474 src_fmt->code = RKISP1_DEF_SRC_PAD_FMT; in rkisp1_isp_init_config()
475 src_fmt in rkisp1_isp_init_config()
506 struct v4l2_mbus_framefmt *src_fmt; rkisp1_isp_set_src_fmt() local
608 struct v4l2_mbus_framefmt *src_fmt; rkisp1_isp_set_src_crop() local
[all...]
H A Drkisp1-resizer.c303 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local
308 src_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SRC, in rkisp1_rsz_config()
310 src_yuv_info = rkisp1_rsz_get_yuv_mbus_info(src_fmt->code); in rkisp1_rsz_config()
326 src_y.width = src_fmt->width; in rkisp1_rsz_config()
327 src_y.height = src_fmt->height; in rkisp1_rsz_config()
348 src_fmt->width, src_fmt->height); in rkisp1_rsz_config()
415 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_config() local
436 src_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_rsz_init_config()
438 *src_fmt in rkisp1_rsz_init_config()
451 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; rkisp1_rsz_set_src_fmt() local
518 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; rkisp1_rsz_set_sink_fmt() local
[all...]
H A Drkisp1-csi.c312 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_init_config() local
316 src_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_csi_init_config()
324 *src_fmt = *sink_fmt; in rkisp1_csi_init_config()
349 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_set_fmt() local
381 src_fmt = rkisp1_csi_get_pad_fmt(csi, sd_state, RKISP1_CSI_PAD_SRC, in rkisp1_csi_set_fmt()
383 *src_fmt = *sink_fmt; in rkisp1_csi_set_fmt()
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A 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()
H A 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()
H A 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()
207 v4l2_fill_pixfmt_mp(&pix_mp, fmt->fourcc, ctx->src_fmt.width, in hantro_postproc_alloc()
208 ctx->src_fmt.height); in hantro_postproc_alloc()
H A Dhantro_v4l2.c277 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane()
328 pix_mp->width = ctx->src_fmt.width; in hantro_try_fmt()
329 pix_mp->height = ctx->src_fmt.height; in hantro_try_fmt()
435 encoded_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
525 pix_mp->pixelformat != ctx->src_fmt.pixelformat)) in hantro_set_fmt_out()
546 ctx->src_fmt = *pix_mp; in hantro_set_fmt_out()
626 ctx->src_fmt.colorspace = pix_mp->colorspace; in hantro_set_fmt_cap()
627 ctx->src_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_cap()
628 ctx->src_fmt.xfer_func = pix_mp->xfer_func; in hantro_set_fmt_cap()
629 ctx->src_fmt in hantro_set_fmt_cap()
[all...]
H A 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()
H A 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()
/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
H A Drkisp1-isp.c270 const struct rkisp1_isp_mbus_info *src_fmt, *sink_fmt; in rkisp1_config_isp() local
277 src_fmt = rkisp1->isp.src_fmt; in rkisp1_config_isp()
287 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
354 if (src_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
606 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_isp_init_config() local
623 src_fmt = v4l2_subdev_get_try_format(sd, cfg, in rkisp1_isp_init_config()
625 *src_fmt = *sink_fmt; in rkisp1_isp_init_config()
626 src_fmt->code = RKISP1_DEF_SRC_PAD_FMT; in rkisp1_isp_init_config()
634 src_fmt in rkisp1_isp_init_config()
651 struct v4l2_mbus_framefmt *src_fmt; rkisp1_isp_set_src_fmt() local
690 struct v4l2_mbus_framefmt *src_fmt; rkisp1_isp_set_src_crop() local
[all...]
H A Drkisp1-resizer.c394 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local
399 src_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SRC, in rkisp1_rsz_config()
401 src_yuv_info = rkisp1_rsz_get_yuv_mbus_info(src_fmt->code); in rkisp1_rsz_config()
417 src_y.width = src_fmt->width; in rkisp1_rsz_config()
418 src_y.height = src_fmt->height; in rkisp1_rsz_config()
439 src_fmt->width, src_fmt->height); in rkisp1_rsz_config()
495 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_config() local
514 src_fmt = v4l2_subdev_get_try_format(sd, cfg, RKISP1_RSZ_PAD_SINK); in rkisp1_rsz_init_config()
515 *src_fmt in rkisp1_rsz_init_config()
528 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; rkisp1_rsz_set_src_fmt() local
591 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; rkisp1_rsz_set_sink_fmt() local
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-rotate/
H A 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 in rotate_set_cap_format()
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun8i-rotate/
H A 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 in rotate_set_cap_format()
[all...]
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
H A Dhantro_v4l2.c217 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane()
268 pix_mp->width = ctx->src_fmt.width; in hantro_try_fmt()
269 pix_mp->height = ctx->src_fmt.height; in hantro_try_fmt()
338 fmt = &ctx->src_fmt; in hantro_reset_encoded_fmt()
360 raw_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
365 encoded_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt()
421 pix_mp->pixelformat != ctx->src_fmt.pixelformat)) in hantro_set_fmt_out()
442 ctx->src_fmt = *pix_mp; in hantro_set_fmt_out()
519 ctx->src_fmt.colorspace = pix_mp->colorspace; in hantro_set_fmt_cap()
520 ctx->src_fmt in hantro_set_fmt_cap()
[all...]
H A Dhantro_g1_h264_dec.c53 reg = G1_REG_DEC_CTRL1_PIC_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)) | in set_params()
54 G1_REG_DEC_CTRL1_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->src_fmt.height)) | in set_params()
248 offset = ALIGN(ctx->src_fmt.width, MB_DIM); in set_buffers()
259 offset = bytes_per_mb * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
260 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
267 offset += 32 * MB_WIDTH(ctx->src_fmt.width) * in set_buffers()
268 MB_HEIGHT(ctx->src_fmt.height); in set_buffers()
H A 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()
130 reg = H1_REG_ENC_CTRL_WIDTH(MB_WIDTH(ctx->src_fmt.width)) in hantro_h1_jpeg_enc_run()
131 | H1_REG_ENC_CTRL_HEIGHT(MB_HEIGHT(ctx->src_fmt.height)) in hantro_h1_jpeg_enc_run()
H A Drk3399_vpu_hw_jpeg_enc.c38 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_set_src_img_ctrl()
66 struct v4l2_pix_format_mplane *pix_fmt = &ctx->src_fmt; in rk3399_vpu_jpeg_enc_set_buffers()
162 reg = VEPU_REG_MB_WIDTH(MB_WIDTH(ctx->src_fmt.width)) in rk3399_vpu_jpeg_enc_run()
163 | VEPU_REG_MB_HEIGHT(MB_HEIGHT(ctx->src_fmt.height)) in rk3399_vpu_jpeg_enc_run()
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_video.c232 f->fmt.pix = ctx->src_fmt; in cedrus_g_fmt_vid_out()
250 pix_fmt->width = ctx->src_fmt.width; in cedrus_try_fmt_vid_cap()
251 pix_fmt->height = ctx->src_fmt.height; in cedrus_try_fmt_vid_cap()
315 f->fmt.pix.pixelformat != ctx->src_fmt.pixelformat)) in cedrus_s_fmt_vid_out()
331 ctx->src_fmt = f->fmt.pix; in cedrus_s_fmt_vid_out()
333 switch (ctx->src_fmt.pixelformat) { in cedrus_s_fmt_vid_out()
349 ctx->dst_fmt.width = ctx->src_fmt.width; in cedrus_s_fmt_vid_out()
350 ctx->dst_fmt.height = ctx->src_fmt.height; in cedrus_s_fmt_vid_out()
395 pix_fmt = &ctx->src_fmt; in cedrus_queue_setup()
445 pix_fmt = &ctx->src_fmt; in cedrus_buf_prepare()
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/
H A 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...]
/kernel/linux/linux-6.6/drivers/media/platform/sunxi/sun8i-di/
H A 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...]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c215 struct v4l2_mbus_framefmt *src_fmt; in vimc_scaler_set_fmt() local
224 src_fmt = vimc_scaler_pad_format(vscaler, sd_state, VIMC_SCALER_SRC, in vimc_scaler_set_fmt()
226 *src_fmt = *fmt; in vimc_scaler_set_fmt()
354 const struct v4l2_mbus_framefmt *src_fmt = &vscaler->fmt[VIMC_SCALER_SRC]; in vimc_scaler_fill_src_frame() local
361 for (src_y = 0; src_y < src_fmt->height; src_y++) { in vimc_scaler_fill_src_frame()
364 snk_y = (src_y * r->height) / src_fmt->height + r->top; in vimc_scaler_fill_src_frame()
367 for (src_x = 0; src_x < src_fmt->width; src_x++) { in vimc_scaler_fill_src_frame()
370 snk_x = (src_x * r->width) / src_fmt->width + r->left; in vimc_scaler_fill_src_frame()
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c91 width = ctx->src_fmt.width; in deinterlace_device_run()
92 height = ctx->src_fmt.height; in deinterlace_device_run()
93 stride = ctx->src_fmt.bytesperline; in deinterlace_device_run()
111 switch (ctx->src_fmt.pixelformat) { in deinterlace_device_run()
128 switch (ctx->src_fmt.pixelformat) { in deinterlace_device_run()
156 hstep = (ctx->src_fmt.width << 16) / ctx->dst_fmt.width; in deinterlace_device_run()
157 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...]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
H A 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()
680 isp->src_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH; in __isp_subdev_set_default_format()
681 isp->src_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT; in __isp_subdev_set_default_format()
682 isp->src_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
683 __is_set_frame_size(is, &isp->src_fmt); in __isp_subdev_set_default_format()
H A Dfimc-isp-video.c452 struct v4l2_subdev_format sink_fmt, src_fmt; in isp_video_pipeline_validate() local
473 src_fmt.pad = pad->index; in isp_video_pipeline_validate()
474 src_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in isp_video_pipeline_validate()
475 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &src_fmt); in isp_video_pipeline_validate()
479 if (src_fmt.format.width != sink_fmt.format.width || in isp_video_pipeline_validate()
480 src_fmt.format.height != sink_fmt.format.height || in isp_video_pipeline_validate()
481 src_fmt.format.code != sink_fmt.format.code) in isp_video_pipeline_validate()
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-isp.c142 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt()
239 isp->src_fmt = format.format; in fimc_isp_subdev_set_fmt()
240 __is_set_frame_size(is, &isp->src_fmt); in fimc_isp_subdev_set_fmt()
242 isp->src_fmt = *mf; in fimc_isp_subdev_set_fmt()
687 isp->src_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH; in __isp_subdev_set_default_format()
688 isp->src_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT; in __isp_subdev_set_default_format()
689 isp->src_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
690 __is_set_frame_size(is, &isp->src_fmt); in __isp_subdev_set_default_format()

Completed in 19 milliseconds

1234