42 #ifndef parseunit_byteio_h
43 #define parseunit_byteio_h
124 virtual const std::string
GetBytes();
Definition: parseunit_byteio.h:58
Definition: parseunit_byteio.h:61
bool IsEndOfSequence() const
Returns true is parse unit is an End of Sequence unit.
Definition: parseunit_byteio.h:161
Definition: parseunit_byteio.h:63
Definition: parseunit_byteio.h:60
void SetAdjacentParseUnits(ParseUnitByteIO *p_prev_parseunit)
Set next/previous parse-unit values.
ParseUnitType
Definition: parseunit_byteio.h:57
bool Input()
Reads from byte-stream to find parse data.
virtual int CalcNextUnitOffset()
Calculates number of bytes to start of next unit.
Definition: parseunit_byteio.h:62
bool IsAuxiliaryData() const
Returns true is parse unit is Auxiliary Data.
Definition: parseunit_byteio.h:167
virtual const std::string GetBytes()
Gets string containing coded bytes.
unsigned char m_parse_code
Parse-type-identifier.
Definition: parseunit_byteio.h:240
int GetPreviousParseOffset() const
Gets number of bytes to start of previous parse-unit.
bool IsPaddingData() const
Returns true is parse unit is Padding data.
Definition: parseunit_byteio.h:173
~ParseUnitByteIO()
Destructor.
Definition: parseunit_byteio.h:59
int m_next_parse_offset
Number of bytes to previous parse-unit.
Definition: parseunit_byteio.h:235
Definition: parseunit_byteio.h:64
bool IsLowDelay() const
Returns true is parse unit is Low Delay Sybtax unit.
Definition: parseunit_byteio.h:185
bool IsSeqHeader() const
Returns true is parse unit is a Sequence Header.
Definition: parseunit_byteio.h:155
virtual void CollateByteStats(DiracByteStats &dirac_byte_stats)
Gathers byte stats on the parse-unit data.
bool CanSkip()
Can Skip past the entire parse-unit.
Class DiracByteStats - for collecting statistics on aspects of the Dirac byte-stream.
Definition: dirac_byte_stats.h:70
bool IsCoreSyntax() const
Returns true is parse unit is Core syntax unit.
Definition: parseunit_byteio.h:191
virtual int GetSize() const
Gets size (in bytes)
int GetNextParseOffset() const
Gets expected number of bytes to start of next parse-unit.
int m_previous_parse_offset
Number of bytes to next parse-unit.
Definition: parseunit_byteio.h:230
unsigned char GetParseCode() const
Get parse code.
Definition: parseunit_byteio.h:223
bool IsUsingAC() const
Returns true is parse unit uses Arithmetic coding.
Definition: parseunit_byteio.h:197
virtual unsigned char CalcParseCode() const
Pure virtual method for calculating parse-code.
Definition: parseunit_byteio.h:212
bool IsPicture() const
Returns true is parse unit is Picture data.
Definition: parseunit_byteio.h:179
Class ByteIO - top-level class for reading/writing bytes to a stream.
Definition: byteio.h:72
virtual ParseUnitType GetType() const
Gets parse-unit type.
Definition: parseunit_byteio.h:65
Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained unit...
Definition: parseunit_byteio.h:72
bool IsValid()
Accesses validity of a unit by comparing it with an adjacent unit.
bool SyncToUnitStart()
Locates start of parse-unit.
ParseUnitByteIO()
Constructor.