| 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 |
| 11 #include "chromecast/public/media/stream_id.h" | 11 #include "stream_id.h" |
| 12 | 12 |
| 13 namespace chromecast { | 13 namespace chromecast { |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 // Maximum audio bytes per sample. | 16 // Maximum audio bytes per sample. |
| 17 static const int kMaxBytesPerSample = 4; | 17 static const int kMaxBytesPerSample = 4; |
| 18 | 18 |
| 19 // Maximum audio sampling rate. | 19 // Maximum audio sampling rate. |
| 20 static const int kMaxSampleRate = 192000; | 20 static const int kMaxSampleRate = 192000; |
| 21 | 21 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 inline bool IsValidConfig(const VideoConfig& config) { | 175 inline bool IsValidConfig(const VideoConfig& config) { |
| 176 return config.codec >= kVideoCodecMin && | 176 return config.codec >= kVideoCodecMin && |
| 177 config.codec <= kVideoCodecMax && | 177 config.codec <= kVideoCodecMax && |
| 178 config.codec != kVideoCodecUnknown; | 178 config.codec != kVideoCodecUnknown; |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace media | 181 } // namespace media |
| 182 } // namespace chromecast | 182 } // namespace chromecast |
| 183 | 183 |
| 184 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ | 184 #endif // CHROMECAST_PUBLIC_MEDIA_DECODER_CONFIG_H_ |
| OLD | NEW |