| 127 | } |
| 128 | |
| 129 | void 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 | |
| 142 | bool nal_unit_header::isIRAP() const |
| 143 | { |
nothing calls this directly
no test coverage detected