📄 _csl_osdsetmode.c
字号:
/** @file _csl_osdSetMode.c
* @brief Set all OSD window parameters
* @ this routine sets parameters which will affect all OSD window
* @date 5th OCT, 2004
* @author Sandeep Tiwari.
*/
#include <csl_osd.h>
#include <_csl_osd_aux.h>
CSL_Status _CSL_osdSetMode(
/** Pointer to the object that holds reference to the
* instance of OSD requested after the call
*/
CSL_OsdHandle hOsd,
/** Pointer to structure containing data to set the OSD mode
* registers
*/
CSL_OsdModeData *arg)
{
CSL_Status status = CSL_SOK;
CSL_FINS(hOsd->regs->MODE, OSD_MODE_CS, arg->cbcr);
CSL_FINS(hOsd->regs->MODE, OSD_MODE_BCLUT, arg->lut);
CSL_FINS(hOsd->regs->MODE, OSD_MODE_CABG, arg->backgrcolor);
CSL_FINS(hOsd->regs->MODE, OSD_MODE_FSINV, arg->fieldsgInv);
CSL_FINS(hOsd->regs->BASEPX, OSD_BASEPX_BPX, arg->basepx);
CSL_FINS(hOsd->regs->BASEPY, OSD_BASEPY_BPY, arg->basepy);
return status;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -