| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 enum SampleFormat { | 39 enum SampleFormat { |
| 40 kUnknownSampleFormat = 0, | 40 kUnknownSampleFormat = 0, |
| 41 kSampleFormatU8, // Unsigned 8-bit w/ bias of 128. | 41 kSampleFormatU8, // Unsigned 8-bit w/ bias of 128. |
| 42 kSampleFormatS16, // Signed 16-bit. | 42 kSampleFormatS16, // Signed 16-bit. |
| 43 kSampleFormatS32, // Signed 32-bit. | 43 kSampleFormatS32, // Signed 32-bit. |
| 44 kSampleFormatF32, // Float 32-bit. | 44 kSampleFormatF32, // Float 32-bit. |
| 45 kSampleFormatPlanarS16, // Signed 16-bit planar. | 45 kSampleFormatPlanarS16, // Signed 16-bit planar. |
| 46 kSampleFormatPlanarF32, // Float 32-bit planar. | 46 kSampleFormatPlanarF32, // Float 32-bit planar. |
| 47 kSampleFormatPlanarS32, // Signed 32-bit planar. | 47 kSampleFormatPlanarS32, // Signed 32-bit planar. |
| 48 kSampleFormatS24, // Signed 24-bit. |
| 48 | 49 |
| 49 kSampleFormatMin = kUnknownSampleFormat, | 50 kSampleFormatMin = kUnknownSampleFormat, |
| 50 kSampleFormatMax = kSampleFormatPlanarS32, | 51 kSampleFormatMax = kSampleFormatS24, |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 enum VideoCodec { | 54 enum VideoCodec { |
| 54 kVideoCodecUnknown = 0, | 55 kVideoCodecUnknown = 0, |
| 55 kCodecH264, | 56 kCodecH264, |
| 56 kCodecVC1, | 57 kCodecVC1, |
| 57 kCodecMPEG2, | 58 kCodecMPEG2, |
| 58 kCodecMPEG4, | 59 kCodecMPEG4, |
| 59 kCodecTheora, | 60 kCodecTheora, |
| 60 kCodecVP8, | 61 kCodecVP8, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 inline bool IsValidConfig(const VideoConfig& config) { | 179 inline bool IsValidConfig(const VideoConfig& config) { |
| 179 return config.codec >= kVideoCodecMin && | 180 return config.codec >= kVideoCodecMin && |
| 180 config.codec <= kVideoCodecMax && | 181 config.codec <= kVideoCodecMax && |
| 181 config.codec != kVideoCodecUnknown; | 182 config.codec != kVideoCodecUnknown; |
| 182 } | 183 } |
| 183 | 184 |
| 184 } // namespace media | 185 } // namespace media |
| 185 } // namespace chromecast | 186 } // namespace chromecast |
| 186 | 187 |
| 187 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 188 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| OLD | NEW |