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

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

Issue 2807523003: [Chromecast] Make MatrixID enum uint8_t-based to match VideoColorSpace (Closed)
Patch Set: 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 | « no previous file | no next file » | 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 BT2020_10 = 14, 205 BT2020_10 = 14,
206 BT2020_12 = 15, 206 BT2020_12 = 15,
207 SMPTEST2084 = 16, 207 SMPTEST2084 = 16,
208 SMPTEST428_1 = 17, 208 SMPTEST428_1 = 17,
209 209
210 // Not yet standardized 210 // Not yet standardized
211 ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG. 211 ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG.
212 }; 212 };
213 213
214 // Table 4 214 // Table 4
215 enum class MatrixID : int8_t { 215 enum class MatrixID : uint8_t {
216 RGB = 0, 216 RGB = 0,
217 BT709 = 1, 217 BT709 = 1,
218 UNSPECIFIED = 2, 218 UNSPECIFIED = 2,
219 FCC = 4, 219 FCC = 4,
220 BT470BG = 5, 220 BT470BG = 5,
221 SMPTE170M = 6, 221 SMPTE170M = 6,
222 SMPTE240M = 7, 222 SMPTE240M = 7,
223 YCOCG = 8, 223 YCOCG = 8,
224 BT2020_NCL = 9, 224 BT2020_NCL = 9,
225 BT2020_CL = 10, 225 BT2020_CL = 10,
(...skipping 161 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698