MCPcopy Create free account
hub / github.com/IENT/YUView / parse

Method parse

YUViewLib/src/parser/HEVC/nal_unit_header.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void nal_unit_header::parse(SubByteReaderLogging &reader)
130{
131 SubByteReaderLoggingSubLevel subLevel(reader, "nal_unit_header");
132
133 reader.readFlag("forbidden_zero_bit", Options().withCheckEqualTo(0));
134 this->nalUnitTypeID =
135 reader.readBits("nal_unit_type", 6, Options().withMeaningMap(nalTypeCoding.getMeaningMap()));
136 this->nuh_layer_id = reader.readBits("nuh_layer_id", 6, Options().withCheckRange({0, 55}));
137 this->nuh_temporal_id_plus1 = reader.readBits("nuh_temporal_id_plus1", 3);
138
139 this->nal_unit_type = nalTypeCoding.getValue(this->nalUnitTypeID);
140}
141
142bool nal_unit_header::isIRAP() const
143{

Callers

nothing calls this directly

Calls 5

OptionsClass · 0.85
readFlagMethod · 0.80
getMeaningMapMethod · 0.80
readBitsMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected