7 #include <packager/media/codecs/dovi_decoder_configuration_record.h>
9 #include <absl/strings/str_format.h>
11 #include <packager/media/base/bit_reader.h>
12 #include <packager/media/base/rcheck.h>
18 BitReader reader(data.data(), data.size());
22 uint8_t major_version = 0;
23 uint8_t minor_version = 0;
24 RCHECK(reader.
ReadBits(8, &major_version) && major_version == 1 &&
25 reader.
ReadBits(8, &minor_version) && minor_version == 0 &&
28 reader.
ReadBits(4, &bl_signal_compatibility_id_));
33 FourCC codec_fourcc)
const {
36 return absl::StrFormat(
"%s.%02d.%02d", FourCCToString(codec_fourcc).c_str(),
41 const uint8_t transfer_characteristics)
const {
43 switch (bl_signal_compatibility_id_) {
49 if (transfer_characteristics == 14) {
All the methods that are virtual are virtual for mocking.