⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msace.h

📁 MST720-DEMO程序
💻 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_

#include "TypeDef.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_ XDATA short *tSrgbMatrix;

// Color correction matrix for Video
// this variable must pointer to a array[3][3]
_MSACEDEC_ XDATA short *tColorCorrectionMatrix;

///////////////////////////////////////////////////////////////////////////////
// Basic color control function(Library)
///////////////////////////////////////////////////////////////////////////////

// Initialize ACE varible
// Must call this function before call other ace function
void InitACEVar();

//------------------------------------------------------------------------
// 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( BYTE 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( BYTE ucSaturation );


void msAdjustVideoCbCr( BYTE ucS1, BYTE ucS2 );

//------------------------------------------------------------------------
// 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( BYTE 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( BYTE ucRCon, BYTE ucGCon, BYTE 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( BYTE 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( BYTE ucRed, BYTE ucGreen, BYTE 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( BYTE ucHue, BYTE ucSaturation, BYTE ucContrast );

void msAdjustPCContrastRGB( BYTE ucContrast, BYTE ucRed, BYTE ucGreen, BYTE ucBlue );

// Turn On/Off sRGB, PC use only
void msACEPCsRGBCtl( BOOL bEnable );

//------------------------------------------------------------------------
void msACEPCYUV2RGBCtl( BOOL bEnable );


#endif

⌨️ 快捷键说明

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