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

Method readFlag

YUViewLib/src/parser/common/SubByteReaderLogging.cpp:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool SubByteReaderLogging::readFlag(const std::string &symbolName, const Options &options)
197{
198 try
199 {
200 auto [value, code] = SubByteReader::readBits(1);
201 checkAndLog(this->currentTreeLevel, "u(1)", symbolName, options, value, code);
202 return (value != 0);
203 }
204 catch (const std::exception &ex)
205 {
206 this->logExceptionAndThrowError(ex, "flag " + symbolName);
207 }
208}
209
210uint64_t SubByteReaderLogging::readUEV(const std::string &symbolName, const Options &options)
211{

Callers 15

parse_ATSC1_dataFunction · 0.80
parseObjectDataSegmentFunction · 0.80
parseCLUTParametersFunction · 0.80
parseMethod · 0.80
parseMethod · 0.80

Calls 2

checkAndLogFunction · 0.85

Tested by

no test coverage detected