add MP4Encoder class and test timelapse exporting

This commit is contained in:
2019-10-31 23:22:09 +01:00
parent 8e94d6b401
commit 9eecf60219
11 changed files with 283 additions and 47 deletions

View File

@@ -15,7 +15,17 @@ public:
return bint.c[0] == 1 ? ByteOrder::BigEndian : ByteOrder::LittleEndian;
}
template<typename T> T swap(T x)
template<typename T> static T htonx(T x)
{
static auto sys = sys_order();
return sys == ByteOrder::BigEndian ? x : swap(x);
}
template<typename T> static T ntohx(T x)
{
static auto sys = sys_order();
return sys == ByteOrder::BigEndian ? x : swap(x);
}
template<typename T> static T swap(T x)
{
#if _MSC_VER >= 1400