Lines Matching refs:sink
664 struct fimc_frame *sink = &ctx->s_frame; in fimc_capture_try_selection() local
671 r->width = sink->f_width; in fimc_capture_try_selection()
672 r->height = sink->f_height; in fimc_capture_try_selection()
679 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); in fimc_capture_try_selection()
680 max_sc_v = min(SCALER_MAX_VRATIO, 1 << (ffs(sink->height) - 1)); in fimc_capture_try_selection()
683 u32 depth = fimc_get_format_depth(sink->fmt); in fimc_capture_try_selection()
700 rotate ? sink->f_height : sink->f_width); in fimc_capture_try_selection()
701 max_h = min_t(u32, FIMC_CAMIF_MAX_HEIGHT, sink->f_height); in fimc_capture_try_selection()
704 min_w = min_t(u32, max_w, sink->f_width / max_sc_h); in fimc_capture_try_selection()
705 min_h = min_t(u32, max_h, sink->f_height / max_sc_v); in fimc_capture_try_selection()
715 r->left = clamp_t(u32, r->left, 0, sink->f_width - r->width); in fimc_capture_try_selection()
716 r->top = clamp_t(u32, r->top, 0, sink->f_height - r->height); in fimc_capture_try_selection()
721 sink->f_width, sink->f_height); in fimc_capture_try_selection()