Home
last modified time | relevance | path

Searched refs:dst_fmt (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/drivers/media/platform/verisilicon/
H A Dhantro_postproc.c98 HANTRO_PP_REG_WRITE(vpu, input_width, MB_WIDTH(ctx->dst_fmt.width)); in hantro_postproc_g1_enable()
99 HANTRO_PP_REG_WRITE(vpu, input_height, MB_HEIGHT(ctx->dst_fmt.height)); in hantro_postproc_g1_enable()
102 HANTRO_PP_REG_WRITE(vpu, output_width, ctx->dst_fmt.width); in hantro_postproc_g1_enable()
103 HANTRO_PP_REG_WRITE(vpu, output_height, ctx->dst_fmt.height); in hantro_postproc_g1_enable()
104 HANTRO_PP_REG_WRITE(vpu, orig_width, MB_WIDTH(ctx->dst_fmt.width)); in hantro_postproc_g1_enable()
105 HANTRO_PP_REG_WRITE(vpu, display_width, ctx->dst_fmt.width); in hantro_postproc_g1_enable()
110 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()
127 chroma_offset = ctx->dst_fmt.plane_fmt[0].bytesperline * in hantro_postproc_g2_enable()
128 ctx->dst_fmt.height; in hantro_postproc_g2_enable()
[all …]
H A Dhantro_v4l2.c290 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane()
432 encoded_fmt = &ctx->dst_fmt; in hantro_reset_raw_fmt()
564 ctx->dst_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_out()
565 ctx->dst_fmt.xfer_func = pix_mp->xfer_func; in hantro_set_fmt_out()
611 ctx->dst_fmt = *pix_mp; in hantro_set_fmt_cap()
673 sel->r.width = ctx->dst_fmt.width; in vidioc_g_selection()
674 sel->r.height = ctx->dst_fmt.height; in vidioc_g_selection()
720 ctx->dst_fmt.width = rect->width; in vidioc_s_selection()
721 ctx->dst_fmt.height = rect->height; in vidioc_s_selection()
806 pixfmt = &ctx->dst_fmt; in hantro_queue_setup()
[all …]
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()
120 jpeg_ctx.width = ctx->dst_fmt.width; in hantro_h1_jpeg_enc_run()
121 jpeg_ctx.height = ctx->dst_fmt.height; in hantro_h1_jpeg_enc_run()
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()
149 jpeg_ctx.width = ctx->dst_fmt.width; in rockchip_vpu2_jpeg_enc_run()
150 jpeg_ctx.height = ctx->dst_fmt.height; in rockchip_vpu2_jpeg_enc_run()
H A Drockchip_vpu2_hw_mpeg2_dec.c121 addr += ALIGN(ctx->dst_fmt.width, 16); in rockchip_vpu2_mpeg2_dec_set_buffers()
213 reg = VDPU_REG_PIC_MB_WIDTH(MB_WIDTH(ctx->dst_fmt.width)) | in rockchip_vpu2_mpeg2_dec_run()
214 VDPU_REG_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->dst_fmt.height)) | in rockchip_vpu2_mpeg2_dec_run()
H A Dhantro_g1_mpeg2_dec.c118 addr += ALIGN(ctx->dst_fmt.width, 16); in hantro_g1_mpeg2_dec_set_buffers()
196 reg = G1_REG_PIC_MB_WIDTH(MB_WIDTH(ctx->dst_fmt.width)) | in hantro_g1_mpeg2_dec_run()
197 G1_REG_PIC_MB_HEIGHT_P(MB_HEIGHT(ctx->dst_fmt.height)) | in hantro_g1_mpeg2_dec_run()
H A Dhantro_vp8.c154 mb_width = DIV_ROUND_UP(ctx->dst_fmt.width, 16); in hantro_vp8_dec_init()
155 mb_height = DIV_ROUND_UP(ctx->dst_fmt.height, 16); in hantro_vp8_dec_init()
H A Dhantro_hevc.c159 if (ctx->dst_fmt.width != in hantro_hevc_validate_sps()
163 if (ctx->dst_fmt.height != in hantro_hevc_validate_sps()
H A Dhantro_g1_vp8_dec.c437 size_t height = ctx->dst_fmt.height; in hantro_g1_vp8_dec_run()
438 size_t width = ctx->dst_fmt.width; in hantro_g1_vp8_dec_run()
/openbmc/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_rotate.c117 ctx->dst_fmt.bytesperline, ctx->dst_fmt.height, in rotate_device_run()
121 ROTATE_SIZE(ctx->dst_fmt.width, ctx->dst_fmt.height)); in rotate_device_run()
293 f->fmt.pix = ctx->dst_fmt; in rotate_g_fmt_vid_cap()
354 ctx->dst_fmt = f->fmt.pix; in rotate_s_fmt_vid_cap()
386 ctx->dst_fmt.xfer_func = f->fmt.pix.xfer_func; in rotate_s_fmt_vid_out()
387 ctx->dst_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; in rotate_s_fmt_vid_out()
434 pix_fmt = &ctx->dst_fmt; in rotate_queue_setup()
456 pix_fmt = &ctx->dst_fmt; in rotate_buf_prepare()
586 if (fmt.width != ctx->dst_fmt.width || in rotate_s_ctrl()
587 fmt.height != ctx->dst_fmt.height || in rotate_s_ctrl()
[all …]
H A Dsun8i-rotate.h109 struct v4l2_pix_format dst_fmt; member
/openbmc/linux/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c139 width = ctx->dst_fmt.width; in deinterlace_device_run()
140 height = ctx->dst_fmt.height; in deinterlace_device_run()
141 stride = ctx->dst_fmt.bytesperline; in deinterlace_device_run()
398 f->fmt.pix = ctx->dst_fmt; in deinterlace_g_fmt_vid_cap()
458 ctx->dst_fmt = f->fmt.pix; in deinterlace_s_fmt_vid_cap()
526 pix_fmt = &ctx->dst_fmt; in deinterlace_queue_setup()
548 pix_fmt = &ctx->dst_fmt; in deinterlace_buf_prepare()
729 ctx->dst_fmt.field = V4L2_FIELD_NONE; in deinterlace_open()
730 ctx->dst_fmt.width = 640; in deinterlace_open()
731 ctx->dst_fmt.height = 480; in deinterlace_open()
[all …]
H A Dsun8i-di.h203 struct v4l2_pix_format dst_fmt; member
/openbmc/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_video.c225 f->fmt.pix = ctx->dst_fmt; in cedrus_g_fmt_vid_cap()
303 ctx->dst_fmt = f->fmt.pix; in cedrus_s_fmt_vid_cap()
310 ctx->dst_fmt.pixelformat = 0; in cedrus_reset_cap_format()
311 cedrus_try_fmt_vid_cap_p(ctx, &ctx->dst_fmt); in cedrus_reset_cap_format()
356 ctx->dst_fmt.colorspace = pix_fmt->colorspace; in cedrus_s_fmt_vid_out_p()
357 ctx->dst_fmt.xfer_func = pix_fmt->xfer_func; in cedrus_s_fmt_vid_out_p()
358 ctx->dst_fmt.ycbcr_enc = pix_fmt->ycbcr_enc; in cedrus_s_fmt_vid_out_p()
359 ctx->dst_fmt.quantization = pix_fmt->quantization; in cedrus_s_fmt_vid_out_p()
441 pix_fmt = &ctx->dst_fmt; in cedrus_queue_setup()
491 pix_fmt = &ctx->dst_fmt; in cedrus_buf_prepare()
H A Dcedrus.h120 struct v4l2_pix_format dst_fmt; member
237 return buf ? cedrus_buf_addr(buf, &ctx->dst_fmt, plane) : 0; in cedrus_dst_buf_addr()
H A Dcedrus_dec.c95 cedrus_dst_format_set(dev, &ctx->dst_fmt); in cedrus_device_run()
H A Dcedrus_h265.c817 unsigned int stride = ALIGN(ctx->dst_fmt.width / 4, 32); in cedrus_h265_setup()
819 reg = ctx->dst_fmt.sizeimage - in cedrus_h265_setup()
820 cedrus_h265_2bit_size(ctx->dst_fmt.width, in cedrus_h265_setup()
821 ctx->dst_fmt.height); in cedrus_h265_setup()
/openbmc/linux/drivers/media/platform/ti/vpe/
H A Dcsc.c140 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt) in csc_set_coeff() argument
164 if (V4L2_TYPE_IS_MULTIPLANAR(dst_fmt->type)) { in csc_set_coeff()
165 mp = &dst_fmt->fmt.pix_mp; in csc_set_coeff()
170 pix = &dst_fmt->fmt.pix; in csc_set_coeff()
H A Dcsc.h61 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt);
/openbmc/linux/sound/soc/intel/skylake/
H A Dskl-topology.c2158 struct skl_module_fmt *dst_fmt, in skl_tplg_fill_fmt() argument
2163 dst_fmt->channels = value; in skl_tplg_fill_fmt()
2167 dst_fmt->s_freq = value; in skl_tplg_fill_fmt()
2171 dst_fmt->bit_depth = value; in skl_tplg_fill_fmt()
2179 dst_fmt->ch_cfg = value; in skl_tplg_fill_fmt()
2187 dst_fmt->sample_type = value; in skl_tplg_fill_fmt()
2191 dst_fmt->ch_map = value; in skl_tplg_fill_fmt()
2206 struct skl_module_fmt *dst_fmt; in skl_tplg_widget_fill_fmt() local
3212 dst_fmt = &fmt->inputs[fmt_idx]; in skl_tplg_manifest_fill_fmt()
3224 mod_fmt = &dst_fmt->fmt; in skl_tplg_manifest_fill_fmt()
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_scaler.c207 u32 dst_fmt) in scaler_set_dst_fmt() argument
211 val = SCALER_DST_CFG_SET_COLOR_FORMAT(dst_fmt); in scaler_set_dst_fmt()
365 const struct scaler_format *src_fmt, *dst_fmt; in scaler_commit() local
369 dst_fmt = scaler_get_format(task->dst.buf.fourcc); in scaler_commit()
387 scaler_set_dst_fmt(scaler, dst_fmt->internal_fmt); in scaler_commit()
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_dec.c361 pix_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt()
443 ctx->dst_fmt = find_format(f, MFC_FMT_RAW); in vidioc_s_fmt()
985 for (i = 0; i < ctx->dst_fmt->num_planes; i++) { in s5p_mfc_buf_init()
1212 ctx->dst_fmt = find_format(&f, MFC_FMT_RAW); in s5p_mfc_dec_init()
1214 ctx->src_fmt, ctx->dst_fmt); in s5p_mfc_dec_init()
H A Ds5p_mfc_enc.c1369 pix_fmt_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt()
1370 pix_fmt_mp->num_planes = ctx->dst_fmt->num_planes; in vidioc_g_fmt()
1450 ctx->dst_fmt = find_format(f, MFC_FMT_ENC); in vidioc_s_fmt()
1452 ctx->codec_mode = ctx->dst_fmt->codec_mode; in vidioc_s_fmt()
2393 if (ctx->dst_fmt) in s5p_mfc_queue_setup()
2394 *plane_count = ctx->dst_fmt->num_planes; in s5p_mfc_queue_setup()
2440 ret = check_vb_with_fmt(ctx->dst_fmt, vb); in s5p_mfc_buf_init()
2473 ret = check_vb_with_fmt(ctx->dst_fmt, vb); in s5p_mfc_buf_prepare()
2702 ctx->dst_fmt = find_format(&f, MFC_FMT_ENC); in s5p_mfc_enc_init()
/openbmc/linux/drivers/media/platform/st/sti/bdisp/
H A Dbdisp-hw.c769 u32 src_fmt, dst_fmt; in bdisp_hw_build_node() local
787 dst_fmt = dst->fmt->pixelformat; in bdisp_hw_build_node()
831 node->tty |= bdisp_hw_color_format(dst_fmt); in bdisp_hw_build_node()
/openbmc/linux/drivers/staging/media/rkvdec/
H A Drkvdec-h264.c892 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
911 dst_fmt = &f->fmt.pix_mp; in config_registers()
912 hor_virstride = (sps->bit_depth_luma_minus8 + 8) * dst_fmt->width / 8; in config_registers()
913 ver_virstride = round_up(dst_fmt->height, 16); in config_registers()

12