/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 276 struct gsc_frame *s_frame, u32 *wratio, in gsc_check_src_scale_info() argument 281 if (is_yuv420(s_frame->fmt->color)) { in gsc_check_src_scale_info() 284 } else if (is_yuv422(s_frame->fmt->color)) { in gsc_check_src_scale_info() 292 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info() 294 s_frame->crop.width -= remainder; in gsc_check_src_scale_info() 295 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); in gsc_check_src_scale_info() 297 s_frame->crop.width + remainder, s_frame->crop.width); in gsc_check_src_scale_info() 300 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info() 302 s_frame->crop.height -= remainder; in gsc_check_src_scale_info() 303 gsc_cal_prescaler_ratio(var, s_frame->crop.height, ty, hratio); in gsc_check_src_scale_info() [all …]
|
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() 341 frame = &ctx->s_frame; in gsc_m2m_s_fmt_mplane() 515 frame = &ctx->s_frame; in gsc_m2m_s_selection() 537 ctx->s_frame.crop.width, in gsc_m2m_s_selection() 538 ctx->s_frame.crop.height, sel.r.width, in gsc_m2m_s_selection() 640 ctx->s_frame.fmt = get_format(0); in gsc_m2m_open()
|
D | gsc-core.h | 359 struct gsc_frame s_frame; member 396 struct gsc_frame *s_frame, 478 frame = &ctx->s_frame; in ctx_get_frame()
|
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()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-capture.c | 40 if (ctx == NULL || ctx->s_frame.fmt == NULL) in fimc_capture_hw_init() 56 fimc_hw_set_camera_offset(fimc, &ctx->s_frame); in fimc_capture_hw_init() 158 fimc_hw_set_camera_offset(fimc, &ctx->s_frame); in fimc_capture_config_update() 576 if (code && ctx->s_frame.fmt && pad == FIMC_SD_PAD_SOURCE && in fimc_capture_try_format() 577 fimc_fmt_is_user_defined(ctx->s_frame.fmt->color)) in fimc_capture_try_format() 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() 647 struct fimc_frame *sink = &ctx->s_frame; in fimc_capture_try_selection() 924 ctx->s_frame.f_width = pix->width; in __video_try_or_set_format() [all …]
|
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()
|
D | fimc-core.c | 230 struct fimc_frame *s_frame = &ctx->s_frame; in fimc_set_scaler_info() local 247 sx = s_frame->width; in fimc_set_scaler_info() 248 sy = s_frame->height; in fimc_set_scaler_info() 280 if (s_frame->fmt->color == d_frame->fmt->color in fimc_set_scaler_info() 281 && s_frame->width == d_frame->width in fimc_set_scaler_info() 282 && s_frame->height == d_frame->height) in fimc_set_scaler_info() 389 switch (ctx->s_frame.fmt->color) { in fimc_set_yuv_order() 527 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, in __fimc_s_ctrl() 528 ctx->s_frame.height, ctx->d_frame.width, in __fimc_s_ctrl()
|
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()
|
D | fimc-core.h | 477 struct fimc_frame s_frame; member 594 frame = &ctx->s_frame; in ctx_get_frame()
|
/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 263 return &ctx->s_frame; in mtk_mdp_ctx_get_frame() 459 struct mtk_mdp_frame *s_frame, *d_frame; in mtk_mdp_m2m_get_bufs() local 462 s_frame = &ctx->s_frame; in mtk_mdp_m2m_get_bufs() 466 mtk_mdp_prepare_addr(ctx, &src_vbuf->vb2_buf, s_frame, &s_frame->addr); in mtk_mdp_m2m_get_bufs() 512 mtk_mdp_hw_set_input_addr(ctx, &ctx->s_frame.addr); in mtk_mdp_m2m_worker() 869 frame = &ctx->s_frame; in mtk_mdp_m2m_s_selection() 881 ctx->s_frame.crop.width, in mtk_mdp_m2m_s_selection() 882 ctx->s_frame.crop.height, new_r.width, in mtk_mdp_m2m_s_selection() 975 ctx->s_frame.crop.width, in mtk_mdp_s_ctrl() 976 ctx->s_frame.crop.height, in mtk_mdp_s_ctrl()
|
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()
|
D | mtk_mdp_core.h | 198 struct mtk_mdp_frame s_frame; member
|