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

Unified Diff: chromecast/media/cma/decoder/cast_audio_decoder_android.cc

Issue 1494713002: [Chromecast] Move CastAudioDecoder out to chromecast/media/cma/decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: remove tracing and compatibility #ifdef Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/media/cma/decoder/cast_audio_decoder_android.cc
diff --git a/chromecast/media/cma/decoder/cast_audio_decoder_android.cc b/chromecast/media/cma/decoder/cast_audio_decoder_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..669c688b8d503d6256c4e7a40ce771c65c64f0b9
--- /dev/null
+++ b/chromecast/media/cma/decoder/cast_audio_decoder_android.cc
@@ -0,0 +1,35 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromecast/media/cma/decoder/cast_audio_decoder.h"
+
+#include "base/logging.h"
+
+namespace chromecast {
+namespace media {
+
+// static
+scoped_ptr<CastAudioDecoder> CastAudioDecoder::Create(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ const media::AudioConfig& config,
+ OutputFormat output_format,
+ const InitializedCallback& initialized_callback) {
+ return scoped_ptr<CastAudioDecoder>();
+}
+
+// static
+int CastAudioDecoder::OutputFormatSizeInBytes(
+ CastAudioDecoder::OutputFormat format) {
+ switch (format) {
+ case CastAudioDecoder::OutputFormat::kOutputSigned16:
+ return 2;
+ case CastAudioDecoder::OutputFormat::kOutputPlanarFloat:
+ return 4;
+ }
+ NOTREACHED();
+ return 1;
+}
+
+} // namespace media
+} // namespace chromecast
« no previous file with comments | « chromecast/media/cma/decoder/cast_audio_decoder.h ('k') | chromecast/media/cma/decoder/cast_audio_decoder_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698