Home
last modified time | relevance | path

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

12

/linux/drivers/media/platform/chips-media/wave5/
H A Dwave5-vpu-dec.c338 vpu_fmt = wave5_find_vpu_fmt(inst->dst_fmt.pixelformat, in handle_dynamic_resolution_change()
343 wave5_update_pix_fmt(&inst->dst_fmt, in handle_dynamic_resolution_change()
412 if (inst->dst_fmt.num_planes == 1) { in wave5_vpu_dec_finish_decode()
414 inst->dst_fmt.plane_fmt[0].sizeimage); in wave5_vpu_dec_finish_decode()
415 } else if (inst->dst_fmt.num_planes == 2) { in wave5_vpu_dec_finish_decode()
417 inst->dst_fmt.plane_fmt[0].sizeimage); in wave5_vpu_dec_finish_decode()
419 inst->dst_fmt.plane_fmt[1].sizeimage); in wave5_vpu_dec_finish_decode()
420 } else if (inst->dst_fmt.num_planes == 3) { in wave5_vpu_dec_finish_decode()
422 inst->dst_fmt.plane_fmt[0].sizeimage); in wave5_vpu_dec_finish_decode()
424 inst->dst_fmt.plane_fmt[1].sizeimage); in wave5_vpu_dec_finish_decode()
[all …]
H A Dwave5-vpu-enc.c149 luma_size = stride * inst->dst_fmt.height; in start_encode()
391 width = inst->dst_fmt.width; in wave5_vpu_enc_try_fmt_cap()
392 height = inst->dst_fmt.height; in wave5_vpu_enc_try_fmt_cap()
393 f->fmt.pix_mp.pixelformat = inst->dst_fmt.pixelformat; in wave5_vpu_enc_try_fmt_cap()
432 inst->dst_fmt.width = f->fmt.pix_mp.width; in wave5_vpu_enc_s_fmt_cap()
433 inst->dst_fmt.height = f->fmt.pix_mp.height; in wave5_vpu_enc_s_fmt_cap()
434 inst->dst_fmt.pixelformat = f->fmt.pix_mp.pixelformat; in wave5_vpu_enc_s_fmt_cap()
435 inst->dst_fmt.field = f->fmt.pix_mp.field; in wave5_vpu_enc_s_fmt_cap()
436 inst->dst_fmt.flags = f->fmt.pix_mp.flags; in wave5_vpu_enc_s_fmt_cap()
437 inst->dst_fmt.num_planes = f->fmt.pix_mp.num_planes; in wave5_vpu_enc_s_fmt_cap()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_postproc.c100 HANTRO_PP_REG_WRITE(vpu, input_width, MB_WIDTH(ctx->dst_fmt.width)); in hantro_postproc_g1_enable()
101 HANTRO_PP_REG_WRITE(vpu, input_height, MB_HEIGHT(ctx->dst_fmt.height)); in hantro_postproc_g1_enable()
104 HANTRO_PP_REG_WRITE(vpu, output_width, ctx->dst_fmt.width); in hantro_postproc_g1_enable()
105 HANTRO_PP_REG_WRITE(vpu, output_height, ctx->dst_fmt.height); in hantro_postproc_g1_enable()
106 HANTRO_PP_REG_WRITE(vpu, orig_width, MB_WIDTH(ctx->dst_fmt.width)); in hantro_postproc_g1_enable()
107 HANTRO_PP_REG_WRITE(vpu, display_width, ctx->dst_fmt.width); in hantro_postproc_g1_enable()
108 HANTRO_PP_REG_WRITE(vpu, input_width_ext, MB_WIDTH(ctx->dst_fmt.width) >> 9); in hantro_postproc_g1_enable()
109 HANTRO_PP_REG_WRITE(vpu, input_height_ext, MB_HEIGHT(ctx->dst_fmt.height >> 8)); in hantro_postproc_g1_enable()
114 if (ctx->src_fmt.width <= ctx->dst_fmt.width) in down_scale_factor()
117 return DIV_ROUND_CLOSEST(ctx->src_fmt.width, ctx->dst_fmt.width); in down_scale_factor()
[all …]
H A Dhantro_v4l2.c317 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane()
345 vpu_fmt = hantro_find_format(ctx, ctx->dst_fmt.pixelformat); in hantro_try_fmt()
455 encoded_fmt = &ctx->dst_fmt; in hantro_reset_raw_fmt()
575 ctx->dst_fmt.colorspace = pix_mp->colorspace; in hantro_set_fmt_out()
576 ctx->dst_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_out()
577 ctx->dst_fmt.xfer_func = pix_mp->xfer_func; in hantro_set_fmt_out()
578 ctx->dst_fmt.quantization = pix_mp->quantization; in hantro_set_fmt_out()
605 (pix_mp->pixelformat != ctx->dst_fmt.pixelformat || in hantro_set_fmt_cap()
606 pix_mp->height != ctx->dst_fmt.height || in hantro_set_fmt_cap()
607 pix_mp->width != ctx->dst_fmt.width)) in hantro_set_fmt_cap()
[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 Dhantro_g2.c136 hantro_hevc_luma_compressed_size(ctx->dst_fmt.width, ctx->dst_fmt.height); in hantro_g2_chroma_compress_offset()
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 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_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.c164 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/
H A Dsun8i_rotate.c112 fmt = rotate_find_format(ctx->dst_fmt.pixelformat); in rotate_device_run()
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()
385 ctx->dst_fmt.colorspace = f->fmt.pix.colorspace; in rotate_s_fmt_vid_out()
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()
388 ctx->dst_fmt.quantization = f->fmt.pix.quantization; in rotate_s_fmt_vid_out()
390 return rotate_set_cap_format(ctx, &ctx->dst_fmt, ctx->rotate); in rotate_s_fmt_vid_out()
[all …]
/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()
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()
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()
481 ctx->dst_fmt.colorspace = f->fmt.pix.colorspace; in deinterlace_s_fmt_vid_out()
482 ctx->dst_fmt.xfer_func = f->fmt.pix.xfer_func; in deinterlace_s_fmt_vid_out()
483 ctx->dst_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; in deinterlace_s_fmt_vid_out()
[all …]
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_video.c238 f->fmt.pix = ctx->dst_fmt; in cedrus_g_fmt_vid_cap()
316 ctx->dst_fmt = f->fmt.pix; in cedrus_s_fmt_vid_cap()
323 ctx->dst_fmt.pixelformat = 0; in cedrus_reset_cap_format()
324 cedrus_try_fmt_vid_cap_p(ctx, &ctx->dst_fmt); in cedrus_reset_cap_format()
369 ctx->dst_fmt.colorspace = pix_fmt->colorspace; in cedrus_s_fmt_vid_out_p()
370 ctx->dst_fmt.xfer_func = pix_fmt->xfer_func; in cedrus_s_fmt_vid_out_p()
371 ctx->dst_fmt.ycbcr_enc = pix_fmt->ycbcr_enc; in cedrus_s_fmt_vid_out_p()
372 ctx->dst_fmt.quantization = pix_fmt->quantization; in cedrus_s_fmt_vid_out_p()
454 pix_fmt = &ctx->dst_fmt; in cedrus_queue_setup()
504 pix_fmt = &ctx->dst_fmt; in cedrus_buf_prepare()
H A Dcedrus.h120 struct v4l2_pix_format dst_fmt; member
242 return buf ? cedrus_buf_addr(buf, &ctx->dst_fmt, plane) : 0; in cedrus_dst_buf_addr()
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_dec.c372 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()
1015 for (i = 0; i < ctx->dst_fmt->num_planes; i++) { in s5p_mfc_buf_init()
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()
[all …]
/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);
/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vdpu381-h264.c215 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
258 dst_fmt = &f->fmt.pix_mp; in config_registers()
259 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
260 ver_virstride = dst_fmt->height; in config_registers()
282 pixels = dst_fmt->height * dst_fmt->width; in config_registers()
H A Drkvdec-vdpu383-h264.c317 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
341 dst_fmt = &f->fmt.pix_mp; in config_registers()
342 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
343 ver_virstride = dst_fmt->height; in config_registers()
346 pixels = dst_fmt->height * dst_fmt->width; in config_registers()
H A Drkvdec-vdpu381-hevc.c387 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
423 dst_fmt = &f->fmt.pix_mp; in config_registers()
424 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
425 ver_virstride = dst_fmt->height; in config_registers()
447 pixels = dst_fmt->height * dst_fmt->width; in config_registers()
H A Drkvdec-vdpu383-hevc.c408 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
432 dst_fmt = &f->fmt.pix_mp; in config_registers()
433 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
434 ver_virstride = dst_fmt->height; in config_registers()
437 pixels = dst_fmt->height * dst_fmt->width; in config_registers()
H A Drkvdec-h264.c257 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
278 dst_fmt = &f->fmt.pix_mp; in config_registers()
279 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
280 ver_virstride = dst_fmt->height; in config_registers()
H A Drkvdec-hevc.c413 const struct v4l2_pix_format_mplane *dst_fmt; in config_registers() local
433 dst_fmt = &f->fmt.pix_mp; in config_registers()
434 hor_virstride = dst_fmt->plane_fmt[0].bytesperline; in config_registers()
435 ver_virstride = dst_fmt->height; in config_registers()
/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()

12