📄 al242.h
字号:
#ifndef _AL242_
#define _AL242_
#pragma once
#define S_VIDEO 4
#define COMPOSITE 1
#define _NTSC_M 0
#define _NTSC_443 1
#define _PAL_I 2
#define _PAL_M 3
#define _PAL_N 4
#define _SECAMx 5
#define _PAL_CN 6
#define _PAL_60 7
#define _NTSC_J 8
#define _AUTO 9
#define _colour_mode 0
#define _vline_625 1
#define _hpixel 2
#define _ped 3
#define _hagc 4
#define _hactive_start 5
#define _vactive_start 6
#define _vactive_high 7
#define _adaptive_mode 8
#define _Cautopos 9
#define _Cage 10
#define _comb_wide_band 11
#define _chroma_burst 12
#define _Chroma_bw_lo 13
#define _Contrast 0
#define _Brightness 1
#define _Saturation 2
double _4xSubCarrier[9]={
14.31818182, // _NTSC_M 0
17.73447500, // _NTSC_443 2
17.73447500, // _PAL_I 3
14.30244596, // _PAL_M 5
17.73447500, // _PAL_N 4
17.14400000, // _SECAM 8
14.32822500, // _PAL_CN 6
17.73447500, // _PAL_60 7
14.31818182 // _NTSC_J 1
};
UINT _VideoFormatDetect;
unsigned int VideoSpec[14][9]={
//_colour_mode
{0,0,1,2,1,4,3,1,0},
//_vline_625
{0,0,1,0,1,1,1,0,0},
//_hpixel
{0,0,1,0,1,1,1,0,0},
//_ped
{1,1,0,0,0,0,0,0,0},
//_hagc
{221,221,220,221,220,220,220,220,221},
//_hactive_start
{0x88,0x88,0x8e,0x88,0x8e,0x8e,0x8e,0x88,0x88},
//_vactive_start
{34,34,42,34,42,42,42,34,34},
//_vactive_high
{97,97,193,97,193,193,193,97,97},
//_adaptive_mode
{0,3,2,2,2,0,2,2,1},
//_Cautopos
{0x2c,0x2c,0x2c,0x2c,0x2c,8,0x2c,0x2c,0x2c},
//_Cage
{0,0,103,0,0,0,0,0,0},
//_comb_wide_band
{0,0,1,1,0,0,0,0,0},
//_chroma_burst
{1,1,1,1,0,0,0,0,0},
//_Chroma_bw_lo
{0x02,0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x02}
};
#define _Contrast 0
#define _Brightness 1
#define _Saturation 2
unsigned char _CBS[3][3][9]={ // Contrast,Brightness,Saturation
// Composite input
{
//_Contrast
{0x88,0x88,0x80,0x88,0x80,0x88,0x80,0x80,0x88},
//_Brightness
{0x26,0x26,0x1c,0x20,0x1c,0x20,0x1c,0x1c,0x26},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
},
// Svideo input
{
//_Contrast
{0x83,0x83,0x80,0x83,0x80,0x83,0x80,0x80,0x83},
//_Brightness
{0x2b,0x2b,0x1c,0x16,0x1c,0x16,0x1c,0x1c,0x2b},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
},
// Component input
{
//_Contrast
{0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83},
//_Brightness
{0x31,0x31,0x3d,0x31,0x3d,0x3d,0x3d,0x3d,0x31},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
}
};
/*
unsigned int VideoSpec[14][9]={
//_colour_mode
{0,0,1,2,1,4,3,1,0},
//_vline_625
{0,0,1,0,1,1,1,0,0},
//_hpixel
{0,0,1,0,1,1,1,0,0},
//_ped
{1,1,0,0,0,0,0,0,0},
//_hagc
{221,221,220,221,220,220,220,220,221},
//_hactive_start
{0x88,0x88,0x8e,0x88,0x8e,0x8e,0x8e,0x88,0x88},
//{0x86,0x86,0x8c,0x86,0x8c,0x8c,0x8c,0x86,0x86}, ////QNAP_DVB
//_vactive_start
{34,34,42,34,42,42,42,34,34},
//_vactive_high
{97,97,193,97,193,193,193,97,97},
//{100,100,191,100,191,191,191,100,100}, //QNAP_DVB==>add 3 lines (481--484)
//_adaptive_mode
{0,3,2,2,2,0,2,2,1},
//_Cautopos
{0x2c,0x2c,0x2c,0x2c,0x2c,8,0x2c,0x2c,0x2c},
//_Cage
{0,0,103,0,0,0,0,0,0},
//_comb_wide_band
{0,0,1,1,0,0,0,0,0},
//_chroma_burst
{1,1,1,1,0,0,0,0,0},
//_Chroma_bw_lo
{0x02,0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x02}
};
unsigned char _CBS[3][3][9]={ // Contrast,Brightness,Saturation
// Composite input
{
//_Contrast
{0x88,0x88,0x80,0x80,0x80,0x80,0x80,0x80,0x88},
//{0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75,0x75},
//_Brightness
{0x26,0x26,0x20,0x20,0x20,0x20,0x20,0x20,0x26},
//{0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
},
// Svideo input
{
//_Contrast
{0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83},
//_Brightness
{0x2b,0x2b,0x16,0x16,0x16,0x16,0x16,0x16,0x2b},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
},
// Component input
{
//_Contrast
{0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83,0x83},
//_Brightness
{0x31,0x31,0x3d,0x3d,0x3d,0x3d,0x3d,0x3d,0x31},
//_Satruration
{0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93,0x93}
}
};
*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -