Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Unified Diff: media/formats/mp4/dolby_vision.h

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: fix build break on Android Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/formats/mp4/box_definitions.cc ('k') | media/formats/mp4/dolby_vision.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/dolby_vision.h
diff --git a/media/formats/mp4/dolby_vision.h b/media/formats/mp4/dolby_vision.h
new file mode 100644
index 0000000000000000000000000000000000000000..f527975e3e609db69c26d4cd97d1164c5ec4ef3b
--- /dev/null
+++ b/media/formats/mp4/dolby_vision.h
@@ -0,0 +1,48 @@
+// 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.
+
+#ifndef MEDIA_FORMATS_MP4_DOLBY_VISION_H_
+#define MEDIA_FORMATS_MP4_DOLBY_VISION_H_
+
+#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 {
+ DECLARE_BOX_METHODS(DolbyVisionConfiguration);
+
+ // 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 Parse(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;
+
+ private:
+ bool ParseInternal(BufferReader* reader,
+ const scoped_refptr<MediaLog>& media_log);
+};
+
+} // namespace mp4
+} // namespace media
+
+#endif // MEDIA_FORMATS_MP4_DOLBY_VISION_H_
« no previous file with comments | « media/formats/mp4/box_definitions.cc ('k') | media/formats/mp4/dolby_vision.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698