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

Side by Side Diff: chromecast/media/cma/pipeline/audio_pipeline_impl.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/media/cma/pipeline/audio_pipeline_impl.h" 5 #include "chromecast/media/cma/pipeline/audio_pipeline_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chromecast/media/cma/backend/audio_pipeline_device.h"
9 #include "chromecast/media/cma/base/buffering_defs.h" 8 #include "chromecast/media/cma/base/buffering_defs.h"
10 #include "chromecast/media/cma/base/cma_logging.h" 9 #include "chromecast/media/cma/base/cma_logging.h"
11 #include "chromecast/media/cma/base/coded_frame_provider.h" 10 #include "chromecast/media/cma/base/coded_frame_provider.h"
12 #include "chromecast/media/cma/base/decoder_config_adapter.h" 11 #include "chromecast/media/cma/base/decoder_config_adapter.h"
13 #include "chromecast/media/cma/pipeline/av_pipeline_impl.h" 12 #include "chromecast/media/cma/pipeline/av_pipeline_impl.h"
13 #include "chromecast/public/media/audio_pipeline_device.h"
14 #include "chromecast/public/media/decoder_config.h" 14 #include "chromecast/public/media/decoder_config.h"
15 #include "media/base/audio_decoder_config.h" 15 #include "media/base/audio_decoder_config.h"
16 16
17 namespace chromecast { 17 namespace chromecast {
18 namespace media { 18 namespace media {
19 19
20 namespace { 20 namespace {
21 const size_t kMaxAudioFrameSize = 32 * 1024; 21 const size_t kMaxAudioFrameSize = 32 * 1024;
22 } 22 }
23 23
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 delta_stats.audio_bytes_decoded = 154 delta_stats.audio_bytes_decoded =
155 current_stats.audio_bytes_decoded - previous_stats_.audio_bytes_decoded; 155 current_stats.audio_bytes_decoded - previous_stats_.audio_bytes_decoded;
156 156
157 previous_stats_ = current_stats; 157 previous_stats_ = current_stats;
158 158
159 audio_client_.statistics_cb.Run(delta_stats); 159 audio_client_.statistics_cb.Run(delta_stats);
160 } 160 }
161 161
162 } // namespace media 162 } // namespace media
163 } // namespace chromecast 163 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698