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

Side by Side Diff: chromecast/media/cma/backend/cast_media_default.cc

Issue 2677143003: [Chromecast] Introduce a MediaCapabilitiesShlib::IsSupportedAudioConfig (Closed)
Patch Set: Created 3 years, 10 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 <memory> 5 #include <memory>
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chromecast/base/task_runner_impl.h" 10 #include "chromecast/base/task_runner_impl.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool CastMediaShlib::SupportsMediaClockRateChange() { 104 bool CastMediaShlib::SupportsMediaClockRateChange() {
105 return false; 105 return false;
106 } 106 }
107 107
108 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, 108 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
109 VideoProfile profile, 109 VideoProfile profile,
110 int level) { 110 int level) {
111 return (codec == kCodecH264 || codec == kCodecVP8); 111 return (codec == kCodecH264 || codec == kCodecVP8);
112 } 112 }
113 113
114 bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
115 return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
116 config.codec == kCodecPCM;
erickung1 2017/02/06 21:03:26 ditto
117 }
118
114 } // namespace media 119 } // namespace media
115 } // namespace chromecast 120 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698