OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_HDR_METADATA_H_ | 5 #ifndef MEDIA_BASE_HDR_METADATA_H_ |
6 #define MEDIA_BASE_HDR_METADATA_H_ | 6 #define MEDIA_BASE_HDR_METADATA_H_ |
7 | 7 |
8 #include "media/base/media_export.h" | 8 #include "media/base/media_export.h" |
9 #include "ui/gfx/color_space.h" | |
10 | 9 |
11 namespace media { | 10 namespace media { |
12 | 11 |
13 // SMPTE ST 2086 mastering metadata. | 12 // SMPTE ST 2086 mastering metadata. |
14 struct MEDIA_EXPORT MasteringMetadata { | 13 struct MEDIA_EXPORT MasteringMetadata { |
15 float primary_r_chromaticity_x = 0; | 14 float primary_r_chromaticity_x = 0; |
16 float primary_r_chromaticity_y = 0; | 15 float primary_r_chromaticity_y = 0; |
17 float primary_g_chromaticity_x = 0; | 16 float primary_g_chromaticity_x = 0; |
18 float primary_g_chromaticity_y = 0; | 17 float primary_g_chromaticity_y = 0; |
19 float primary_b_chromaticity_x = 0; | 18 float primary_b_chromaticity_x = 0; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 50 |
52 bool operator==(const HDRMetadata& rhs) const { | 51 bool operator==(const HDRMetadata& rhs) const { |
53 return ((max_cll == rhs.max_cll) && (max_fall == rhs.max_fall) && | 52 return ((max_cll == rhs.max_cll) && (max_fall == rhs.max_fall) && |
54 (mastering_metadata == rhs.mastering_metadata)); | 53 (mastering_metadata == rhs.mastering_metadata)); |
55 } | 54 } |
56 }; | 55 }; |
57 | 56 |
58 } // namespace media | 57 } // namespace media |
59 | 58 |
60 #endif // MEDIA_BASE_HDR_METADATA_H_ | 59 #endif // MEDIA_BASE_HDR_METADATA_H_ |
OLD | NEW |