Subversion Repositories Kolibri OS

Rev

Rev 1179 | Rev 1963 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1179 Rev 1404
Line 75... Line 75...
75
	uint8_t  crtcPLL_M;
75
	uint8_t  crtcPLL_M;
76
	uint8_t  crtcPLL_post_div;
76
	uint8_t  crtcPLL_post_div;
77
	unsigned pix_to_tv;
77
	unsigned pix_to_tv;
78
};
78
};
Line 79... Line 79...
79
 
79
 
80
static const uint16_t hor_timing_NTSC[] = {
80
static const uint16_t hor_timing_NTSC[MAX_H_CODE_TIMING_LEN] = {
81
	0x0007,
81
	0x0007,
82
	0x003f,
82
	0x003f,
83
	0x0263,
83
	0x0263,
84
	0x0a24,
84
	0x0a24,
Line 96... Line 96...
96
	0x0e31,
96
	0x0e31,
97
	0x201b,
97
	0x201b,
98
	0
98
	0
99
};
99
};
Line 100... Line 100...
100
 
100
 
101
static const uint16_t vert_timing_NTSC[] = {
101
static const uint16_t vert_timing_NTSC[MAX_V_CODE_TIMING_LEN] = {
102
	0x2001,
102
	0x2001,
103
	0x200d,
103
	0x200d,
104
	0x1006,
104
	0x1006,
105
	0x0c06,
105
	0x0c06,
Line 113... Line 113...
113
	0x21d4,
113
	0x21d4,
114
	0x0002,
114
	0x0002,
115
	0
115
	0
116
};
116
};
Line 117... Line 117...
117
 
117
 
118
static const uint16_t hor_timing_PAL[] = {
118
static const uint16_t hor_timing_PAL[MAX_H_CODE_TIMING_LEN] = {
119
	0x0007,
119
	0x0007,
120
	0x0058,
120
	0x0058,
121
	0x027c,
121
	0x027c,
122
	0x0a31,
122
	0x0a31,
Line 134... Line 134...
134
	0x0e43,
134
	0x0e43,
135
	0x201b,
135
	0x201b,
136
	0
136
	0
137
};
137
};
Line 138... Line 138...
138
 
138
 
139
static const uint16_t vert_timing_PAL[] = 	{
139
static const uint16_t vert_timing_PAL[MAX_V_CODE_TIMING_LEN] = {
140
	0x2001,
140
	0x2001,
141
	0x200c,
141
	0x200c,
142
	0x1005,
142
	0x1005,
143
	0x0c05,
143
	0x0c05,
Line 621... Line 621...
621
	} else {
621
	} else {
622
		tmp /= PAL_TV_LINES_PER_FRAME;
622
		tmp /= PAL_TV_LINES_PER_FRAME;
623
	}
623
	}
624
	flicker_removal = (tmp + 500) / 1000;
624
	flicker_removal = (tmp + 500) / 1000;
Line 625... Line 625...
625
 
625
 
626
	if (flicker_removal < 3)
626
	if (flicker_removal < 2)
627
		flicker_removal = 3;
627
		flicker_removal = 2;
628
	for (i = 0; i < 6; ++i) {
628
	for (i = 0; i < ARRAY_SIZE(SLOPE_limit); ++i) {
629
		if (flicker_removal == SLOPE_limit[i])
629
		if (flicker_removal == SLOPE_limit[i])
630
			break;
630
			break;
Line 631... Line 631...
631
	}
631
	}