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

Side by Side Diff: chromecast/public/media/decoder_config.h

Issue 2803563007: Refactoring of media::HDRMetadata struct (Closed)
Patch Set: Add: using Chromaticity = gfx::PointF Created 3 years, 8 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 | « chromecast/media/cma/base/decoder_config_adapter.cc ('k') | media/base/hdr_metadata.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromecast/media/cma/base/decoder_config_adapter.cc ('k') | media/base/hdr_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698