OLD | NEW |
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 "chromecast/media/cma/backend/media_component_device_default.h" | 5 #include "chromecast/media/cma/backend/media_component_device_default.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | |
11 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
12 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 11 #include "chromecast/media/cma/base/decoder_buffer_base.h" |
13 #include "media/base/buffers.h" | 12 #include "media/base/buffers.h" |
14 | 13 |
15 namespace chromecast { | 14 namespace chromecast { |
16 namespace media { | 15 namespace media { |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
20 // Maximum number of frames that can be buffered. | 19 // Maximum number of frames that can be buffered. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Note: what is returned here is not the number of samples but the number of | 180 // Note: what is returned here is not the number of samples but the number of |
182 // frames. The value is different for audio. | 181 // frames. The value is different for audio. |
183 stats->decoded_bytes = decoded_byte_count_; | 182 stats->decoded_bytes = decoded_byte_count_; |
184 stats->decoded_samples = decoded_frame_count_; | 183 stats->decoded_samples = decoded_frame_count_; |
185 stats->dropped_samples = 0; | 184 stats->dropped_samples = 0; |
186 return true; | 185 return true; |
187 } | 186 } |
188 | 187 |
189 } // namespace media | 188 } // namespace media |
190 } // namespace chromecast | 189 } // namespace chromecast |
OLD | NEW |