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

Side by Side Diff: chromecast/media/cma/backend/cast_media_dummy.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
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 "chromecast/public/cast_media_shlib.h" 5 #include "chromecast/public/cast_media_shlib.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool CastMediaShlib::SupportsMediaClockRateChange() { 45 bool CastMediaShlib::SupportsMediaClockRateChange() {
46 return false; 46 return false;
47 } 47 }
48 48
49 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, 49 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
50 VideoProfile profile, 50 VideoProfile profile,
51 int level) { 51 int level) {
52 return (codec == kCodecH264 || codec == kCodecVP8); 52 return (codec == kCodecH264 || codec == kCodecVP8);
53 } 53 }
54 54
55 bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
56 return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
57 config.codec == kCodecPCM;
58 }
59
55 } // namespace media 60 } // namespace media
56 } // namespace chromecast 61 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/cast_media_default.cc ('k') | chromecast/public/media/media_capabilities_shlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698