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

Method parse

YUViewLib/src/parser/VVC/nal_unit_header.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80using namespace parser::reader;
81
82void nal_unit_header::parse(SubByteReaderLogging &reader)
83{
84 SubByteReaderLoggingSubLevel subLevel(reader, "nal_unit_header");
85
86 reader.readFlag("forbidden_zero_bit", Options().withCheckEqualTo(0));
87 reader.readFlag("nuh_reserved_zero_bit", Options().withCheckEqualTo(0));
88 this->nuh_layer_id = reader.readBits("nuh_layer_id", 6, Options().withCheckRange({0, 55}));
89
90 this->nalUnitTypeID =
91 reader.readBits("nal_unit_type", 5, Options().withMeaningMap(nalTypeCoding.getMeaningMap()));
92 this->nal_unit_type = nalTypeCoding.getValue(this->nalUnitTypeID);
93
94 this->nuh_temporal_id_plus1 = reader.readBits("nuh_temporal_id_plus1", 3);
95}
96
97} // namespace parser::vvc

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