Home
last modified time | relevance | path

Searched refs:s_frame (Results 1 – 9 of 9) sorted by relevance

/drivers/media/platform/exynos-gsc/
Dgsc-core.c275 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()
283 } else if (is_yuv422(s_frame->fmt->color)) { in gsc_check_src_scale_info()
291 remainder = s_frame->crop.width % (*wratio * walign); in gsc_check_src_scale_info()
293 s_frame->crop.width -= remainder; in gsc_check_src_scale_info()
294 gsc_cal_prescaler_ratio(var, s_frame->crop.width, tx, wratio); in gsc_check_src_scale_info()
296 s_frame->crop.width + remainder, s_frame->crop.width); in gsc_check_src_scale_info()
299 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info()
301 s_frame->crop.height -= remainder; in gsc_check_src_scale_info()
302 gsc_cal_prescaler_ratio(var, s_frame->crop.height, ty, hratio); in gsc_check_src_scale_info()
[all …]
Dgsc-m2m.c111 struct gsc_frame *s_frame, *d_frame; in gsc_get_bufs() local
115 s_frame = &ctx->s_frame; in gsc_get_bufs()
119 ret = gsc_prepare_addr(ctx, &src_vb->vb2_buf, s_frame, &s_frame->addr); in gsc_get_bufs()
171 gsc_set_prefbuf(gsc, &ctx->s_frame); in gsc_m2m_device_run()
172 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()
519 frame = &ctx->s_frame; in gsc_m2m_s_selection()
541 ctx->s_frame.crop.width, in gsc_m2m_s_selection()
542 ctx->s_frame.crop.height, cr.c.width, in gsc_m2m_s_selection()
642 ctx->s_frame.fmt = get_format(0); in gsc_m2m_open()
Dgsc-core.h367 struct gsc_frame s_frame; member
404 struct gsc_frame *s_frame,
486 frame = &ctx->s_frame; in ctx_get_frame()
Dgsc-regs.c127 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_size()
149 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_rgb()
169 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_format()
/drivers/media/platform/exynos4-is/
Dfimc-capture.c42 if (ctx == NULL || ctx->s_frame.fmt == NULL) in fimc_capture_hw_init()
58 fimc_hw_set_camera_offset(fimc, &ctx->s_frame); in fimc_capture_hw_init()
159 fimc_hw_set_camera_offset(fimc, &ctx->s_frame); in fimc_capture_config_update()
593 if (code && ctx->s_frame.fmt && pad == FIMC_SD_PAD_SOURCE && in fimc_capture_try_format()
594 fimc_fmt_is_user_defined(ctx->s_frame.fmt->color)) in fimc_capture_try_format()
595 *code = ctx->s_frame.fmt->mbus_code; in fimc_capture_try_format()
626 *width = ctx->s_frame.f_width; in fimc_capture_try_format()
627 *height = ctx->s_frame.f_height; in fimc_capture_try_format()
664 struct fimc_frame *sink = &ctx->s_frame; in fimc_capture_try_selection()
941 ctx->s_frame.f_width = pix->width; in __video_try_or_set_format()
[all …]
Dfimc-m2m.c116 sf = &ctx->s_frame; in fimc_device_run()
383 frame = &ctx->s_frame; in fimc_m2m_s_fmt_mplane()
451 f = &ctx->s_frame; in fimc_m2m_try_crop()
455 min_size = (f == &ctx->s_frame) ? in fimc_m2m_try_crop()
501 &ctx->s_frame : &ctx->d_frame; in fimc_m2m_s_crop()
509 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, in fimc_m2m_s_crop()
510 ctx->s_frame.height, cr.c.width, in fimc_m2m_s_crop()
599 __set_frame_format(&ctx->s_frame, fmt, &pixm); in fimc_m2m_set_default_format()
631 ctx->s_frame.fmt = fimc_get_format(0); in fimc_m2m_open()
Dfimc-core.c254 struct fimc_frame *s_frame = &ctx->s_frame; in fimc_set_scaler_info() local
271 sx = s_frame->width; in fimc_set_scaler_info()
272 sy = s_frame->height; in fimc_set_scaler_info()
304 if (s_frame->fmt->color == d_frame->fmt->color in fimc_set_scaler_info()
305 && s_frame->width == d_frame->width in fimc_set_scaler_info()
306 && s_frame->height == d_frame->height) in fimc_set_scaler_info()
413 switch (ctx->s_frame.fmt->color) { in fimc_set_yuv_order()
551 ret = fimc_check_scaler_ratio(ctx, ctx->s_frame.width, in __fimc_s_ctrl()
552 ctx->s_frame.height, ctx->d_frame.width, in __fimc_s_ctrl()
Dfimc-reg.c254 struct fimc_frame *src_frame = &ctx->s_frame; in fimc_hw_set_scaler()
409 struct fimc_frame *frame = &ctx->s_frame; in fimc_hw_set_in_dma_size()
426 struct fimc_frame *frame = &ctx->s_frame; in fimc_hw_set_in_dma()
496 if (tiled_fmt(ctx->s_frame.fmt)) in fimc_hw_set_in_dma()
605 struct fimc_frame *f = &vc->ctx->s_frame; in fimc_hw_set_camera_source()
Dfimc-core.h488 struct fimc_frame s_frame; member
604 frame = &ctx->s_frame; in ctx_get_frame()