| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 5 #ifndef CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| 6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 6 #define CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 float luminance_max = 0; | 258 float luminance_max = 0; |
| 259 float luminance_min = 0; | 259 float luminance_min = 0; |
| 260 | 260 |
| 261 MasteringMetadata(); | 261 MasteringMetadata(); |
| 262 MasteringMetadata(const MasteringMetadata& rhs); | 262 MasteringMetadata(const MasteringMetadata& rhs); |
| 263 }; | 263 }; |
| 264 | 264 |
| 265 // HDR metadata common for HDR10 and WebM/VP9-based HDR formats. | 265 // HDR metadata common for HDR10 and WebM/VP9-based HDR formats. |
| 266 struct HDRMetadata { | 266 struct HDRMetadata { |
| 267 MasteringMetadata mastering_metadata; | 267 MasteringMetadata mastering_metadata; |
| 268 unsigned max_cll = 0; | 268 unsigned max_content_light_level = 0; |
| 269 unsigned max_fall = 0; | 269 unsigned max_frame_average_light_level = 0; |
| 270 | 270 |
| 271 HDRMetadata(); | 271 HDRMetadata(); |
| 272 HDRMetadata(const HDRMetadata& rhs); | 272 HDRMetadata(const HDRMetadata& rhs); |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 inline MasteringMetadata::MasteringMetadata() {} | 275 inline MasteringMetadata::MasteringMetadata() {} |
| 276 inline MasteringMetadata::MasteringMetadata(const MasteringMetadata& rhs) = | 276 inline MasteringMetadata::MasteringMetadata(const MasteringMetadata& rhs) = |
| 277 default; | 277 default; |
| 278 | 278 |
| 279 inline HDRMetadata::HDRMetadata() {} | 279 inline HDRMetadata::HDRMetadata() {} |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 inline bool IsValidConfig(const VideoConfig& config) { | 387 inline bool IsValidConfig(const VideoConfig& config) { |
| 388 return config.codec >= kVideoCodecMin && | 388 return config.codec >= kVideoCodecMin && |
| 389 config.codec <= kVideoCodecMax && | 389 config.codec <= kVideoCodecMax && |
| 390 config.codec != kVideoCodecUnknown; | 390 config.codec != kVideoCodecUnknown; |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace media | 393 } // namespace media |
| 394 } // namespace chromecast | 394 } // namespace chromecast |
| 395 | 395 |
| 396 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 396 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| OLD | NEW |