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

Function parseCLUTParameters

YUViewLib/src/parser/Subtitles/SubtitleDVB.cpp:487–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487unsigned parseCLUTParameters(SubByteReaderLogging &reader)
488{
489 SubByteReaderLoggingSubLevel s(reader, "CLUT_parameters()");
490
491 reader.readBits("CLUT_entry_max_number", 2);
492 reader.readBits("colour_component_type", 2);
493 auto output_bit_depth = reader.readBits("output_bit_depth", 3);
494 reader.readFlag("reserved_zero_future_use");
495 reader.readBits("dynamic_range_and_colour_gamut", 8);
496
497 return output_bit_depth;
498}
499
500void parseAlternativeCLUTSegment(SubByteReaderLogging &reader, unsigned segment_length)
501{

Callers 1

Calls 2

readFlagMethod · 0.80
readBitsMethod · 0.45

Tested by

no test coverage detected