_csl_histsetwbgain.c
来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 43 行
C
43 行
/** @file _csl_histSetWBGain.c
*
* @brief File for functional layer of CSL API @a CSL_histSetWBGain()
*
* Description
* - The @a CSL_histSetWBGain() function definition & it's associated
* functions
*
* @date 11st Aug, 2005
* @author Jesse Villarreal
*/
#include <csl_hist_aux.h>
#pragma CODE_SECTION (CSL_histSetWBGain, ".text:csl_section:hist");
/** @brief Sets the white balance information
*
*/
CSL_Status CSL_histSetWBGain(
/** Pointer to the object that holds reference to the
* instance of HIST requested after the call
*/
CSL_HistHandle hHist,
/** Sets the region information
*/
CSL_HistWBGainInfo *data
){
CSL_HistRegsOvly histRegs = hHist->regs;
CSL_Status status=CSL_SOK;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
histRegs->WB_GAIN = CSL_FMK(HIST_WB_GAIN_WG00,data->wg00) |
CSL_FMK(HIST_WB_GAIN_WG01,data->wg01) |
CSL_FMK(HIST_WB_GAIN_WG02,data->wg02) |
CSL_FMK(HIST_WB_GAIN_WG03,data->wg03);
return status;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?