7#include <c++utilities/conversion/stringbuilder.h>
8#include <c++utilities/conversion/stringconversion.h>
25 CPP_UTILITIES_UNUSED(progress)
27 static const string context(
"parsing IVF header");
33 if (
m_reader.readUInt32BE() != 0x444B4946u) {
44 m_headerLength =
m_reader.readUInt16LE();
63 m_frames.emplace_back();
64 m_frames.back().parseHeader(
m_reader, diag);
The AbortableProgressFeedback class provides feedback about an ongoing operation via callbacks.
std::uint64_t m_sampleCount
double version() const
Returns the version/level of the track if known; otherwise returns 0.
CppUtilities::TimeSpan m_duration
const std::string & formatId() const
Returns the format/codec ID.
CppUtilities::BinaryReader m_reader
std::uint32_t m_timeScale
The Diagnostics class is a container for DiagMessage.
The exception that is thrown when the data to be parsed or to be made seems invalid and therefore can...
void readFrame(Diagnostics &diag)
void internalParseHeader(Diagnostics &diag, AbortableProgressFeedback &progress) override
This method is internally called to parse header information.
The exception that is thrown when the data to be parsed holds no parsable information (e....
void setWidth(std::uint32_t value)
Sets the width.
void setHeight(std::uint32_t value)
Sets the height.
TAG_PARSER_EXPORT MediaFormat fourccToMediaFormat(std::uint32_t fourccId)
Contains all classes and functions of the TagInfo library.