tagparser/ivf/ivfframe.cpp

30 lines
666 B
C++
Raw Normal View History

2018-07-28 14:56:00 +02:00
#include "./ivfframe.h"
#include "../exceptions.h"
#include <c++utilities/io/binaryreader.h>
using namespace std;
2019-06-10 22:49:11 +02:00
using namespace CppUtilities;
2018-07-28 14:56:00 +02:00
namespace TagParser {
/*!
* \class TagParser::IvfFrame
* \brief The IvfFrame class is used to parse IVF frames.
* \sa https://wiki.multimedia.cx/index.php/IVF
*/
/*!
* \brief Parses the header read using the specified \a reader.
*/
2019-06-10 22:49:11 +02:00
void IvfFrame::parseHeader(CppUtilities::BinaryReader &reader, Diagnostics &diag)
2018-07-28 14:56:00 +02:00
{
VAR_UNUSED(diag)
2019-03-13 19:06:42 +01:00
startOffset = static_cast<std::uint64_t>(reader.stream()->tellg());
2018-07-28 14:56:00 +02:00
size = reader.readUInt32BE();
timestamp = reader.readUInt64BE();
}
} // namespace TagParser