csl_vencyccctlsetup.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 46 行

C
46
字号
/** @file csl_vencYccCtlSetup.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_vencYccCtlSetup()
 *
 *  Description
 *    - The @a CSL_vencYccCtlSetup() function definition & it's associated
 *      functions
 *
 *  Modification 1
 *    - Modified on: 10/5/2004
 *    - Reason: created the sources
 *
 *  @date 5th October, 2004
 *  @author Santosh Narayanan.
 */

#include <csl_venc.h>

#pragma CODE_SECTION (CSL_vencYccCtlSetup, ".text:csl_section:venc");

/** @brief Configures the VENC using the values passed in through the
 *  setup structure. 
 */
CSL_Status  CSL_vencYccCtlSetup(
    /** Pointer to the object that holds reference to the
     *  instance of VENC requested after the call 
	 */
    CSL_VencHandle                         hVenc,
    /** Pointer to setup structure which contains the
     *  information to program VENC to a useful state 
	 */
    CSL_VencYccCtlConfig                        *setup
	)
{

    CSL_Status status = CSL_SOK;

    /* YCbCr control specific settings */
    hVenc->regs->YCCCTL = (CSL_FMK(VENC_YCCCTL_YCP, setup->ycp)
    	                                     |CSL_FMK(VENC_YCCCTL_R656, setup->r656));
  
	
    return status;
}

⌨️ 快捷键说明

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