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

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

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK on posted task Created 5 years, 4 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
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698