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

Method parse

YUViewLib/src/parser/AVC/nal_unit_header.cpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104using namespace parser::reader;
105
106void nal_unit_header::parse(SubByteReaderLogging &reader)
107{
108 SubByteReaderLoggingSubLevel subLevel(reader, "nal_unit_header");
109
110 reader.readFlag("forbidden_zero_bit", Options().withCheckEqualTo(0));
111
112 this->nal_ref_idc = reader.readBits("nal_ref_idc", 2);
113
114 this->nalUnitTypeID =
115 reader.readBits("nal_unit_type", 5, Options().withMeaningMap(nalTypeCoding.getMeaningMap()));
116
117 nal_unit_type = nalTypeCoding.getValue(this->nalUnitTypeID);
118}
119
120} // namespace parser::avc

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