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

📄 tidtv_gammactrl2.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
字号:
/*******************************************************************************
*	@ModuleName	::	TiDTV_GammaCtrl.h
*
*	@Copyright	::	Copyright 2005- Texas Instruments, Inc.
*
*	@Description::	Constants and Defs for TI DTV Gamma Correction APIs
*
*	@History	::
*---------------------------------------
*	07-14-2005	Paul Hunt	Created
*******************************************************************************/

#ifndef _TI_DTV_GAMMA_CTRL_H_
#define _TI_DTV_GAMMA_CTRL_H_

#define TVP_NUM_LUT_ENTRIES 256 // debug, should come from system files

//#define ENC_GAMMA_BIAS        100
#define ENC_GAMMA_DIVISOR     100

#define ENC_LUT_WRITE_RED     0x01
#define ENC_LUT_WRITE_GRN     0x02
#define ENC_LUT_WRITE_BLU     0x04

//#define ENC_GAMMA_GEN_RED     0x10
//#define ENC_GAMMA_GEN_GRN     0x20
//#define ENC_GAMMA_GEN_BLU     0x40
#define ENC_GAMMA_GEN_RED     0x01
#define ENC_GAMMA_GEN_GRN     0x02
#define ENC_GAMMA_GEN_BLU     0x04

// channelFlags allows you to specify which gamma tables to generate with the
// function call, they may be generated one at a time, or all at once if you
// want them to all have the same curve (or two matching and one different)

// gamma_fix is a fixed point representation of the gamma coefficient
// effective gamma equals gamma_fix / ENC_GAMMA_DIVISOR
// currently gamma_fix = 100 means gamma = 1.0

// inc_gain, an incremental gain of plus or minus one-fourth
// allows gamma gain to range from 0.75 to 1.25
// inc_gain -128 means effective gain = 0.75, inc_gain 127 means effective gain ~= 1.25
void tvpEncGammaTableGen2(unsigned char channelFlags, unsigned short gamma_fix, char inc_gain);

//
void tvpEncLutWrite(unsigned char channelFlags);

#endif   /* _TI_DTV_GAMMA_CTRL_H_ */

⌨️ 快捷键说明

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