tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / media / sprd_scale / common / gen_scale_coef.h
1 /*
2  * Copyright (C) 2012 Spreadtrum Communications Inc.
3  *
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.
7  *
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.
12  */
13 #ifndef _GEN_SCALE_COEF_H_
14 #define _GEN_SCALE_COEF_H_
15
16 #include <linux/types.h>
17
18 #define SCALER_COEF_TAB_LEN_HOR         48
19 #define SCALER_COEF_TAB_LEN_VER 132
20
21 uint8_t GenScaleCoeff(int16_t i_w,
22                         int16_t i_h,
23                         int16_t o_w,
24                         int16_t o_h,
25                         uint32_t *coeff_h_ptr,
26                         uint32_t *coeff_v_lum_ptr,
27                         uint32_t *coeff_v_ch_ptr,
28                         uint8_t scaling2yuv420,
29                         uint8_t *scaler_tap,
30                         uint8_t *chrome_tap,
31                         void *temp_buf_ptr,
32                         uint32_t temp_buf_size);
33
34 #endif