X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=timebase.h;h=532ec86395c4fa08f08d53dbcc12daa7093ba127;hb=3795723be95f2fe82f3c8b8b45b1a905b2c811fd;hp=dbc4402c1820d454528bd952feeb7c90ef1b8dd2;hpb=0d0e637698dc347c2fec4746affbcf02d51a31f8;p=nageru diff --git a/timebase.h b/timebase.h index dbc4402..532ec86 100644 --- a/timebase.h +++ b/timebase.h @@ -1,6 +1,8 @@ #ifndef _TIMEBASE_H #define _TIMEBASE_H 1 +#include + // Common timebase that allows us to represent one frame exactly in all the // relevant frame rates: // @@ -22,4 +24,6 @@ // but can do at least 50 and 60 precisely, and months of streaming. #define COARSE_TIMEBASE 300 +using TimebaseRatio = std::ratio<1, TIMEBASE>; + #endif // !defined(_TIMEBASE_H)