/openbmc/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 275 struct gsc_frame *s_frame, u32 *wratio, in gsc_check_src_scale_info() argument 280 if (is_yuv420(s_frame->fmt->color)) { in gsc_check_src_scale_info() 293 s_frame->crop.width -= remainder; in gsc_check_src_scale_info() 296 s_frame->crop.width + remainder, s_frame->crop.width); in gsc_check_src_scale_info() 301 s_frame->crop.height -= remainder; in gsc_check_src_scale_info() 304 s_frame->crop.height + remainder, s_frame->crop.height); in gsc_check_src_scale_info() 533 f = &ctx->s_frame; in gsc_try_selection() 635 struct gsc_frame *s_frame = &ctx->s_frame; in gsc_set_scaler_info() local 688 s_frame->crop.width, s_frame->crop.height, tx, ty); in gsc_set_scaler_info() 719 ctx->s_frame.crop.width, in __gsc_s_ctrl() [all …]
|
H A D | gsc-m2m.c | 122 struct gsc_frame *s_frame, *d_frame; in gsc_get_bufs() local 126 s_frame = &ctx->s_frame; in gsc_get_bufs() 130 ret = gsc_prepare_addr(ctx, &src_vb->vb2_buf, s_frame, &s_frame->addr); in gsc_get_bufs() 182 gsc_set_prefbuf(gsc, &ctx->s_frame); in gsc_m2m_device_run() 183 gsc_hw_set_input_addr(gsc, &ctx->s_frame.addr, GSC_M2M_BUF_NUM); in gsc_m2m_device_run() 336 frame = &ctx->s_frame; in gsc_m2m_s_fmt_mplane() 510 frame = &ctx->s_frame; in gsc_m2m_s_selection() 532 ctx->s_frame.crop.width, in gsc_m2m_s_selection() 533 ctx->s_frame.crop.height, sel.r.width, in gsc_m2m_s_selection() 635 ctx->s_frame.fmt = get_format(0); in gsc_m2m_open()
|
H A D | gsc-core.h | 366 struct gsc_frame s_frame; member 403 struct gsc_frame *s_frame, 485 frame = &ctx->s_frame; in ctx_get_frame()
|
H A D | gsc-regs.c | 123 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_size() 145 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_rgb() 165 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_format()
|
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-capture.c | 578 *code = ctx->s_frame.fmt->mbus_code; in fimc_capture_try_format() 609 *width = ctx->s_frame.f_width; in fimc_capture_try_format() 610 *height = ctx->s_frame.f_height; in fimc_capture_try_format() 925 ctx->s_frame.f_width = pix->width; in __video_try_or_set_format() 1042 ctx->s_frame.fmt = inp_fmt; in __fimc_capture_set_format() 1313 f = &ctx->s_frame; in fimc_cap_s_selection() 1552 mf->width = ctx->s_frame.width; in fimc_subdev_set_fmt() 1553 mf->height = ctx->s_frame.height; in fimc_subdev_set_fmt() 1555 ff = &ctx->s_frame; in fimc_subdev_set_fmt() 1732 ctx->d_frame.fmt = ctx->s_frame.fmt; in fimc_register_capture_device() [all …]
|
H A D | fimc-m2m.c | 105 sf = &ctx->s_frame; in fimc_device_run() 360 frame = &ctx->s_frame; in fimc_m2m_s_fmt_mplane() 445 f = &ctx->s_frame; in fimc_m2m_try_selection() 452 min_size = (f == &ctx->s_frame) ? in fimc_m2m_try_selection() 498 &ctx->s_frame : &ctx->d_frame; in fimc_m2m_s_selection() 506 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, in fimc_m2m_s_selection() 507 ctx->s_frame.height, s->r.width, in fimc_m2m_s_selection() 597 __set_frame_format(&ctx->s_frame, fmt, &pixm); in fimc_m2m_set_default_format() 629 ctx->s_frame.fmt = fimc_get_format(0); in fimc_m2m_open()
|
H A D | fimc-core.c | 231 struct fimc_frame *s_frame = &ctx->s_frame; in fimc_set_scaler_info() local 248 sx = s_frame->width; in fimc_set_scaler_info() 249 sy = s_frame->height; in fimc_set_scaler_info() 281 if (s_frame->fmt->color == d_frame->fmt->color in fimc_set_scaler_info() 282 && s_frame->width == d_frame->width in fimc_set_scaler_info() 283 && s_frame->height == d_frame->height) in fimc_set_scaler_info() 388 switch (ctx->s_frame.fmt->color) { in fimc_set_yuv_order() 526 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, in __fimc_s_ctrl() 527 ctx->s_frame.height, ctx->d_frame.width, in __fimc_s_ctrl()
|
H A D | fimc-reg.c | 251 struct fimc_frame *src_frame = &ctx->s_frame; in fimc_hw_set_scaler() 406 struct fimc_frame *frame = &ctx->s_frame; in fimc_hw_set_in_dma_size() 423 struct fimc_frame *frame = &ctx->s_frame; in fimc_hw_set_in_dma() 493 if (tiled_fmt(ctx->s_frame.fmt)) in fimc_hw_set_in_dma() 602 struct fimc_frame *f = &vc->ctx->s_frame; in fimc_hw_set_camera_source()
|
H A D | fimc-core.h | 479 struct fimc_frame s_frame; member 596 frame = &ctx->s_frame; in ctx_get_frame()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp/ |
H A D | mtk_mdp_m2m.c | 260 return &ctx->s_frame; in mtk_mdp_ctx_get_frame() 456 struct mtk_mdp_frame *s_frame, *d_frame; in mtk_mdp_m2m_get_bufs() local 459 s_frame = &ctx->s_frame; in mtk_mdp_m2m_get_bufs() 463 mtk_mdp_prepare_addr(ctx, &src_vbuf->vb2_buf, s_frame, &s_frame->addr); in mtk_mdp_m2m_get_bufs() 509 mtk_mdp_hw_set_input_addr(ctx, &ctx->s_frame.addr); in mtk_mdp_m2m_worker() 866 frame = &ctx->s_frame; in mtk_mdp_m2m_s_selection() 878 ctx->s_frame.crop.width, in mtk_mdp_m2m_s_selection() 879 ctx->s_frame.crop.height, new_r.width, in mtk_mdp_m2m_s_selection() 972 ctx->s_frame.crop.width, in mtk_mdp_s_ctrl() 973 ctx->s_frame.crop.height, in mtk_mdp_s_ctrl()
|
H A D | mtk_mdp_regs.c | 70 struct mtk_mdp_frame *frame = &ctx->s_frame; in mtk_mdp_hw_set_in_size() 91 struct mtk_mdp_frame *frame = &ctx->s_frame; in mtk_mdp_hw_set_in_image_format()
|
H A D | mtk_mdp_core.h | 198 struct mtk_mdp_frame s_frame; member
|