2018-07-28 14:56:00 +02:00
|
|
|
#ifndef TAG_PARSER_IVFRAME_H
|
|
|
|
#define TAG_PARSER_IVFRAME_H
|
|
|
|
|
|
|
|
#include "../diagnostics.h"
|
|
|
|
|
2019-06-10 22:49:11 +02:00
|
|
|
namespace CppUtilities {
|
2018-07-28 14:56:00 +02:00
|
|
|
class BinaryReader;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace TagParser {
|
|
|
|
|
|
|
|
class TAG_PARSER_EXPORT IvfFrame {
|
|
|
|
public:
|
|
|
|
constexpr IvfFrame();
|
2019-06-10 22:49:11 +02:00
|
|
|
void parseHeader(CppUtilities::BinaryReader &reader, Diagnostics &diag);
|
2018-07-28 14:56:00 +02:00
|
|
|
|
|
|
|
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
|