📄 msace.h
字号:
/******************************************************************************
Copyright (c) 2003 MStar Semiconductor, Inc.
All rights reserved.
[Module Name]: msACE.h
[Date]:
[Comment]:
Mstar Advance Color Engine header file.
[Reversion History]:
*******************************************************************************/
#ifndef _MSACE_H_
#define _MSACE_H_
#ifdef _MSACE_C_
#define _MSACEDEC_
#else
#define _MSACEDEC_ extern
#endif
// sRGB matrix for PC
// this variable must pointer to a array[3][3]
_MSACEDEC_ short* tSrgbMatrix;
// Color correction matrix for Video
// this variable must pointer to a array[3][3]
_MSACEDEC_ short* tColorCorrectionMatrix;
///////////////////////////////////////////////////////////////////////////////
// Basic color control function(Library)
///////////////////////////////////////////////////////////////////////////////
// Initialize ACE varible
// Must call this function before call other ace function
//------------------------------------------------------------------------
// Only for Video input, not support PC input
// Input: ucContrast: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// Mstar use: 50h~A0h
//------------------------------------------------------------------------
void msAdjustVideoContrast( U8 ucContrast );
//------------------------------------------------------------------------
// Only for Video input, not support PC input
// Input:
// ucSaturation: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// Mstar use: 50h~A0h
//------------------------------------------------------------------------
void msAdjustVideoSaturation( U8 ucSaturation );
void msAdjustVideoCbCr( U8 ucCb,U8 ucCr );
//------------------------------------------------------------------------
// Only for Video input, not support PC input
// Input:
// ucHue: 0~100, (angel -50 degree ~ angel 50 degree, 50 is 0 degree)
// Mstar use: 0~100
//------------------------------------------------------------------------
void msAdjustVideoHue( U8 ucHue );
//------------------------------------------------------------------------
// Only for Video input, not support PC input
// Adjust vide R,G,B gain
// Input:
// ucContrast: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// Mstar use: 80h
//------------------------------------------------------------------------
void msAdjustVideoRGB( U8 ucRCon,U8 ucGCon,U8 ucBCon );
//------------------------------------------------------------------------
// Only for PC input, not support Video input
// Input:
// ucContrast: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// Mstar use: 50h~A0h
//------------------------------------------------------------------------
void msAdjustPCContrast( U8 ucContrast );
//------------------------------------------------------------------------
// Only for PC input, not support Video input
// Adjust vide R,G,B gain
// Input:
// ucContrast: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// Mstar use: 80h
//------------------------------------------------------------------------
void msAdjustPCRGB( U8 ucRed,U8 ucGreen,U8 ucBlue );
///////////////////////////////////////////////////////////////////////////////
// Special color control function
///////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------
// Only for Video input, not support PC input
// Adjust vide contrast, hue, saturation together
// Input:
// ucContrast: 0~FFh, (gain range x0 ~ x4, 80h is x1)
// ucHue: 0~100, (angel -50 degree ~ angel 50 degree, 50 is 0 degree)
// ucSaturation: 0~FFh, (gain range x0 ~ x4, 80h is x1)
//------------------------------------------------------------------------
void msAdjustHSC( U8 ucHue,U8 ucSaturation,U8 ucContrast );
void msAdjustPCContrastRGB( U8 ucContrast,U8 ucRed,U8 ucGreen,U8 ucBlue );
// Turn On/Off sRGB, PC use only
void msACEPCsRGBCtl( BOOLEAN bEnable );
//------------------------------------------------------------------------
void msACEPCYUV2RGBCtl( BOOLEAN bEnable );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -