11bd4fe43Sopenharmony_ci/* 21bd4fe43Sopenharmony_ci * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 31bd4fe43Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 41bd4fe43Sopenharmony_ci * you may not use this file except in compliance with the License. 51bd4fe43Sopenharmony_ci * You may obtain a copy of the License at 61bd4fe43Sopenharmony_ci * 71bd4fe43Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 81bd4fe43Sopenharmony_ci * 91bd4fe43Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 101bd4fe43Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 111bd4fe43Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121bd4fe43Sopenharmony_ci * See the License for the specific language governing permissions and 131bd4fe43Sopenharmony_ci * limitations under the License. 141bd4fe43Sopenharmony_ci */ 151bd4fe43Sopenharmony_ci 161bd4fe43Sopenharmony_ci#ifndef __MPI_AWB_H__ 171bd4fe43Sopenharmony_ci#define __MPI_AWB_H__ 181bd4fe43Sopenharmony_ci 191bd4fe43Sopenharmony_ci#include "hi_comm_isp.h" 201bd4fe43Sopenharmony_ci#include "hi_comm_3a.h" 211bd4fe43Sopenharmony_ci#include "hi_awb_comm.h" 221bd4fe43Sopenharmony_ci 231bd4fe43Sopenharmony_ci#ifdef __cplusplus 241bd4fe43Sopenharmony_ci#if __cplusplus 251bd4fe43Sopenharmony_ciextern "C" { 261bd4fe43Sopenharmony_ci#endif 271bd4fe43Sopenharmony_ci#endif /* End of #ifdef __cplusplus */ 281bd4fe43Sopenharmony_ci 291bd4fe43Sopenharmony_ci/* The interface of awb lib register to isp. */ 301bd4fe43Sopenharmony_ciHI_S32 HI_MPI_AWB_Register(VI_PIPE ViPipe, ALG_LIB_S *pstAwbLib); 311bd4fe43Sopenharmony_ciHI_S32 HI_MPI_AWB_UnRegister(VI_PIPE ViPipe, ALG_LIB_S *pstAwbLib); 321bd4fe43Sopenharmony_ci 331bd4fe43Sopenharmony_ci/* The callback function of sensor register to awb lib. */ 341bd4fe43Sopenharmony_ciHI_S32 HI_MPI_AWB_SensorRegCallBack(VI_PIPE ViPipe, ALG_LIB_S *pstAwbLib, ISP_SNS_ATTR_INFO_S *pstSnsAttrInfo, 351bd4fe43Sopenharmony_ci AWB_SENSOR_REGISTER_S *pstRegister); 361bd4fe43Sopenharmony_ciHI_S32 HI_MPI_AWB_SensorUnRegCallBack(VI_PIPE ViPipe, ALG_LIB_S *pstAwbLib, SENSOR_ID SensorId); 371bd4fe43Sopenharmony_ci 381bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetWBAttr(VI_PIPE ViPipe, const ISP_WB_ATTR_S *pstWBAttr); 391bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetWBAttr(VI_PIPE ViPipe, ISP_WB_ATTR_S *pstWBAttr); 401bd4fe43Sopenharmony_ci 411bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetAWBAttrEx(VI_PIPE ViPipe, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 421bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetAWBAttrEx(VI_PIPE ViPipe, ISP_AWB_ATTR_EX_S *pstAWBAttrEx); 431bd4fe43Sopenharmony_ci 441bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetCCMAttr(VI_PIPE ViPipe, const ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 451bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetCCMAttr(VI_PIPE ViPipe, ISP_COLORMATRIX_ATTR_S *pstCCMAttr); 461bd4fe43Sopenharmony_ci 471bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetSaturationAttr(VI_PIPE ViPipe, const ISP_SATURATION_ATTR_S *pstSatAttr); 481bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetSaturationAttr(VI_PIPE ViPipe, ISP_SATURATION_ATTR_S *pstSatAttr); 491bd4fe43Sopenharmony_ci 501bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_QueryWBInfo(VI_PIPE ViPipe, ISP_WB_INFO_S *pstWBInfo); 511bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_CalGainByTemp(VI_PIPE ViPipe, const ISP_WB_ATTR_S *pstWBAttr, HI_U16 u16ColorTemp, 521bd4fe43Sopenharmony_ci HI_S16 s16Shift, HI_U16 *pu16AWBGain); 531bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetSpecAwbAttr(VI_PIPE ViPipe, const ISP_SPECAWB_ATTR_S *pstSpecAwbAttr); 541bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetCaaControlAttr(VI_PIPE ViPipe, const ISP_SPECAWB_CAA_CONTROl_S *pstSpecAwbCaaAttr); 551bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetCaaControlAttr(VI_PIPE ViPipe, ISP_SPECAWB_CAA_CONTROl_S *pstSpecAwbCaaAttr); 561bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetSpecAwbAttr(VI_PIPE ViPipe, ISP_SPECAWB_ATTR_S *pstSpecAwbAttr); 571bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_SetSpecAwbControlAttr(VI_PIPE ViPipe, ISP_SPECAWB_CONTROL_ATTR_S *pstSpecAwbCtrlAttr); 581bd4fe43Sopenharmony_ciHI_S32 HI_MPI_ISP_GetSpecAwbControlAttr(VI_PIPE ViPipe, ISP_SPECAWB_CONTROL_ATTR_S *pstSpecAwbCtrlAttr); 591bd4fe43Sopenharmony_ci 601bd4fe43Sopenharmony_ci#ifdef __cplusplus 611bd4fe43Sopenharmony_ci#if __cplusplus 621bd4fe43Sopenharmony_ci} 631bd4fe43Sopenharmony_ci#endif 641bd4fe43Sopenharmony_ci#endif /* End of #ifdef __cplusplus */ 651bd4fe43Sopenharmony_ci 661bd4fe43Sopenharmony_ci#endif 67