_csl_prevsetcsup.c
来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 40 行
C
40 行
/** @file _csl_prevSetCSup.c
*
* @brief File for functional layer of CSL API @a CSL_prevSetCSup()
*
* Description
* - The @a CSL_prevSetCSup() function definition & it's associated
* functions
*
* @date 18th October, 2004
* @author Vignesh LA.
*/
#include <csl_prev_aux.h>
#pragma CODE_SECTION (CSL_prevSetCSup, ".text:csl_section:prev");
/** @brief Configures the Chroma suppression using the values passed.
*
*/
CSL_Status CSL_prevSetCSup(
/** Pointer to the object that holds reference to the
* instance of PREV requested after the call
*/
CSL_PrevHandle hPrev,
/** Pointet to the object that holds reference to the
* structure holding chroma suppression gain and threshold
*/
CSL_PrevCSupData *data
){
if(data == NULL) return (CSL_ESYS_INVPARAMS);
hPrev->regs->CSUP = CSL_FMK(PREV_CSUP_HPFY, data->hpf)|
CSL_FMK(PREV_CSUP_CSUPTH, data->threshold)|
CSL_FMK(PREV_CSUP_CSUPG, data->gain);
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?