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

Side by Side Diff: chromecast/media/base/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: 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromecast/media/base/cast_audio_decoder.h"
6
7 #include "base/logging.h"
8
9 namespace chromecast {
10
11 // static
12 scoped_ptr<CastAudioDecoder> CastAudioDecoder::Create(
13 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
14 const media::AudioConfig& config,
15 OutputFormat output_format,
16 const InitializedCallback& initialized_callback) {
17 return scoped_ptr<CastAudioDecoder>();
18 }
19
20 // static
21 int CastAudioDecoder::OutputFormatSizeInBytes(
22 CastAudioDecoder::OutputFormat format) {
23 switch (format) {
24 case CastAudioDecoder::OutputFormat::kOutputSigned16:
25 return 2;
26 case CastAudioDecoder::OutputFormat::kOutputPlanarFloat:
27 return 4;
28 }
29 NOTREACHED();
30 return 1;
31 }
32
33 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698