1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __IA_CSS_VF_HOST_H 8 #define __IA_CSS_VF_HOST_H 9 10 #include "ia_css_frame_public.h" 11 #include "ia_css_binary.h" 12 13 #include "ia_css_vf_types.h" 14 #include "ia_css_vf_param.h" 15 16 /* compute the log2 of the downscale factor needed to get closest 17 * to the requested viewfinder resolution on the upper side. The output cannot 18 * be smaller than the requested viewfinder resolution. 19 */ 20 int 21 sh_css_vf_downscale_log2( 22 const struct ia_css_frame_info *out_info, 23 const struct ia_css_frame_info *vf_info, 24 unsigned int *downscale_log2); 25 26 int ia_css_vf_config(struct sh_css_isp_vf_isp_config *to, 27 const struct ia_css_vf_configuration *from, 28 unsigned int size); 29 30 int 31 ia_css_vf_configure( 32 const struct ia_css_binary *binary, 33 const struct ia_css_frame_info *out_info, 34 struct ia_css_frame_info *vf_info, 35 unsigned int *downscale_log2); 36 37 #endif /* __IA_CSS_VF_HOST_H */ 38