_csl_reszsetlumenhancer.c

来自「ccs下对dm6446的测试程序」· C语言 代码 · 共 42 行

C
42
字号
/** @file _csl_reszSetLumEnhancer.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_reszSetLumEnhancer()
 *
 *  Description
 *    - The @a CSL_reszSetLumEnhancer() function definition & it's associated
 *      functions
 *
 *  @date 10th May, 2005
 *  @author Jesse Villarreal.
 */

#include <csl_resz_aux.h>

#pragma CODE_SECTION (CSL_reszSetLumEnhancer, ".text:csl_section:resz");

/** @brief Sets the luminance enhander parameters
 *	
 */
CSL_Status  CSL_reszSetLumEnhancer(
    /** Pointer to the object that holds reference to the
     *  instance of RESZ requested after the call 
	 */
    CSL_ReszHandle                         hResz,
    /** Pointer to structure holding the data
	 */
    CSL_ReszLumEnhance					   *data
	){

	CSL_ReszRegsOvly reszRegs =  hResz->regs; 
    if(data == NULL) return (CSL_ESYS_INVPARAMS);


	reszRegs->YENH =	CSL_FMK(RESZ_YENH_ALGO,data->lumAlgo)		|
						CSL_FMK(RESZ_YENH_GAIN,data->lumMaxGain)	|
						CSL_FMK(RESZ_YENH_SLOP,data->lumSlope)		|
						CSL_FMK(RESZ_YENH_CORE,data->lumOffset);

    return (CSL_SOK);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?