1 /* 2 * Copyright (c) 2021 Rockchip Corporation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 #ifndef __ACP_UAPI_HEAD_H__ 19 #define __ACP_UAPI_HEAD_H__ 20 21 #include "rk_aiq_comm.h" 22 23 typedef struct acp_attrib_s { 24 // M4_STRUCT_DESC("sync", "normal_ui_style", M4_HIDE(1)) 25 rk_aiq_uapi_sync_t sync; 26 27 // M4_NUMBER_DESC("brightness", "u8", M4_RANGE(0,255), "0", M4_DIGIT(0)) 28 uint8_t brightness; /* 0 ~ 255 */ 29 // M4_NUMBER_DESC("contrast", "u8", M4_RANGE(0,255), "0", M4_DIGIT(0)) 30 uint8_t contrast; /* 0 ~ 255 */ 31 // M4_NUMBER_DESC("saturation", "u8", M4_RANGE(0,255), "0", M4_DIGIT(0)) 32 uint8_t saturation; /* 0 ~ 255 */ 33 // M4_NUMBER_DESC("hue", "u8", M4_RANGE(0,255), "0", M4_DIGIT(0)) 34 uint8_t hue; /* 0 ~ 255 */ 35 } acp_attrib_t; 36 37 #endif /*__ACP_UAPI_HEAD_H__*/ 38