| /linux/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 112 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 …]
|
| H A D | sun8i-rotate.h | 109 struct v4l2_pix_format dst_fmt; member
|
| /linux/drivers/media/platform/chips-media/wave5/ |
| H A D | wave5-vpu-enc.c | 149 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/sunxi/sun8i-di/ |
| H 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() 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 …]
|
| H A D | sun8i-di.h | 203 struct v4l2_pix_format dst_fmt; member
|
| /linux/drivers/media/platform/verisilicon/ |
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H 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()
|
| H A D | hantro_g1_vp8_dec.c | 437 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()
|
| H A D | rockchip_vpu2_hw_vp8_dec.c | 514 size_t height = ctx->dst_fmt.height; in rockchip_vpu2_vp8_dec_run() 515 size_t width = ctx->dst_fmt.width; in rockchip_vpu2_vp8_dec_run()
|
| /linux/drivers/media/platform/ti/vpe/ |
| H 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()
|
| H A D | csc.h | 61 struct v4l2_format *src_fmt, struct v4l2_format *dst_fmt);
|
| /linux/drivers/media/platform/rockchip/rkvdec/ |
| H A D | rkvdec-vdpu381-h264.c | 215 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 D | rkvdec-vdpu383-h264.c | 317 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 D | rkvdec-vdpu381-hevc.c | 387 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 D | rkvdec-vdpu383-hevc.c | 408 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 D | rkvdec-h264.c | 257 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 D | rkvdec-hevc.c | 413 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 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/staging/media/sunxi/cedrus/ |
| H 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()
|
| H A D | cedrus_h264.c | 80 pic->luma_ptr = cpu_to_le32(cedrus_buf_addr(vbuf, &ctx->dst_fmt, 0)); in cedrus_fill_ref_pic() 81 pic->chroma_ptr = cpu_to_le32(cedrus_buf_addr(vbuf, &ctx->dst_fmt, 1)); in cedrus_fill_ref_pic()
|
| /linux/drivers/media/platform/st/sti/bdisp/ |
| H 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()
|