blob: 3a0561ae8264b389ace955dc1c34e29e9f2803c7 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/memory/ref_counted.h"
#include "media/base/media_export.h"
#include "media/formats/mp4/box_definitions.h"
namespace media {
namespace mp4 {
// The structure of the configuration is defined in Dolby Streams Within the ISO
// Base Media File Format v1.1 section 3.2.
struct MEDIA_EXPORT DolbyVisionConfiguration : Box {
// Parses DolbyVisionConfiguration data encoded in |data|.
// Note: This method is intended to parse data outside the MP4StreamParser
// context and therefore the box header is not expected to be present
// in |data|.
// Returns true if |data| was successfully parsed.
bool ParseForTesting(const uint8_t* data, int data_size);
uint8_t dv_version_major;
uint8_t dv_version_minor;
uint8_t dv_profile;
uint8_t dv_level;
uint8_t rpu_present_flag;
uint8_t el_present_flag;
uint8_t bl_present_flag;
VideoCodecProfile codec_profile;
bool ParseInternal(BufferReader* reader, MediaLog* media_log);
} // namespace mp4
} // namespace media