1 /* 2 * rk_aiq_types_accm_hw.h 3 * 4 * Copyright (c) 2019 Rockchip Corporation 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 */ 19 20 #ifndef _RK_AIQ_TYPES_ACCM_HW_H_ 21 #define _RK_AIQ_TYPES_ACCM_HW_H_ 22 23 #include "rk_aiq_comm.h" 24 25 RKAIQ_BEGIN_DECLARE 26 #ifndef CCM_CURVE_DOT_NUM 27 #define CCM_CURVE_DOT_NUM 17 28 #endif 29 #ifndef CCM_CURVE_DOT_NUM_V2 30 #define CCM_CURVE_DOT_NUM_V2 18 31 #endif 32 33 typedef struct rk_aiq_ccm_cfg_s { 34 bool ccmEnable; 35 float matrix[9]; 36 float offs[3]; 37 float alp_y[CCM_CURVE_DOT_NUM]; 38 float bound_bit; 39 float rgb2y_para[3]; 40 } rk_aiq_ccm_cfg_t; 41 42 typedef struct rk_aiq_ccm_cfg_v2_s { 43 bool ccmEnable; 44 bool asym_adj_en; 45 unsigned short enh_adj_en; 46 bool highy_adj_en; 47 float matrix[9]; 48 float offs[3]; 49 float alp_y[CCM_CURVE_DOT_NUM_V2]; 50 float right_bit; 51 float bound_bit; 52 float rgb2y_para[3]; 53 unsigned char enh_rgb2y_para[3]; 54 float enh_rat_max; 55 } rk_aiq_ccm_cfg_v2_t; 56 57 RKAIQ_END_DECLARE 58 59 #endif 60 61