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

Side by Side Diff: media/base/hdr_metadata.h

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)
Patch Set: Commented the RangeID comment as suggested Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/hdr_metadata.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_HDR_METADATA_H_
6 #define MEDIA_BASE_HDR_METADATA_H_
7
8 #include "media/base/media_export.h"
9 #include "ui/gfx/color_space.h"
10
11 namespace media {
12
13 // SMPTE ST 2086 mastering metadata.
14 struct MEDIA_EXPORT MasteringMetadata {
15 float primary_r_chromaticity_x = 0;
16 float primary_r_chromaticity_y = 0;
17 float primary_g_chromaticity_x = 0;
18 float primary_g_chromaticity_y = 0;
19 float primary_b_chromaticity_x = 0;
20 float primary_b_chromaticity_y = 0;
21 float white_point_chromaticity_x = 0;
22 float white_point_chromaticity_y = 0;
23 float luminance_max = 0;
24 float luminance_min = 0;
25
26 MasteringMetadata();
27 MasteringMetadata(const MasteringMetadata& rhs);
28 };
29
30 // HDR metadata common for HDR10 and WebM/VP9-based HDR formats.
31 struct MEDIA_EXPORT HDRMetadata {
32 MasteringMetadata mastering_metadata;
33 unsigned max_cll = 0;
34 unsigned max_fall = 0;
35
36 HDRMetadata();
37 HDRMetadata(const HDRMetadata& rhs);
38 };
39
40 } // namespace media
41
42 #endif // MEDIA_BASE_HDR_METADATA_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/hdr_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698