OLD | NEW |
(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_ |
OLD | NEW |