tagparser/ivf/ivfframe.h

36 lines
590 B
C
Raw Normal View History

2018-07-28 14:56:00 +02:00
#ifndef TAG_PARSER_IVFRAME_H
#define TAG_PARSER_IVFRAME_H
#include "../diagnostics.h"
namespace IoUtilities {
class BinaryReader;
}
namespace TagParser {
class TAG_PARSER_EXPORT IvfFrame {
public:
constexpr IvfFrame();
void parseHeader(IoUtilities::BinaryReader &reader, Diagnostics &diag);
private:
2019-03-13 19:06:42 +01:00
std::uint64_t startOffset;
std::uint64_t timestamp;
std::uint32_t size;
2018-07-28 14:56:00 +02:00
};
/*!
* \brief Constructs a new frame.
*/
constexpr IvfFrame::IvfFrame()
: startOffset(0)
, timestamp(0)
, size(0)
{
}
} // namespace TagParser
#endif // TAG_PARSER_IVFRAME_H