1 /****************************************************************************** 2 * 3 * Copyright 2019, Fuzhou Rockchip Electronics Co.Ltd . All rights reserved. 4 * No part of this work may be reproduced, modified, distributed, transmitted, 5 * transcribed, or translated into any language or computer format, in any form 6 * or by any means without written permission of: 7 * Fuzhou Rockchip Electronics Co.Ltd . 8 * 9 * 10 *****************************************************************************/ 11 #ifndef __RK_AIQ_ATMO_ALGO_H__ 12 #define __RK_AIQ_ATMO_ALGO_H__ 13 14 #include <math.h> 15 #include <string.h> 16 #include <stdlib.h> 17 #include "ae/rk_aiq_types_ae_algo_int.h" 18 #include "af/rk_aiq_af_hw_v200.h" 19 #include "rk_aiq_uapi_atmo_int.h" 20 #include "rk_aiq_types_atmo_algo_prvt.h" 21 22 23 RESULT AtmoStart(AtmoHandle_t pAtmoCtx); 24 RESULT AtmoStop(AtmoHandle_t pAtmoCtx); 25 void AtmoGetStats(AtmoHandle_t pAtmoCtx, rkisp_atmo_stats_t* ROData) ; 26 void ApiOffProcess(AtmoHandle_t pAtmoCtx); 27 void AtmoGetSensorInfo( AtmoHandle_t pAtmoCtx, AecProcResult_t AecHdrProcResult); 28 void newMalloc(AtmoConfig_t* pAtmoConfig, CalibDbV2_tmo_t* pCalibDb); 29 void AtmoUpdateConfig(AtmoHandle_t pAtmoCtx, CalibDbV2_tmo_t* pCalibDb); 30 void AtmoProcessing(AtmoHandle_t pAtmoCtx, AecPreResult_t AecHdrPreResult, af_preprocess_result_t AfPreResult); 31 bool SetGlobalTMO(AtmoHandle_t pAtmoCtx); 32 RESULT AtmoInit(AtmoInstanceConfig_t* pInstConfig, CamCalibDbV2Context_t* pCalibV2) ; 33 RESULT AtmoRelease(AtmoHandle_t pAtmoCtx) ; 34 35 #endif 36