📄 _csl_osdswitchtopingpongbuff.c
字号:
/** @file _csl_osdSwitchToPingpongBuff.c
*
* @brief Switch OSD video window 0 address
* @date 6th Oct , 2004
* @author Sandeep Tiwari
*/
#include <csl_osd.h>
#include <_csl_osd_aux.h>
CSL_Status _CSL_osdSwitchToPingpongBuff(
/** Pointer to the object that holds reference to the
* instance of OSD requested after the call
*/
CSL_OsdHandle hOsd,
/** Pointer to structure containing elements to
* switch the Ping Pong buffer
*/
CSL_OsdPingBuff *arg )
{
if(CSL_FEXT(hOsd->regs->MISCCTL,OSD_MISCCTL_PPRV) == 0) {
CSL_FINS(hOsd->regs->MISCCTL,OSD_MISCCTL_PPSW, arg->pingPongBuff == TRUE ? 1: 0);
} else {
CSL_FINS(hOsd->regs->MISCCTL,OSD_MISCCTL_PPSW, arg->pingPongBuff == TRUE ? 0: 1);
}
return CSL_SOK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -