?? tvpicture.h.svn-base
字號(hào):
/**
* This code and information is part of Trident TVAPI
* Copyright (C) Trident Technologies, Inc.
* 2002 All rights reserved.
*
* This file contains definitions and macros related to
* DPTV and PMM picture
*
* Revision:
* 06/01/2002 mark modify
* 05/2002 mark Created
*
**/
#ifndef tvPictureH
#define tvPictureH
#ifdef __cplusplus
extern "C" {
#endif
//----------- TVAPI Callback ---------------------------
/*
* Application shall implement this callback routine.
*
* Application will read picture settings from EEPROM, then set hardware, and update
* OSD menu if necessary.
*
* @param ucWinType Window type, can be ::_WT_MP_ or ::_WT_PP_.
*
*/
Void tvAppUpdatePicture(Byte ucWinType);
//----------- TVAPI -----------------------------------
typedef struct tagNoiseReductionTable
{
Word wNRTableID; /** The word is optimized for 80C51 */
Byte ucNRTableCol[9]; /** motion: full, half, still; signal: strong, medium, weak */
} NoiseReductionTable;
typedef NoiseReductionTable RomPtr RPNoiseReductionTable;
#define _DVNR_AUTO_ 0
#define _DVNR_LOW_ 1
#define _DVNR_MEDIUM_ 2
#define _DVNR_HIGH_ 3
#define _DVNR_OFF_ 4
#define ACM_FLESH 0
#define ACM_GREEN 1
#define ACM_BLUE 2
// Application will be responsible for converting input range
/*
* Trident will maintain this file internally.
*/
/*
#define CONTRAST_HIGHTEST 0x3F // 99
#define CONTRAST_MIDDLE 0x20 // 50
#define CONTRAST_LOWEST 0x00 // 00
#define BRIGHTNESS_HIGHTEST 0x7F // 99
#define BRIGHTNESS_MIDDLE 0x0C // 50
#define BRIGHTNESS_LOWEST (0-0x80) // 0
#define SHARPNESS_HIGHTEST 0x1F
#define SHARPNESS_MIDDLE 0x0C
#define SHARPNESS_LOWEST 0x00
#define SATURATION_HIGHTEST 0x7F
#define SATURATION_MIDDLE 0x40
#define SATURATION_LOWEST 0x00
#define tvConvertContrast(ucVal)\
tvConvertMenuValToReg(ucVal, CONTRAST_LOWEST, CONTRAST_MIDDLE, CONTRAST_HIGHTEST)
#define tvInConvertContrast(ucVal) \
tvConvertRegToMenuVal(ucVal, CONTRAST_LOWEST, CONTRAST_MIDDLE, CONTRAST_HIGHTEST)
#define tvConvertBrightness(ucVal) \
tvConvertMenuValToReg(ucVal, BRIGHTNESS_LOWEST, BRIGHTNESS_MIDDLE, BRIGHTNESS_HIGHTEST)
#define tvInConvertBrightness(ucVal) \
tvConvertRegToMenuVal(ucVal, BRIGHTNESS_LOWEST, BRIGHTNESS_MIDDLE, BRIGHTNESS_HIGHTEST)
#define tvConvertSharpness(ucVal) \
tvConvertMenuValToReg(ucVal, SHARPNESS_LOWEST, SHARPNESS_MIDDLE, SHARPNESS_HIGHTEST)
#define tvInConvertSharpness(ucVal) \
tvConvertRegToMenuVal(ucVal, SHARPNESS_LOWEST, SHARPNESS_MIDDLE, SHARPNESS_HIGHTEST)
#define tvConvertSaturation(ucVal) \
tvConvertMenuValToReg(ucVal, SATURATION_LOWEST, SATURATION_MIDDLE, SATURATION_HIGHTEST)
#define tvInConvertSaturation(ucVal) \
tvConvertRegToMenuVal(ucVal, SATURATION_LOWEST, SATURATION_MIDDLE, SATURATION_HIGHTEST)
*/
Word tvConvertMenuValToReg(Byte ucVal,Byte ucBitNum, Short LOW, Short MID, Short HIGH);
Byte tvConvertRegToMenuVal(Word wVal, Byte ucBitNum, Short LOW, Short MID, Short HIGH);
Byte tvConverToReg(Byte ucVal, Byte MIN, Byte MID, Byte MAX);
Byte tvConverToReg1(Byte ucVal, Byte MIN, Byte MID, Byte MAX);//YYM ADD
/*
#define tvConvertHue(wVal) \
tvConvertMenuValToReg(ucVal, 10,HUE_LOWEST, HUE_MIDDLE, HUE_HIGHTEST)
#define tvInConvertHue(ucVal) \
tvConvertRegToMenuVal(ucVal, 10, HUE_LOWEST, HUE_MIDDLE, HUE_HIGHTEST)
*/
#if 0//#ifndef FACTORY_MODE_ENABLE
#define HUE_HIGHTEST 0x5F //99
#define HUE_MIDDLE 0x0 //50
#define HUE_LOWEST (0 - 0x5F) //0
#define CONTRAST_HIGHTEST 0xff // 100
#define CONTRAST_MIDDLE 0xB0 // 50
#define CONTRAST_LOWEST 0x40 // 00
#define BRIGHTNESS_HIGHTEST 0x64 // 100
#define BRIGHTNESS_MIDDLE 0x00 // 50
#define BRIGHTNESS_LOWEST (0 - 0x64) // 0
#define SHARPNESS_HIGHTEST 0x1F
#define SHARPNESS_MIDDLE 0x10
#define SHARPNESS_LOWEST 0x00
#define SATURATION_HIGHTEST 0x7F
#define SATURATION_MIDDLE 0x37
#define SATURATION_LOWEST 0x00
#endif
/*
#define tvConvertHue(ucVal) tvConverToReg(ucVal,HUE_LOWEST, HUE_MIDDLE, HUE_HIGHTEST)
#define tvInConvertHue(ucVal) ucVal
#define tvConvertContrast(ucVal) tvConverToReg(ucVal, CONTRAST_LOWEST, CONTRAST_MIDDLE, CONTRAST_HIGHTEST)
#define tvInConvertContrast(ucVal) ucVal
#define tvConvertBrightness(ucVal) tvConverToReg(ucVal, BRIGHTNESS_LOWEST, BRIGHTNESS_MIDDLE, BRIGHTNESS_HIGHTEST)
#define tvInConvertBrightness(ucVal) ucVal
#define tvConvertSharpness(ucVal) tvConverToReg(ucVal, SHARPNESS_LOWEST, SHARPNESS_MIDDLE, SHARPNESS_HIGHTEST)
#define tvInConvertSharpness(ucVal) ucVal
#define tvConvertSaturation(ucVal) tvConverToReg(ucVal, SATURATION_LOWEST, SATURATION_MIDDLE, SATURATION_HIGHTEST)
#define tvInConvertSaturation(ucVal) ucVal
*/
Void tvSetContrast(Byte ucWindowType, Byte ucVal);
void tvSetContrastforPC(Byte ucVal);
Void tvSetBrightness(Byte ucWindowType, Byte ucVal);
Void tvSetBrightnessForPC(Byte ucWindowType, Byte ucVal);
void tvSetSaturation(Byte ucWindowType, Byte ucVal);
Void tvSetHue(Byte ucWindowType, Byte ucVal);
Void tvSetSharpness(Byte ucWindowType, Byte ucVal);
Void tvSetColorTemp(Byte ucWindowType, Byte ucColorTemp);
Void tvSetPicMode(Byte ucVal);
// 0 <= ucVal <= 4
Void tvSetDVNR(Word wNRTableID, Byte ucVal);
Void tvSetUVDelay(Byte ucUVDelay);
Void tvSetDVVMLevel(Byte ucVMGain, Byte ucVMDelay);
Void tvSetDVVMOnOff(Bool bOnOff);
Bool tvGetDVVMOnOff(Void);
Void tvSetCinemaMode(Bool bOn);
// 0 <= ucVal <= 2
Void tvSetDVMode(Byte ucVal);
Byte tvGetAdjustValue(GPByte pByte, Byte ucValue);
/*
* This routine will be invoked when MP/PIP input source is changed.
*/
Void tvUpdatePicture(Byte ucWinType);
Void tvSetSVPVideo(Void);
Void tvSetGamma(Byte ucPicMode);
Void tvSetPictureSize(Void);
Void tvAutoWeakSignalDetect(Void);
Void tvSetFleshtone(Byte ucWindowType, Byte ucVal);
Void tvSetGreentone(Byte ucWindowType, Byte ucVal);
Void tvSetBluetone(Byte ucWindowType, Byte ucVal);
Void tvSetBackLight(Byte ucVal);
//-----------------------------------------------------
#ifdef __cplusplus
};
#endif
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -