Chameleon

Chameleon Commit Details

Date:2014-11-15 03:18:27 (9 years 5 months ago)
Author:ErmaC
Commit:2480
Parents: 2479
Message:Comment out unused static functions, which cause build to fail in "release" mode; other minor cleanups
Changes:
M/trunk/i386/libsaio/vbe.c

File differences

trunk/i386/libsaio/vbe.c
159159
160160
161161
162
162
163163
164
164
165165
166166
167167
......
191191
192192
193193
194
195
196
194
195
196
197197
198
199
200
198201
199202
200203
......
202205
203206
204207
205
206
207
208208
209209
210210
......
226226
227227
228228
229
229
230230
231231
232232
int paramType,
VBECRTCInfoBlock * timing )
{
double h_period_est, h_freq, h_period, h_total_pixels, h_sync_pixels;
double h_period, h_total_pixels, h_sync_pixels;
double h_active_pixels, h_ideal_duty_cycle, h_blank_pixels, pixel_freq = 0;
double v_sync_plus_bp = 0, v_total_lines = 0, v_field_rate_est, v_frame_rate = 0;
double v_sync_plus_bp = 0, v_total_lines = 0, v_frame_rate = 0;
const double h_pixels = (double) width;
const double v_lines = (double) height;
double v_field_rate_in = (double) paramValue;
// Estimate the horizontal period
h_period_est = ((1 / v_field_rate_in) - kMinVSyncPlusBP / 1000000) /
(v_lines + (2 * top_margin_lines) + kMinFrontPorch + interlace) *
1000000;
double h_period_est = ((1 / v_field_rate_in) - kMinVSyncPlusBP / 1000000) /
(v_lines + (2 * top_margin_lines) + kMinFrontPorch + interlace) *
1000000;
// Estimate the vertical field frequency
double v_field_rate_est = 1 / h_period_est / v_total_lines * 1000000;
// Number of lines in Vsync + back porch
v_sync_plus_bp = Round(kMinVSyncPlusBP / h_period_est);
v_total_lines = v_lines + top_margin_lines + bot_margin_lines +
v_sync_plus_bp + interlace + kMinFrontPorch;
// Estimate the vertical field frequency
v_field_rate_est = 1 / h_period_est / v_total_lines * 1000000;
// Find the actual horizontal period
h_period = h_period_est / (v_field_rate_in / v_field_rate_est);
if (paramType == kCRTCParamPixelClock)
{
// Horizontal frequency
h_freq = pixel_freq / h_total_pixels * 1000;
double h_freq = pixel_freq / h_total_pixels * 1000;
// Number of lines in V sync + back porch
v_sync_plus_bp = Round(kMinVSyncPlusBP * h_freq / 1000);

Archive Download the corresponding diff file

Revision: 2480