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

📄 pictcont.h

📁 IT projecotr reference design.
💻 H
字号:
/*****************************************************************************
**             TEXAS INSTRUMENTS PROPRIETARY INFORMATION
**
**  (c) Copyright, Texas Instruments Incorporated, 2006.
**      All Rights Reserved.
**
**  Property of Texas Instruments Incorporated. Restricted Rights -
**  Use, duplication, or disclosure is subject to restrictions set
**  forth in TI's program license agreement and associated documentation.
******************************************************************************/

#ifndef _PICTCONT_H
#define _PICTCONT_H

#include "common.h"
#include "src.h"
#include "splash.h"
#include "app_cfg.h"
#include "datapath.h"

#define HSG_HUE_SCALEFACTOR (int16) 164

#define HUEMINVAL (int16) 0xC000
#define HUEMAXVAL (int16) 0x4000

#define HSG_SATURATION_SCALEFACTOR (int16) 164

#define SATURATIONMINVAL (int16) 0
#define SATURATIONMAXVAL (int16) 0x7FFF

#define HSG_GAIN_SCALEFACTOR (int16) 164

#define GAINMINVAL (int16) 0
#define GAINMAXVAL (int16) 0x7FFF

#define WHITEGAINSCALEFACTOR (int16) 164
#define WHITEGAINMINVAL (int16) 0
#define WHITEGAINMAXVAL (int16) 0x7FFF

typedef enum _HSG_Color_Type
{
    HSG_RED     = 0,
    HSG_GREEN   = 1,
    HSG_BLUE    = 2,
    HSG_CYAN    = 3,
    HSG_MAGENTA = 4,
    HSG_YELLOW  = 5,
    HSG_WHITE   = 6
} HSGColorEnum;

typedef enum
{	 	 
	 SCREEN_CAPTURE_WRITE_TO_FLASH_COMPLETE     = SPLASH_WRITE_TO_FLASH_COMPLETE,
	 SCREEN_CAPTURE_FAIL                        = SPLASH_CAPTURE_FAIL,
	 SCREEN_CAPTURE_NOT_SUPPORTED               = SPLASH_CAPTURE_NOT_SUPPORTED,
	 SCREEN_CAPTURE_INSUFFICIENT_SPACE_IN_FLASH = SPLASH_INSUFFICIENT_SPACE_IN_FLASH,
	 SCREEN_CAPTURE_PROGRESS                    = SPLASH_CAPTURE_IN_PROGRESS,
	 SCREEN_CAPTURE_UNSUCCESSFUL                = 0,
	 SCREEN_CAPTURE_ADDRESS                     = 2,
	 SCREEN_CAPTURE_EXECUTE                     = 3,
	 MAX_SCREEN_CAPTURE
	 
} ScreenCaptureStateEnum;

typedef enum
{
COLORTEMP_NATIVE  = 0x2,
COLORTEMP_WARMEST = 0x3,
COLORTEMP_WARMER  = 0x4,
COLORTEMP_COOLER  = 0x5,
COLORTEMP_COOLEST = 0x6
} ColorTempEnum;


void pictcont_InitializeOnce( void );
int08 pictcont_ConfigureForInternalSource( void );
int08 pictcont_ConfigureForExternalSource( void );

int08 pictcont_GetBrightnessLimits( int16 *min, int16 *max );
int08 pictcont_GetBrightness( int16 *value );
int08 pictcont_SetBrightness( int16 value );
int08 pictcont_GetContrastLimits( int16 *min, int16 *max );
int08 pictcont_GetContrast( int16 *value );
int08 pictcont_SetContrast( int16 value );
int08 pictcont_GetHueLimits( int16 *min, int16 *max );
int08 pictcont_GetHue( int16 *value );
int08 pictcont_SetHue( int16 value );
int08 pictcont_GetColorLimits( int16 *min, int16 *max );
int08 pictcont_GetColor( int16 *value );
int08 pictcont_SetColor( int16 value );
int08 pictcont_GetSharpnessLimits( int16 *min, int16 *max );
int08 pictcont_GetSharpness( int16 *value );
int08 pictcont_SetSharpness( int16 value );
int08 pictcont_GetColorSpace( uint08 *tableIndex );
int08 pictcont_SetColorSpace( uint08 tableIndex );
int08 pictcont_GetGamma( uint08 *gammaTable );
int08 pictcont_SetGamma( uint08 gammaTable );
int08 pictcont_GetWhitePeaking( uint08 *value );
int08 pictcont_SetWhitePeaking( uint08 value );
int08 pictcont_SetBrilliantColor( uint08 enable );
int08 pictcont_GetNoiseReduction( uint08 *enable );
int08 pictcont_SetNoiseReduction( uint08 enable );
int08 pictcont_SetBrilliantColorLook( uint08 look );
int08 pictcont_GetBrilliantColorLook( uint08 *look );
int08 pictcont_ScreenCapture(void);
int08 pictcont_GetHSGHueSatGain( int16 colour, int16 *hue, int16 *saturation, int16 *gain);
int08 pictcont_SetAllHSGColorValues( struct colorvaluesstruct *colorValues );
int08 pictcont_GetHSGHueLimits( int16 *min, int16 *max );
int08 pictcont_SetHSGHue( int16 colour, int16 hue );
int08 pictcont_GetHSGGainLimits( int16 *min, int16 *max );
int08 pictcont_SetHSGGain( int16 colour, int16 gain );
int08 pictcont_GetHSGSaturationLimits( int16 *min, int16 *max );
int08 pictcont_SetHSGSaturation( int16 colour, int16 saturation );
int08 pictcont_SetAllHSGWhiteGains( int16 redGain, int16 greenGain, int16 blueGain );
int08 pictcont_GetHSGWhiteGainsLimits( int16 *min, int16 *max );
void  pictcont_RestoreColorDefaults( BOOL resetAll );
void  pictcont_SetColorTempPresets( ColorTempEnum colorTemp );
uint08 pictcont_GetColorTempPresets( void );
void pictcont_writeColorDefaultstoEEPROM( DP_CONNECTOR connector );





#endif

⌨️ 快捷键说明

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