| /linux/drivers/media/platform/chips-media/wave5/ |
| A D | wave5-vpu-dec.c | 586 width = inst->dst_fmt.width; in wave5_vpu_dec_try_fmt_cap() 587 height = inst->dst_fmt.height; in wave5_vpu_dec_try_fmt_cap() 600 width = inst->dst_fmt.width; in wave5_vpu_dec_try_fmt_cap() 601 height = inst->dst_fmt.height; in wave5_vpu_dec_try_fmt_cap() 800 s->r.width = inst->dst_fmt.width; in wave5_vpu_dec_g_selection() 801 s->r.height = inst->dst_fmt.height; in wave5_vpu_dec_g_selection() 836 s->r.width = inst->dst_fmt.width; in wave5_vpu_dec_s_selection() 837 s->r.height = inst->dst_fmt.height; in wave5_vpu_dec_s_selection() 1570 dst_fmt->pixelformat = dst_pix_fmt; in wave5_set_default_format() 1571 dst_fmt->field = V4L2_FIELD_NONE; in wave5_set_default_format() [all …]
|
| A D | wave5-vpu-enc.c | 156 u32 stride = ALIGN(inst->dst_fmt.width, 32); in start_encode() 403 wave5_update_pix_fmt(&f->fmt.pix_mp, inst->dst_fmt.width, inst->dst_fmt.height); in wave5_vpu_enc_try_fmt_cap() 443 inst->dst_fmt.width = f->fmt.pix_mp.width; in wave5_vpu_enc_s_fmt_cap() 446 inst->dst_fmt.field = f->fmt.pix_mp.field; in wave5_vpu_enc_s_fmt_cap() 447 inst->dst_fmt.flags = f->fmt.pix_mp.flags; in wave5_vpu_enc_s_fmt_cap() 589 s->r.width = inst->dst_fmt.width; in wave5_vpu_enc_g_selection() 590 s->r.height = inst->dst_fmt.height; in wave5_vpu_enc_g_selection() 1455 dst_fmt->field = V4L2_FIELD_NONE; in wave5_set_default_format() 1456 dst_fmt->flags = 0; in wave5_set_default_format() 1457 dst_fmt->num_planes = 1; in wave5_set_default_format() [all …]
|
| /linux/drivers/media/platform/verisilicon/ |
| A D | hantro_postproc.c | 98 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 …]
|
| A D | hantro_g2.c | 50 return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8; in hantro_g2_chroma_offset() 86 hantro_hevc_luma_compressed_size(ctx->dst_fmt.width, ctx->dst_fmt.height); in hantro_g2_chroma_compress_offset()
|
| A D | hantro_v4l2.c | 290 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane() 428 encoded_fmt = &ctx->dst_fmt; in hantro_reset_raw_fmt() 549 ctx->dst_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_out() 550 ctx->dst_fmt.xfer_func = pix_mp->xfer_func; in hantro_set_fmt_out() 589 ctx->dst_fmt = *pix_mp; in hantro_set_fmt_cap() 651 sel->r.width = ctx->dst_fmt.width; in vidioc_g_selection() 652 sel->r.height = ctx->dst_fmt.height; in vidioc_g_selection() 698 ctx->dst_fmt.width = rect->width; in vidioc_s_selection() 699 ctx->dst_fmt.height = rect->height; in vidioc_s_selection() 785 pixfmt = &ctx->dst_fmt; in hantro_queue_setup() [all …]
|
| 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() 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()
|
| 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() 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()
|
| A D | hantro_g1_mpeg2_dec.c | 118 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()
|
| A D | rockchip_vpu2_hw_mpeg2_dec.c | 121 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()
|
| A D | hantro_vp8.c | 154 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()
|
| A D | hantro_hevc.c | 164 if (ctx->dst_fmt.width != in hantro_hevc_validate_sps() 168 if (ctx->dst_fmt.height != in hantro_hevc_validate_sps()
|
| /linux/drivers/media/platform/sunxi/sun8i-rotate/ |
| A D | sun8i_rotate.c | 117 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 …]
|
| A D | sun8i-rotate.h | 109 struct v4l2_pix_format dst_fmt; member
|
| /linux/drivers/media/platform/sunxi/sun8i-di/ |
| A D | sun8i-di.c | 139 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 …]
|
| A D | sun8i-di.h | 203 struct v4l2_pix_format dst_fmt; member
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| A D | cedrus_video.c | 225 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()
|
| A D | cedrus.h | 120 struct v4l2_pix_format dst_fmt; member 237 return buf ? cedrus_buf_addr(buf, &ctx->dst_fmt, plane) : 0; in cedrus_dst_buf_addr()
|
| A D | cedrus_dec.c | 95 cedrus_dst_format_set(dev, &ctx->dst_fmt); in cedrus_device_run()
|
| A D | cedrus_h265.c | 817 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()
|
| /linux/drivers/media/platform/samsung/s5p-mfc/ |
| A D | s5p_mfc_dec.c | 372 pix_mp->num_planes = ctx->dst_fmt->num_planes; in vidioc_g_fmt() 375 pix_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt() 380 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in vidioc_g_fmt() 462 ctx->dst_fmt = find_format(f, MFC_FMT_RAW); in vidioc_s_fmt() 959 format = v4l2_format_info(ctx->dst_fmt->fourcc); in s5p_mfc_queue_setup() 984 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_queue_setup() 992 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_queue_setup() 1027 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_buf_init() 1040 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_buf_init() 1254 ctx->dst_fmt = find_format(&f, MFC_FMT_RAW); in s5p_mfc_dec_init() [all …]
|
| A D | s5p_mfc_opr_v6.c | 496 switch (ctx->dst_fmt->fourcc) { in s5p_mfc_dec_calc_dpb_size_v6() 626 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_set_dec_frame_buffer_v6() 635 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_set_dec_frame_buffer_v6() 666 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M || ctx->dst_fmt->fourcc == in s5p_mfc_set_dec_frame_buffer_v6() 1785 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_NV12MT_16X16) in s5p_mfc_init_decode_v6() 1794 if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YUV420M) in s5p_mfc_init_decode_v6() 1796 else if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_YVU420M) in s5p_mfc_init_decode_v6() 1798 else if (ctx->dst_fmt->fourcc == V4L2_PIX_FMT_NV21M) in s5p_mfc_init_decode_v6()
|
| /linux/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 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()
|
| A D | csc.h | 61 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt);
|
| /linux/drivers/gpu/drm/exynos/ |
| A D | exynos_drm_scaler.c | 207 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()
|
| /linux/drivers/media/platform/st/sti/bdisp/ |
| A D | bdisp-hw.c | 769 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()
|