MVOID IspTuningCustom:: evaluate_nvram_index(RAWIspCamInfo const& rCamInfo, IndexMgr& rIdxMgr) { MBOOL fgRet = MFALSE; ECamMode_T const eCamMode = rCamInfo.eCamMode; EIndex_Scene_T const eIdx_Scene = rCamInfo.eIdx_Scene; EIndex_ISO_T const eIdx_ISO = rCamInfo.eIdx_ISO; MUINT32 const u4ISOValue = rCamInfo.u4ISOValue; MUINT32 const i4CCT = rCamInfo.i4CCT; MUINT32 const u4ZoomRatio_x100 = rCamInfo.u4ZoomRatio_x100; MINT32 const i4LightValue_x10 = rCamInfo.i4LightValue_x10; // (0) We have: // eCamMode, eScene, ...... //.............................................................................. // (1) Dump info. before customizing. #if ENABLE_MY_LOG rCamInfo.dump(); #endif #if 0 LOGD("[+evaluate_nvram_index][before customizing]"); rIdxMgr.dump(); #endif //.............................................................................. // (2) Modify each index based on conditions. // // setIdx_XXX() returns: // MTURE: if successful // MFALSE: if the input index is out of range. // #if 0 fgRet = rIdxMgr.setIdx_DM(XXX); fgRet = rIdxMgr.setIdx_DP(XXX); fgRet = rIdxMgr.setIdx_NR1(XXX); fgRet = rIdxMgr.setIdx_NR2(XXX); fgRet = rIdxMgr.setIdx_Saturation(XXX); fgRet = rIdxMgr.setIdx_Contrast(XXX); fgRet = rIdxMgr.setIdx_Hue(XXX); fgRet = rIdxMgr.setIdx_Gamma(XXX); fgRet = rIdxMgr.setIdx_EE(XXX); #endif //.............................................................................. // (3) Finally, dump info. after modifying. #if 0 LOGD("[-evaluate_nvram_index][after customizing]"); rIdxMgr.dump(); #endif }
/******************************************************************************* * * rCamInfo * [in] ISP Camera Info for RAW sensor. Its members are as below: * * eCamMode: * ECamMode_Video = 0, * ECamMode_Online_Preview, * ECamMode_Online_Capture, * ECamMode_Online_Capture_ZSD, * ECamMode_Offline_Capture_Pass1, * ECamMode_Offline_Capture_Pass2, * ECamMode_HDR_Cap_Pass1_SF, // Pass1: Single Frame * ECamMode_HDR_Cap_Pass1_MF1, // Pass1: Multi Frame Stage1 * ECamMode_HDR_Cap_Pass1_MF2, // Pass1: Multi Frame Stage2 * ECamMode_HDR_Cap_Pass2, // Pass2 * * eIdx_Scene: * SCENE_MODE_OFF, // Disable scene mode equal Auto mode * SCENE_MODE_NORMAL, // Normal mode * SCENE_MODE_ACTION, // Action mode * SCENE_MODE_PORTRAIT, // Portrait mode * SCENE_MODE_LANDSCAPE, // Landscape * SCENE_MODE_NIGHTSCENE, // Night Scene * SCENE_MODE_NIGHTPORTRAIT, // Night Portrait * SCENE_MODE_THEATRE, // Theatre mode * SCENE_MODE_BEACH, // Beach mode * SCENE_MODE_SNOW, // Snow mode * SCENE_MODE_SUNSET, // Sunset mode * SCENE_MODE_STEADYPHOTO, // Steady photo mode * SCENE_MODE_FIREWORKS, // Fireworks mode * SCENE_MODE_SPORTS, // Sports mode * SCENE_MODE_PARTY, // Party mode * SCENE_MODE_CANDLELIGHT, // Candle light mode * SCENE_MODE_HDR, // HDR mode * * u4ISOValue: * ISO value to determine eISO. * * eIdx_ISO: * eIDX_ISO_100, * eIDX_ISO_200, * eIDX_ISO_400, * eIDX_ISO_800, * eIDX_ISO_1600 * * i4CCT: * Correlated color temperature * * eCCTIndex_CCM: * Correlated color temperature index for CCM * eIDX_CCM_CCT_TL84 * eIDX_CCM_CCT_CWF * eIDX_CCM_CCT_D65 * * u4ZoomRatio_x100: * zoom ratio (x100) * * i4LightValue_x10: * light value (x10) * * rIdxMgr: * [in] The default ISP tuning index manager. * [out] The ISP tuning index manager after customizing. * * *******************************************************************************/ MVOID IspTuningCustom:: evaluate_nvram_index(RAWIspCamInfo const& rCamInfo, IndexMgr& rIdxMgr) { //.............................................................................. // (1) Dump info. before customizing. #if ENABLE_MY_LOG rCamInfo.dump(); #endif #if 0 LOGD("[+evaluate_nvram_index][before customizing]"); rIdxMgr.dump(); #endif //.............................................................................. // (2) Modify each index based on conditions. // // setIdx_XXX() returns: // MTURE: if successful // MFALSE: if the input index is out of range. // #if 0 fgRet = rIdxMgr.setIdx_OBC(XXX); fgRet = rIdxMgr.setIdx_BPC(XXX); fgRet = rIdxMgr.setIdx_NR1(XXX); fgRet = rIdxMgr.setIdx_CFA(XXX); fgRet = rIdxMgr.setIdx_GGM(XXX); fgRet = rIdxMgr.setIdx_ANR(XXX); fgRet = rIdxMgr.setIdx_CCR(XXX); fgRet = rIdxMgr.setIdx_EE(XXX); fgRet = rIdxMgr.setIdx_NR3D(XXX); fgRet = rIdxMgr.setIdx_MFB(XXX); #endif //.............................................................................. // (3) Finally, dump info. after modifying. #if 0 LOGD("[-evaluate_nvram_index][after customizing]"); rIdxMgr.dump(); #endif }