| 104 | using namespace parser::reader; |
| 105 | |
| 106 | void 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 |
nothing calls this directly
no test coverage detected