2 * Copyright (C) 2012 Spreadtrum Communications Inc.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 #ifndef _GEN_SCALE_COEF_H_
14 #define _GEN_SCALE_COEF_H_
16 #include <linux/types.h>
18 #define SCALER_COEF_TAB_LEN_HOR 48
19 #define SCALER_COEF_TAB_LEN_VER 132
21 uint8_t GenScaleCoeff(int16_t i_w,
25 uint32_t *coeff_h_ptr,
26 uint32_t *coeff_v_lum_ptr,
27 uint32_t *coeff_v_ch_ptr,
28 uint8_t scaling2yuv420,
32 uint32_t temp_buf_size);