1 /* 2 * rk_aiq_types_a3dlut_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_A3DLUT_HW_H_ 21 #define _RK_AIQ_TYPES_A3DLUT_HW_H_ 22 #include "rk_aiq_comm.h" 23 #define LUT3D_LUT_GRID_NUM 9 24 #define LUT3D_LUT_WSIZE (LUT3D_LUT_GRID_NUM*LUT3D_LUT_GRID_NUM*LUT3D_LUT_GRID_NUM) 25 RKAIQ_BEGIN_DECLARE 26 27 typedef struct rk_aiq_lut3d_hw_tbl_s { 28 unsigned short look_up_table_r[LUT3D_LUT_WSIZE];//10bit 29 unsigned short look_up_table_g[LUT3D_LUT_WSIZE];//12bit 30 unsigned short look_up_table_b[LUT3D_LUT_WSIZE];//10bit 31 } rk_aiq_lut3d_hw_tbl_t; 32 33 typedef struct rk_aiq_lut3d_cfg_s { 34 bool enable; 35 bool bypass_en;//bypass_en = ! enable 36 unsigned int lut3d_lut_wsize; 37 rk_aiq_lut3d_hw_tbl_t tbl; 38 } rk_aiq_lut3d_cfg_t; 39 40 RKAIQ_END_DECLARE 41 42 #endif 43