mstar PQ软件修改方法

 

1.修改ADC的值

Static code APIXC_AdcGainOffsetSetting tADCSetting[ADC_SET_NUMS]=

#define INIT_ADC_RGB_RED_GAIN               0x1000

#define INIT_ADC_RGB_GREEN_GAIN           0x1000

#define INIT_ADC_RGB_BLUE_GAIN              0x1000

 

2.修改白平衡的值

static T_MS_WHITEBALANCE codeastDefaultWhiteBalanceDataTbl[DATA_INPUT_SOURCE_NUM] =

 INIT_VIDEO_COLOR_BRIGHTNESS_COOL_R,

  INIT_VIDEO_COLOR_BRIGHTNESS_COOL_G,

  INIT_VIDEO_COLOR_BRIGHTNESS_COOL_B,

INIT_VIDEO_COLOR_TEMP_COOL_R,

  INIT_VIDEO_COLOR_TEMP_COOL_G,

  INIT_VIDEO_COLOR_TEMP_COOL_B,

 

3.修改对比度

static code MS_NONLINEAR_CURVE_SETTING tNonLinearCurveSetting =

    {

        {80, 111, 128,150, 196},   // Contrast

        {80, 103, 128,152, 178},   // Brightness

        {0,  68, 148, 180, 200},   // Color

        {0,  12, 25,  30,  63},  // Sharpness

        {30, 40, 50, 60,70},   // Tint

    },

 

 

4.修改动态对比度

 DLC_PARAMETER_ALGORITHM_MODE   //for NEW DLC ALGORITHM

static MS_U8 tLumaCurve[16] =

    { 0x01, 0x09, 0x17,0x31, 0x4F, 0x6A, 0x84, 0x9A, 0xAE, 0xC0, 0xCE, 0xDA, 0xE4, 0xEC, 0xF3, 0xFA };

static MS_U8 tLumaCurve2_a[16] =

    { 0x02, 0x24, 0x43,0x62, 0x7E, 0x98, 0xAE, 0xC0, 0xCE, 0xDA, 0xE2, 0xE9, 0xEF, 0xF4, 0xF8, 0xFC };

 

static MS_U8 tLumaCurve2_b[16] =

    { 0x06, 0x10, 0x1B,0x26, 0x33, 0x42, 0x53, 0x64, 0x76, 0x88, 0x9A, 0xAC, 0xBE, 0xD0, 0xE2, 0xF4 };

 

5.修改GAMMA

BYTE tNormalGammaR[] =

BYTE tNormalGammaG[] =

BYTE tNormalGammaB[] =

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(MSTAR)