// osd setting

osdcfg.DoOSD = 0
osdcfg.OSDyc0 = 0
osdcfg.OSDyc1 = 255
osdcfg.OSDuc0 = 0
osdcfg.OSDuc1 = 128
osdcfg.OSDvc0 = 0
osdcfg.OSDvc1 = 128

// Threshold

thcfg.THACCoeffSet0 = 0
thcfg.THACCoeffStartpoint = 1
thcfg.THedge = 20
thcfg.THmotion = 30
thcfg.THblending = 4
thcfg.THbigedge = 900
thcfg.THsmalledge = 300
thcfg.THedgestatistics = 20
thcfg.THmotionstatistics = 30
thcfg.THbigedgestatistics = 900
thcfg.THsmalledgestatistics = 300

// Deinterlace

deintercfg.DeInter_Always_Motion = 0
deintercfg.DeInter_Always_Blending = 0
deintercfg.DeInter_Always_Weave = 0
	
// IIP setting

iipcfg.Bit_Length = 10
iipcfg.CCM_R_0 = 0
iipcfg.CCM_R_1 = 0
iipcfg.CCM_R_2 = 256
iipcfg.CCM_R_3 = 0
iipcfg.CCM_G_0 = 128
iipcfg.CCM_G_1 = 0
iipcfg.CCM_G_2 = 0
iipcfg.CCM_G_3 = 128
iipcfg.CCM_B_0 = 0
iipcfg.CCM_B_1 = 256
iipcfg.CCM_B_2 = 0
iipcfg.CCM_B_3 = 0
iipcfg.R_Gain = 288
iipcfg.G_Gain = 256
iipcfg.B_Gain = 270
iipcfg.R_Offset = 0
iipcfg.G_Offset = 0
iipcfg.B_Offset = 0
iipcfg.Gamma_R_P0_C = 28
iipcfg.Gamma_R_P0_Y = 0
iipcfg.Gamma_R_P1_C = 32
iipcfg.Gamma_R_P1_Y = 7
iipcfg.Gamma_R_P2_C = 28
iipcfg.Gamma_R_P2_Y = 15
iipcfg.Gamma_R_P3_C = 28
iipcfg.Gamma_R_P3_Y = 29
iipcfg.Gamma_R_P4_C = 26
iipcfg.Gamma_R_P4_Y = 57
iipcfg.Gamma_R_P5_C = 27
iipcfg.Gamma_R_P5_Y = 83
iipcfg.Gamma_R_P6_C = 17
iipcfg.Gamma_R_P6_Y = 110
iipcfg.Gamma_R_P7_C = 12
iipcfg.Gamma_R_P7_Y = 178
iipcfg.Gamma_R_P8_C = 8
iipcfg.Gamma_R_P8_Y = 223
iipcfg.Gamma_G_P0_C = 28
iipcfg.Gamma_G_P0_Y = 0
iipcfg.Gamma_G_P1_C = 32
iipcfg.Gamma_G_P1_Y = 7
iipcfg.Gamma_G_P2_C = 28
iipcfg.Gamma_G_P2_Y = 15
iipcfg.Gamma_G_P3_C = 28
iipcfg.Gamma_G_P3_Y = 29
iipcfg.Gamma_G_P4_C = 26
iipcfg.Gamma_G_P4_Y = 57
iipcfg.Gamma_G_P5_C = 27
iipcfg.Gamma_G_P5_Y = 83
iipcfg.Gamma_G_P6_C = 17
iipcfg.Gamma_G_P6_Y = 110
iipcfg.Gamma_G_P7_C = 12
iipcfg.Gamma_G_P7_Y = 178
iipcfg.Gamma_G_P8_C = 8
iipcfg.Gamma_G_P8_Y = 223
iipcfg.Gamma_B_P0_C = 28
iipcfg.Gamma_B_P0_Y = 0
iipcfg.Gamma_B_P1_C = 32
iipcfg.Gamma_B_P1_Y = 7
iipcfg.Gamma_B_P2_C = 28
iipcfg.Gamma_B_P2_Y = 15
iipcfg.Gamma_B_P3_C = 28
iipcfg.Gamma_B_P3_Y = 29
iipcfg.Gamma_B_P4_C = 26
iipcfg.Gamma_B_P4_Y = 57
iipcfg.Gamma_B_P5_C = 27
iipcfg.Gamma_B_P5_Y = 83
iipcfg.Gamma_B_P6_C = 17
iipcfg.Gamma_B_P6_Y = 110
iipcfg.Gamma_B_P7_C = 12
iipcfg.Gamma_B_P7_Y = 178
iipcfg.Gamma_B_P8_C = 8
iipcfg.Gamma_B_P8_Y = 223
iipcfg.Black_P = 60
iipcfg.White_P = 200
iipcfg.AWB_WIN_L = 40
iipcfg.AWB_WIN_T = 30
iipcfg.AWB_WIN_R = 120
iipcfg.AWB_WIN_B = 90
iipcfg.SUM_R1 = 0
iipcfg.SUM_G1 = 0
iipcfg.SUM_B1 = 0
iipcfg.AWB_N_VLD_W1 = 0
iipcfg.SUM_R2 = 0
iipcfg.SUM_G2 = 0
iipcfg.SUM_B2 = 0
iipcfg.AWB_N_VLD_W2 = 0
iipcfg.SUM_R3 = 0
iipcfg.SUM_G3 = 0
iipcfg.SUM_B3 = 0
iipcfg.AWB_N_VLD_W3 = 0
iipcfg.SUM_R4 = 0
iipcfg.SUM_G4 = 0
iipcfg.SUM_B4 = 0
iipcfg.AWB_N_VLD_W4 = 0
iipcfg.SUM_R5 = 0
iipcfg.SUM_G5 = 0
iipcfg.SUM_B5 = 0
iipcfg.AWB_N_VLD_W5 = 0
iipcfg.AE_WIN_L = 40
iipcfg.AE_WIN_T = 30
iipcfg.AE_WIN_R = 120
iipcfg.AE_WIN_B = 90
iipcfg.MAX_Y_CTR = 0
iipcfg.MIN_Y_CTR = 255
iipcfg.SUM_Y_CTR = 0
iipcfg.VALID_NUM_CTR = 0
iipcfg.MAX_Y_BK = 0
iipcfg.MIN_Y_BK = 255
iipcfg.SUM_Y_BK = 0
iipcfg.VALID_NUM_BK = 0
iipcfg.B_Strgth = 0
iipcfg.B_Thrshld = 0
iipcfg.SAT = 64
iipcfg.HUE = 07
iipcfg.Y_Gain = 69
iipcfg.Y_Offset = 8
iipcfg.LPF_Switch = 0
iipcfg.LPF_COEF_Y_0 = 4
iipcfg.LPF_COEF_Y_1 = 15
iipcfg.LPF_COEF_Y_2 = 26
iipcfg.LPF_COEF_Cr_0 = 4
iipcfg.LPF_COEF_Cr_1 = 15
iipcfg.LPF_COEF_Cr_2 = 26
iipcfg.LPF_COEF_Cb_0 = 4
iipcfg.LPF_COEF_Cb_1 = 15
iipcfg.LPF_COEF_Cb_2 = 26

// else setting

elsecfg.clockrate = 96			
elsecfg.DRAM = 2			
elsecfg.HPIBufferCapacity = 7    	
elsecfg.ivtc_holding_time = 6
elsecfg.v_sync_bitplane = 61536 //B0F0=45152(no FID detect) //0xF060=61536
// except for 71xx (7113,7115, etc.) video decoder, set v_sync_bitplane = 0
