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

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

Powered by Google App Engine
This is Rietveld 408576698