📄 color_cpt07_at.c
字号:
{ACE_TABLE_END , 0xFFFF} // End
};
// Noise Mask
code MS_REG16_TYPE g_ACE_NoiseMask_HD_TBL[2] =
{
{_PK(0x18, 0x55), 0xC101}, // Horirontal noise-masking gain/flesh of Y/C
{ACE_TABLE_END , 0xFFFF}
};
// BLE/WLE
code MS_REG16_TYPE g_ACE_BLEWLE_HD_TBL[3] =
{
// {_PK(0x1A, 0x10), 0x8870}, // BLE start point, slop
{_PK(0x1A, 0x10), 0x9850}, // BLE start point, slop // kevin 20070831
{_PK(0x1A, 0x11), 0x8020}, //WLE start point, slop
{ACE_TABLE_END , 0xFFFF} // End
};
// YC-Gain
code MS_REG16_TYPE g_ACE_YCGain_HD_TBL[2] =
{
// {_PK(0x1A, 0x14), 0x4540}, // Y/C gain control
{_PK(0x1A, 0x14), 0x4040}, // Y/C gain control // kevin 20070831
{ACE_TABLE_END , 0xFFFF} // End
};
// YC-Coring
code MS_REG16_TYPE g_ACE_YCCoring_HD_TBL[6] =
{
{_PK(0x18, 0x50), 0x4343}, // Y/C coring enable
{_PK(0x18, 0x51), 0x69CF}, // Y gain table 1/2
{_PK(0x18, 0x52), 0x0124}, // Y gain table 3/4
{_PK(0x18, 0x53), 0x69CF}, // C gain table 1/2
{_PK(0x18, 0x54), 0x0124}, // C gain table 3/4
{ACE_TABLE_END , 0xFFFF} // End
};
// Shinny
code MS_REG16_TYPE g_ACE_Shinny_HD_TBL[2] =
{
{_PK(0x10, 0x16), 0x3110}, // Shinny color rounding, gain, enable
{ACE_TABLE_END , 0xFFFF} // End
};
//------------------------------------------------------------------------------
// DTV-SD Color Fine-Tune Tables
//------------------------------------------------------------------------------
// COMB - Default
// SNR
code MS_REG16_TYPE g_ACE_SNR_SD_TBL[7] =
{
{_PK(0x0C, 0x30), 0x0C01}, // SNR enable, active threshold
{_PK(0x0C, 0x31), 0x0002}, // SNR strength, alpha step
{_PK(0x0C, 0x34), 0x69CF}, // SNR LUT_0123
{_PK(0x0C, 0x35), 0x0124}, // SNR_LUT_4567
{_PK(0x0C, 0x36), 0x0000}, // SNR_LUT_89AB
{_PK(0x0C, 0x37), 0x0000}, // SNR_LUT_CDEF
{ACE_TABLE_END , 0xFFFF} // End
};
// DeBlocking
code MS_REG16_TYPE g_ACE_DeBlocking_SD_TBL[18] =
{
{_PK(0x0C, 0x10), 0x0C03}, // DBNR enable, active threshold
{_PK(0x0C, 0x11), 0x0004}, // DBNR strength, alpha step
{_PK(0x0C, 0x14), 0x69CF}, // DBNR LUT_0123
{_PK(0x0C, 0x15), 0x0124}, // DBNR_LUT_4567
{_PK(0x0C, 0x16), 0x0000}, // DBNR_LUT_89AB
{_PK(0x0C, 0x17), 0x0000}, // DBNR_LUT_CDEF
{_PK(0x0C, 0x18), 0x0000}, // De-blocking H counter initial value 1
{_PK(0x0C, 0x19), 0x0000}, // De-blocking H counter initial value 2
{_PK(0x0C, 0x1A), 0x0000}, // De-blocking V counter initial value 1
{_PK(0x0C, 0x1B), 0x0000}, // De-blocking V counter initial value 2
{_PK(0x0C, 0x1C), 0x0000}, // De-blocking H counter ratio 1
{_PK(0x0C, 0x1D), 0x0100}, // De-blocking H counter ratio 2
{_PK(0x0C, 0x1E), 0x0000}, // De-blocking V counter ratio 1
{_PK(0x0C, 0x1F), 0x0100}, // De-blocking V counter ratio 2
{_PK(0x0C, 0x28), 0x0808}, // H/V block width
{_PK(0x0C, 0x29), 0x0106}, // H block left/right boundary
{_PK(0x0C, 0x2A), 0x0006}, // V block left/right boundary
{ACE_TABLE_END , 0xFFFF} // End
};
// V-Peaking
code MS_REG16_TYPE g_ACE_VPeaking_SD_TBL[10] =
{
//{_PK(0x02, 0x2C), 0x3024}, // CTI low-pass & band-pass filter coefficient, setp
{_PK(0x02, 0x2C), 0x3064}, // CTI low-pass & band-pass filter coefficient, setp // kevin 20070831
{_PK(0x02, 0x2D), 0x8888}, // CTI coring threshold, median filter, enable
{_PK(0x07, 0x1E), 0x0020}, // Vertical C low pass filter enable
{_PK(0x0C, 0x60), 0x0025}, // Vpeaking enable, vertical filter enable, coring threahold step
{_PK(0x0C, 0x61), 0x0C10}, // Vpeaking vertical coefficient & step
{_PK(0x0C, 0x62), 0x0021}, // Vpeaking coring threshold 1 & 2, vertical threshold
{_PK(0x0C, 0x63), 0x1001}, // Vpeaking term1 & 2 select, shapness adjust
{_PK(0x0C, 0x70), 0x0480}, // Vpeaking vertical overshoot limitation
{_PK(0x0C, 0x71), 0x0480}, // Vpeaking vertical undershoot limitation
{ACE_TABLE_END , 0xFFFF} // End
};
// Post-Scaling
code MS_REG16_TYPE g_ACE_PostScaling_SD_TBL[3] =
{
{_PK(0x02, 0x0A), 0x0000}, // Y delay enable, Y/C delay pipe step
{_PK(0x07, 0x0A), 0xC242}, // Y/G & C/RB vertical scaling, Y/G & C/RB horizontal scaling
{ACE_TABLE_END , 0xFFFF} // End
};
// H-Peaking
code MS_REG16_TYPE g_ACE_HPeaking_SD_TBL[23] =
{
// {_PK(0x19, 0x10), 0x0F41}, // Peaking enable
{_PK(0x19, 0x10), 0x0F61}, // Peaking enable // kevin 20070831
{_PK(0x19, 0x11), 0x0000}, // Band 1~4 coefficient step
// {_PK(0x19, 0x13), 0x1821}, // coring threshold 1/2, user sharpness adjust
{_PK(0x19, 0x13), 0x0B21}, // coring threshold 1/2, user sharpness adjust // kevin 20070831
// {_PK(0x19, 0x18), 0x2024}, // Band 1/2 coefficient
{_PK(0x19, 0x18), 0x1430}, // Band 1/2 coefficient // kevin 20070831
// {_PK(0x19, 0x19), 0x181C}, // Band 3/4 coefficient
{_PK(0x19, 0x19), 0x0E12}, // Band 3/4 coefficient // kevin 20070831
{_PK(0x19, 0x1C), 0x00E4}, // Peaking term 1~4 select
// {_PK(0x19, 0x20), 0x20A0}, // Band 1/2 overshoot limit
{_PK(0x19, 0x20), 0x40A0}, // Band 1/2 overshoot limit // kevin 20070831
// {_PK(0x19, 0x21), 0x0408}, // Band 3/4 overshoot limit
{_PK(0x19, 0x21), 0x0808}, // Band 3/4 overshoot limit // kevin 20070831
// {_PK(0x19, 0x24), 0x20A0}, // Band 1/2 undershoot limit
{_PK(0x19, 0x24), 0x40A0}, // Band 1/2 undershoot limit // kevin 20070831
// {_PK(0x19, 0x25), 0x0408}, // Band 3/4 undershoot limit
{_PK(0x19, 0x25), 0x0810}, // Band 3/4 undershoot limit // kevin 20070831
{_PK(0x19, 0x30), 0x3000}, // Coring step
{_PK(0x19, 0x31), 0x000F}, // Band1~4 differential adaptive enable
{_PK(0x19, 0x32), 0x0068}, // Horizontal differential adaptive gain step
{_PK(0x19, 0x33), 0x0000}, // Band 1~4 coring threshold
{_PK(0x19, 0x40), 0x2728}, // Horizontal differential adaptive LUT 0/1
{_PK(0x19, 0x41), 0x2526}, // Horizontal differential adaptive LUT 2/3
{_PK(0x19, 0x42), 0x2324}, // Horizontal differential adaptive LUT 4/5
{_PK(0x19, 0x43), 0x2122}, // Horizontal differential adaptive LUT 6/7
{_PK(0x19, 0x44), 0x1F20}, // Horizontal differential adaptive LUT 8/9
{_PK(0x19, 0x45), 0x1D1E}, // Horizontal differential adaptive LUT 10/11
{_PK(0x19, 0x46), 0x1B1C}, // Horizontal differential adaptive LUT 12/13
{_PK(0x19, 0x47), 0x191A}, // Horizontal differential adaptive LUT 14/15
{ACE_TABLE_END , 0xFFFF} // End
};
// Y-Adjust
code MS_REG16_TYPE g_ACE_YAdjust_SD_TBL[2] =
{
{_PK(0x1A, 0x0F), 0x0006}, // Y adjust // kevin 20070831
{ACE_TABLE_END , 0xFFFF} // End
};
// FCC
code MS_REG16_TYPE g_ACE_FCC_SD_TBL[10] =
{
//{_PK(0x18, 0x10), 0x0015}, // Flesh control enable, Gray guard enable
{_PK(0x18, 0x10), 0x0000}, // Flesh control enable, Gray guard enable // kevin 20070831
{_PK(0x18, 0x18), 0xA073}, // Flesh tone cb/cr target
{_PK(0x18, 0x1A), 0x70A5}, // FCC region 3 cb/cr target
{_PK(0x18, 0x1B), 0xB353}, // FCC region 4 cb/cr target
{_PK(0x18, 0x20), 0x4884}, // Flesh control strength
{_PK(0x18, 0x21), 0x5888}, // Gray guard sttength
{_PK(0x18, 0x24), 0xBAA6}, // Flesh range cr/cb up/down distance
{_PK(0x18, 0x25), 0xFBFB}, // Region 4 range cr/cb up/down distance
{_PK(0x18, 0x27), 0xAAFF}, // Gray range cr/cr up/down ditance
{ACE_TABLE_END , 0xFFFF} // End
};
// ICC
code MS_REG16_TYPE g_ACE_ICC_SD_TBL[6] =
{
// {_PK(0x18, 0x30), 0x00C0}, // ICC enable and cbcr to uv enable
{_PK(0x18, 0x30), 0x0080}, // ICC enable and cbcr to uv enable // kevin 20070831
{_PK(0x18, 0x31), 0xA080}, // ICC saturation adjustment of R/G
{_PK(0x18, 0x32), 0xC0C0}, // ICC saturation adjustment of B/C
{_PK(0x18, 0x33), 0x8080}, // ICC saturation adjustment of M/Y
{_PK(0x18, 0x34), 0x0040}, // ICC saturation adjustment of F
{ACE_TABLE_END , 0xFFFF} // End
};
// IBC
code MS_REG16_TYPE g_ACE_IBC_SD_TBL[7] =
{
// {_PK(0x18, 0x40), 0x00A0}, // IBC coring threshold, IBC Y adjust LPF enable, IBC enable
{_PK(0x18, 0x40), 0x0000}, // IBC coring threshold, IBC Y adjust LPF enable, IBC enable // kevin 20070831
{_PK(0x18, 0x41), 0x2018}, // IBC Y adjustment of R/G
{_PK(0x18, 0x42), 0x2830}, // IBC Y adjustment of B/C
{_PK(0x18, 0x43), 0x1818}, // IBC Y adjustment of M/Y
{_PK(0x18, 0x44), 0x0018}, // IBC Y adjustment of F
{_PK(0x18, 0x48), 0x6600}, // IBC weight min limit of Y/C
{ACE_TABLE_END , 0xFFFF} // End
};
// IHC
code MS_REG16_TYPE g_ACE_IHC_SD_TBL[6] =
{
{_PK(0x18, 0x60), 0x0000}, // IHC enable
{_PK(0x18, 0x61), 0x0038}, // IHC hue adjustment of R/G
{_PK(0x18, 0x62), 0x3838}, // IHC hue adjustment of B/C
{_PK(0x18, 0x63), 0x0000}, // IHC hue adjustment of M/Y
{_PK(0x18, 0x64), 0x0058}, // IHC hue adjustment of F
{ACE_TABLE_END , 0xFFFF} // End
};
// Noise Mask
code MS_REG16_TYPE g_ACE_NoiseMask_SD_TBL[2] =
{
{_PK(0x18, 0x55), 0xC181}, // Horirontal noise-masking gain/flesh of Y/C
{ACE_TABLE_END , 0xFFFF}
};
// BLE/WLE
code MS_REG16_TYPE g_ACE_BLEWLE_SD_TBL[3] =
{
// {_PK(0x1A, 0x10), 0x8070}, // BLE start point, slop
{_PK(0x1A, 0x10), 0x9850}, // BLE start point, slop // kevin 20070831
{_PK(0x1A, 0x11), 0x8020}, //WLE start point, slop
{ACE_TABLE_END , 0xFFFF} // End
};
// YC-Gain
code MS_REG16_TYPE g_ACE_YCGain_SD_TBL[2] =
{
// {_PK(0x1A, 0x14), 0x4540}, // Y/C gain control
{_PK(0x1A, 0x14), 0x4040}, // Y/C gain control // kevin 20070831
{ACE_TABLE_END , 0xFFFF} // End
};
// YC-Coring
code MS_REG16_TYPE g_ACE_YCCoring_SD_TBL[6] =
{
{_PK(0x18, 0x50), 0x3383}, // Y/C coring enable
{_PK(0x18, 0x51), 0x3210}, // Y gain table 1/2
{_PK(0x18, 0x52), 0x4444}, // Y gain table 3/4
{_PK(0x18, 0x53), 0x69CF}, // C gain table 1/2
{_PK(0x18, 0x54), 0x0124}, // C gain table 3/4
{ACE_TABLE_END , 0xFFFF} // End
};
// Shinny
code MS_REG16_TYPE g_ACE_Shinny_SD_TBL[2] =
{
{_PK(0x10, 0x16), 0x3110}, // Shinny color rounding, gain, enable
{ACE_TABLE_END , 0xFFFF} // End
};
//------------------------------------------------------------------------------
// ATV Color Fine-Tune Tables
//------------------------------------------------------------------------------
// COMB
code MS_REG_TYPE g_ACE_COMB_ATV_NTSC_TBL[11] =
{
{BK_COMB_60, 0x50}, // Comb IF compenstaion
{BK_COMB_70, 0xD0}, // Auto chroma gain mode
{BK_COMB_73, 0x78}, // Contrast adjustment coefficient
{BK_COMB_74, 0x9C}, // Brightness adjustment coefficient // kevin 20070831
{BK_COMB_75, 0xC0}, // Saturation adjustment coefficient // kevin 20070831
{BK_COMB_78, 0xB0}, // Chroma gain value for manu chroma gain
{BK_COMB_82, 0x6A}, // Cr gain for U/V demodulation // kevin 20070831
{BK_COMB_83, 0x04}, // CTI mode, Cb/Cr LPF Mode // kevin 20070831
{BK_COMB_9A, 0x33}, // AMP_YDIFF_V1 Gain
{BK_COMB_9D, 0x00}, // Entropy H2
{ACE_TABLE_END, 0xFF} // End
};
// SNR
code MS_REG16_TYPE g_ACE_SNR_ATV_NTSC_TBL[7] =
{
{_PK(0x0C, 0x30), 0x0000}, // SNR enable, active threshold
{_PK(0x0C, 0x31), 0x0010}, // SNR strength, alpha step
{_PK(0x0C, 0x34), 0xFFFF}, // SNR LUT_0123
{_PK(0x0C, 0x35), 0x469C}, // SNR_LUT_4567
{_PK(0x0C, 0x36), 0x0012}, // SNR_LUT_89AB
{_PK(0x0C, 0x37), 0x0000}, // SNR_LUT_CDEF
{ACE_TABLE_END , 0xFFFF} // End
};
// DeBlocking - Default
// V-Peaking
code MS_REG16_TYPE g_ACE_VPeaking_ATV_NTSC_TBL[10] =
{
//{_PK(0x02, 0x2C), 0x3024}, // CTI low-pass & band-pass filter coefficient, setp
{_PK(0x02, 0x2C), 0x3064}, // CTI low-pass & band-pass filter coefficient, setp // kevin 20070831
{_PK(0x02, 0x2D), 0x8888}, // CTI coring threshold, median filter, enable
{_PK(0x07, 0x1E), 0x0020}, // Vertical C low pass filter enable
{_PK(0x0C, 0x60), 0x0027}, // Vpeaking enable, vertical filter enable, coring threahold step
{_PK(0x0C, 0x61), 0x0C08}, // Vpeaking vertical coefficient & step
{_PK(0x0C, 0x62), 0x0000}, // Vpeaking coring threshold 1 & 2, vertical threshold
{_PK(0x0C, 0x63), 0x1000}, // Vpeaking term1 & 2 select, shapness adjust
{_PK(0x0C, 0x70), 0x1080}, // Vpeaking vertical overshoot limitation
{_PK(0x0C, 0x71), 0x1080}, // Vpeaking vertical undershoot limitation
{ACE_TABLE_END , 0xFFFF} // End
};
// Post-Scaling
code MS_REG16_TYPE g_ACE_PostScaling_ATV_NTSC_TBL[3] =
{
{_PK(0x02, 0x0A), 0x0003}, // Y delay enable, Y/C delay pipe step
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -