/linux-6.3-rc2/drivers/media/platform/rockchip/rkisp1/ |
A D | rkisp1-isp.c | 133 const struct rkisp1_mbus_info *src_fmt = isp->src_fmt; in rkisp1_config_isp() local 459 *src_fmt = *sink_fmt; in rkisp1_isp_init_config() 479 *src_fmt = *sink_fmt; in rkisp1_isp_init_config() 492 struct v4l2_mbus_framefmt *src_fmt; in rkisp1_isp_set_src_fmt() local 510 src_fmt->code = format->code; in rkisp1_isp_set_src_fmt() 519 src_fmt->code = sink_fmt->code; in rkisp1_isp_set_src_fmt() 527 src_fmt->width = src_crop->width; in rkisp1_isp_set_src_fmt() 528 src_fmt->height = src_crop->height; in rkisp1_isp_set_src_fmt() 576 *format = *src_fmt; in rkisp1_isp_set_src_fmt() 587 isp->src_fmt = src_info; in rkisp1_isp_set_src_fmt() [all …]
|
A D | rkisp1-resizer.c | 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() 428 *src_fmt = *sink_fmt; in rkisp1_rsz_init_config() 452 src_fmt->code = format->code; in rkisp1_rsz_set_src_fmt() 454 src_fmt->width = clamp_t(u32, format->width, in rkisp1_rsz_set_src_fmt() 461 *format = *src_fmt; in rkisp1_rsz_set_src_fmt() 572 src_fmt->code = sink_fmt->code; in rkisp1_rsz_set_sink_fmt() 573 src_fmt->colorspace = sink_fmt->colorspace; in rkisp1_rsz_set_sink_fmt() 574 src_fmt->xfer_func = sink_fmt->xfer_func; in rkisp1_rsz_set_sink_fmt() [all …]
|
A D | rkisp1-csi.c | 297 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_init_config() local 301 src_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_csi_init_config() 309 *src_fmt = *sink_fmt; in rkisp1_csi_init_config() 334 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_set_fmt() local 366 src_fmt = rkisp1_csi_get_pad_fmt(csi, sd_state, RKISP1_CSI_PAD_SRC, in rkisp1_csi_set_fmt() 368 *src_fmt = *sink_fmt; in rkisp1_csi_set_fmt()
|
/linux-6.3-rc2/drivers/media/platform/verisilicon/ |
A D | hantro_h1_jpeg_enc.c | 30 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()
|
A D | hantro_v4l2.c | 259 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane() 310 pix_mp->width = ctx->src_fmt.width; in hantro_try_fmt() 390 fmt = &ctx->src_fmt; in hantro_reset_encoded_fmt() 412 raw_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt() 417 encoded_fmt = &ctx->src_fmt; in hantro_reset_raw_fmt() 520 ctx->src_fmt = *pix_mp; in hantro_set_fmt_out() 639 sel->r.width = ctx->src_fmt.width; in vidioc_g_selection() 685 rect->width = ctx->src_fmt.width; in vidioc_s_selection() 686 rect->height = ctx->src_fmt.height; in vidioc_s_selection() 778 pixfmt = &ctx->src_fmt; in hantro_queue_setup() [all …]
|
A D | rockchip_vpu2_hw_jpeg_enc.c | 47 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()
|
A D | hantro_postproc.c | 106 if (ctx->src_fmt.width == ctx->dst_fmt.width) in down_scale_factor() 109 return DIV_ROUND_CLOSEST(ctx->src_fmt.width, ctx->dst_fmt.width); in down_scale_factor() 163 if (!ctx->src_fmt.width || !ctx->src_fmt.height) in hantro_postproc_g2_enum_framesizes() 167 fsize->discrete.width = ctx->src_fmt.width >> fsize->index; in hantro_postproc_g2_enum_framesizes() 168 fsize->discrete.height = ctx->src_fmt.height >> fsize->index; in hantro_postproc_g2_enum_framesizes() 203 v4l2_fill_pixfmt_mp(&pix_mp, fmt->fourcc, ctx->src_fmt.width, in hantro_postproc_alloc() 204 ctx->src_fmt.height); in hantro_postproc_alloc()
|
A D | hantro_g1_h264_dec.c | 52 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()
|
A D | rockchip_vpu2_hw_h264_dec.c | 263 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.3-rc2/drivers/media/platform/sunxi/sun8i-rotate/ |
A D | sun8i_rotate.c | 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() 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() 303 f->fmt.pix = ctx->src_fmt; in rotate_g_fmt_vid_out() 382 ctx->src_fmt = f->fmt.pix; in rotate_s_fmt_vid_out() 432 pix_fmt = &ctx->src_fmt; in rotate_queue_setup() 454 pix_fmt = &ctx->src_fmt; in rotate_buf_prepare() 656 ctx->src_fmt.width = 640; in rotate_open() [all …]
|
A D | sun8i-rotate.h | 108 struct v4l2_pix_format src_fmt; member
|
/linux-6.3-rc2/drivers/staging/media/sunxi/cedrus/ |
A D | cedrus_video.c | 234 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 …]
|
A D | cedrus_h264.c | 146 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()
|
A D | cedrus_hw.c | 45 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()
|
A D | cedrus_mpeg2.c | 116 reg = VE_DEC_MPEG_PICBOUNDSIZE_WIDTH(ctx->src_fmt.width); in cedrus_mpeg2_setup() 117 reg |= VE_DEC_MPEG_PICBOUNDSIZE_HEIGHT(ctx->src_fmt.height); in cedrus_mpeg2_setup()
|
/linux-6.3-rc2/drivers/media/test-drivers/vimc/ |
A D | vimc-scaler.c | 215 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()
|
/linux-6.3-rc2/drivers/media/platform/sunxi/sun8i-di/ |
A D | sun8i-di.c | 91 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() 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() 546 pix_fmt = &ctx->src_fmt; in deinterlace_buf_prepare() 723 ctx->src_fmt.width = 640; in deinterlace_open() [all …]
|
/linux-6.3-rc2/drivers/media/platform/ti/vpe/ |
A D | csc.c | 140 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()
|
A D | csc.h | 61 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt);
|
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/ |
A D | fimc-isp.c | 142 *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()
|
A D | fimc-isp-video.c | 452 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()
|
A D | fimc-lite.c | 768 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() 1081 struct v4l2_mbus_framefmt *src_fmt; in fimc_lite_subdev_set_fmt() local 1088 src_fmt = __fimc_lite_subdev_get_try_fmt(sd, sd_state, in fimc_lite_subdev_set_fmt() 1090 *src_fmt = *mf; in fimc_lite_subdev_set_fmt()
|
/linux-6.3-rc2/drivers/gpu/drm/exynos/ |
A D | exynos_drm_scaler.c | 144 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()
|
/linux-6.3-rc2/drivers/media/platform/st/sti/bdisp/ |
A D | bdisp-hw.c | 769 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-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/ |
A D | s5p_mfc_dec.c | 375 pix_mp->pixelformat = ctx->src_fmt->fourcc; in vidioc_g_fmt() 376 pix_mp->num_planes = ctx->src_fmt->num_planes; in vidioc_g_fmt() 448 ctx->src_fmt = find_format(f, MFC_FMT_DEC); in vidioc_s_fmt() 449 ctx->codec_mode = ctx->src_fmt->codec_mode; in vidioc_s_fmt() 800 if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_H264) { in vidioc_g_selection() 1205 ctx->src_fmt = find_format(&f, MFC_FMT_DEC); in s5p_mfc_dec_init() 1214 ctx->src_fmt, ctx->dst_fmt); in s5p_mfc_dec_init()
|