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

Side by Side Diff: chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc

Issue 2677143003: [Chromecast] Introduce a MediaCapabilitiesShlib::IsSupportedAudioConfig (Closed)
Patch Set: Fixed cast_media_android.cc impl 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 | chromecast/media/cma/backend/cast_media_android.cc » ('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 #include "base/strings/string_util.h" 5 #include "base/strings/string_util.h"
6 #include "chromecast/public/media/media_capabilities_shlib.h" 6 #include "chromecast/public/media/media_capabilities_shlib.h"
7 #include "chromecast/public/media_codec_support_shlib.h" 7 #include "chromecast/public/media_codec_support_shlib.h"
8 8
9 namespace chromecast { 9 namespace chromecast {
10 namespace media { 10 namespace media {
(...skipping 22 matching lines...) Expand all
33 33
34 return kNotSupported; 34 return kNotSupported;
35 } 35 }
36 36
37 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, 37 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
38 VideoProfile profile, 38 VideoProfile profile,
39 int level) { 39 int level) {
40 return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9); 40 return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9);
41 } 41 }
42 42
43 bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
44 return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
45 config.codec == kCodecPCM;
46 }
47
43 } // namespace media 48 } // namespace media
44 } // namespace chromecast 49 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cma/backend/cast_media_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698