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

📄 color_cpt07_at.c

📁 mstar 776 开发的车载dvd
💻 C
📖 第 1 页 / 共 5 页
字号:
    {_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_ATV_NTSC_TBL[23] =
{
//    {_PK(0x19, 0x10), 0x0F51}, // Peaking enable
    {_PK(0x19, 0x10), 0x0F61}, // Peaking enable    // kevin 20070831
    {_PK(0x19, 0x11), 0x0000}, // Band 1~4 coefficient step
//    {_PK(0x19, 0x13), 0x2C21}, // coring threshold 1/2, user sharpness adjust
    {_PK(0x19, 0x13), 0x0B21}, // coring threshold 1/2, user sharpness adjust   // kevin 20070831
//    {_PK(0x19, 0x18), 0x1820}, // Band 1/2 coefficient
    {_PK(0x19, 0x18), 0x1430}, // Band 1/2 coefficient  // kevin 20070831
//    {_PK(0x19, 0x19), 0x0E10}, // 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), 0x30A0}, // 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), 0x30A0}, // 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), 0x0003}, // Band1~4 differential adaptive enable
    {_PK(0x19, 0x32), 0x0044}, // 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_ATV_NTSC_TBL[2] =
{
    {_PK(0x1A, 0x0F), 0x0006}, // Y adjust  // kevin 20070831
    {ACE_TABLE_END  , 0xFFFF}  // End
};

// FCC
code MS_REG16_TYPE g_ACE_FCC_ATV_NTSC_TBL[10] =
{
    //{_PK(0x18, 0x10), 0x008D}, // 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), 0x4888}, // Flesh control strength
    {_PK(0x18, 0x21), 0x5888}, // Gray guard sttength
    {_PK(0x18, 0x24), 0xBAB2}, // 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_ATV_NTSC_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), 0x8080}, // ICC saturation adjustment of R/G
    {_PK(0x18, 0x32), 0x8080}, // ICC saturation adjustment of B/C
    {_PK(0x18, 0x33), 0x8080}, // ICC saturation adjustment of M/Y
    {_PK(0x18, 0x34), 0x0030}, // ICC saturation adjustment of F
    {ACE_TABLE_END  , 0xFFFF}  // End
};

// IBC
code MS_REG16_TYPE g_ACE_IBC_ATV_NTSC_TBL[7] =
{
//    {_PK(0x18, 0x40), 0x00A2}, // 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), 0x2020}, // IBC Y adjustment of B/C
    {_PK(0x18, 0x43), 0x2018}, // IBC Y adjustment of M/Y
    {_PK(0x18, 0x44), 0x0030}, // 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_ATV_NTSC_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_ATV_NTSC_TBL[2] =
{
    {_PK(0x18, 0x55), 0x0101}, // Horirontal noise-masking gain/flesh of Y/C
    {ACE_TABLE_END  , 0xFFFF}
};

// BLE/WLE
code MS_REG16_TYPE g_ACE_BLEWLE_ATV_NTSC_TBL[3] =
{
//    {_PK(0x1A, 0x10), 0x7020}, // 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_ATV_NTSC_TBL[2] =
{
//    {_PK(0x1A, 0x14), 0x5040}, // 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_ATV_NTSC_TBL[6] =
{
    {_PK(0x18, 0x50), 0x3323}, // 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_ATV_NTSC_TBL[2] =
{
    {_PK(0x10, 0x16), 0x2110}, // Shinny color rounding, gain, enable
    {ACE_TABLE_END  , 0xFFFF}  // End
};

//------------------------------------------------------------------------------
// AV Color Fine-Tune Tables
//------------------------------------------------------------------------------
// COMB
code MS_REG_TYPE g_ACE_COMB_AV_NTSC_TBL[11] =
{
    {BK_COMB_60,    0x00}, // 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
    {BK_COMB_9A,    0x43}, // AMP_YDIFF_V1 Gain
    {BK_COMB_9D,    0x02}, // Entropy H2
    {ACE_TABLE_END, 0xFF}  // End
};

// SNR
code MS_REG16_TYPE g_ACE_SNR_AV_NTSC_TBL[7] =
{
    {_PK(0x0C, 0x30), 0x0000},	// 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 - Default

// V-Peaking
code MS_REG16_TYPE g_ACE_VPeaking_AV_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), 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_AV_NTSC_TBL[3] =
{
    {_PK(0x02, 0x0A), 0x0000}, // Y delay enable, Y/C delay pipe step
    {_PK(0x07, 0x0A), 0x0104}, // {_PK(0x07, 0x0A), 0xC342}, // 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_AV_NTSC_TBL[23] =
{
    {_PK(0x19, 0x10), 0x0F61}, // Peaking enable
    {_PK(0x19, 0x11), 0x0004}, // Band 1~4 coefficient step
//    {_PK(0x19, 0x13), 0x0C21}, // coring threshold 1/2, user sharpness adjust
    {_PK(0x19, 0x13), 0x0B21}, // coring threshold 1/2, user sharpness adjust   // kevin 20070831
//    {_PK(0x19, 0x18), 0x1820}, // Band 1/2 coefficient
    {_PK(0x19, 0x18), 0x1430}, // Band 1/2 coefficient  // kevin 20070831
//    {_PK(0x19, 0x19), 0x1214}, // 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), 0x40A0}, // Band 1/2 overshoot limit
//    {_PK(0x19, 0x21), 0x0408}, // Band 3/4 overshoot limit
    {_PK(0x19, 0x21), 0x0808}, // Band 3/4 overshoot limit  // kevin 20070831
    {_PK(0x19, 0x24), 0x40A0}, // Band 1/2 undershoot limit
//    {_PK(0x19, 0x25), 0x0428}, // 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), 0x0003}, // Main window bB
    {_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_AV_NTSC_TBL[2] =
{
    {_PK(0x1A, 0x0F), 0x0006}, // Y adjust  // kevin 20070831
    {ACE_TABLE_END  , 0xFFFF}  // End
};

// FCC
code MS_REG16_TYPE g_ACE_FCC_AV_NTSC_TBL[10] =
{
    //{_PK(0x18, 0x10), 0x0095}, // Flesh control enable, Gray guard enable
    {_PK(0x18, 0x10), 0x0000}, // Flesh control enable, Gray guard enable   // kevin 20070831
    {_PK(0x18, 0x18), 0x9B73}, // Flesh tone cb/cr target
    {_PK(0x18, 0x1A), 0x69A5}, // 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), 0x5884}, // Gray guard sttength
    {_PK(0x18, 0x24), 0xBAA2}, // 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_AV_NTSC_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 20080831
    {_PK(0x18, 0x31), 0x5050}, // ICC saturation adjustment of R/G
    {_PK(0x18, 0x32), 0x6010}, // ICC saturation adjustment of B/C
    {_PK(0x18, 0x33), 0x3050}, // ICC saturation adjustment of M/Y
    {_PK(0x18, 0x34), 0x0080},	// ICC saturation adjustment of F
    {ACE_TABLE_END  , 0xFFFF}  // End
};

// IBC
code MS_REG16_TYPE g_ACE_IBC_AV_NTSC_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), 0x1018}, // IBC Y adjustment of R/G
    {_PK(0x18, 0x42), 0x1818}, // IBC Y adjustment of B/C
    {_PK(0x18, 0x43), 0x1818}, // IBC Y adjustment of M/Y
    {_PK(0x18, 0x44), 0x0020}, // IBC Y adjustment of F
    {_PK(0x18, 0x48), 0x8800}, // IBC weight min limit of Y/C
    {ACE_TABLE_END  , 0xFFFF}  // End
};

// IHC
code MS_REG16_TYPE g_ACE_IHC_AV_NTSC_TBL[6] =
{
    //{_PK(0x18, 0x60), 0x0080}, // IHC enable
    {_PK(0x18, 0x60), 0x0000}, // IHC enable    // kevin 20070831
    {_PK(0x18, 0x61), 0x0000}, // IHC hue adjustment of R/G
    {_PK(0x18, 0x62), 0x0000}, // IHC hue adjustment of B/C
    {_PK(0x18, 0x63), 0x0000}, // IHC hue adjustment of M/Y
    {_PK(0x18, 0x64), 0x0000}, // IHC hue adjustment of F
    {ACE_TABLE_END  , 0xFFFF}  // End
};
// Noise Mask
code MS_REG16_TYPE g_ACE_NoiseMask_AV_NTSC_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_AV_NTSC_TBL[3] =
{

⌨️ 快捷键说明

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