![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <cmath>#include <iostream>#include <string>#include "unit_common.h"#include "utils/misc.h"
Go to the source code of this file.
Macros | |
| #define | EPS 0.0049 |
Functions | |
| int | get_framerate_test_2997 () |
| int | get_framerate_test_3000 () |
| int | get_framerate_test_free () |
| #define EPS 0.0049 |
for 10 FPS the difference between 10000/1000 and 10000/1001 is ~0.001 and this needs to be less than a half of that
Definition at line 15 of file get_framerate_test.cpp.
Referenced by get_framerate_test_2997(), get_framerate_test_3000(), and get_framerate_test_free().
| int get_framerate_test_2997 | ( | ) |
Definition at line 27 of file get_framerate_test.cpp.
References ASSERT_EQUAL, EPS, get_framerate_d(), and get_framerate_n().

| int get_framerate_test_3000 | ( | ) |
Definition at line 45 of file get_framerate_test.cpp.
References ASSERT_EQUAL, EPS, get_framerate_d(), and get_framerate_n().

| int get_framerate_test_free | ( | ) |
Definition at line 57 of file get_framerate_test.cpp.
References ASSERT_EQUAL_MESSAGE, EPS, get_framerate_d(), get_framerate_n(), and round().
