tests/animated-resizing: Split frame statistics out into a separate file
Split the code for computing frame rate and latency into a separate file so we can use it from multiple tests.
This commit is contained in:
@ -291,8 +291,8 @@ print_statistics (void)
|
||||
g_print ("playback rate adjustment: %g +/- %g %%\n",
|
||||
(variable_mean (&time_factor_stats) - 1) * 100,
|
||||
variable_standard_deviation (&time_factor_stats) * 100);
|
||||
variable_reset (&latency_error);
|
||||
variable_reset (&time_factor_stats);
|
||||
variable_init (&latency_error);
|
||||
variable_init (&time_factor_stats);
|
||||
dropped_frames = 0;
|
||||
n_frames = 0;
|
||||
last_print_time = now;
|
||||
|
||||
Reference in New Issue
Block a user