| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/filters/android/media_codec_audio_decoder.h" | 5 #include "media/filters/android/media_codec_audio_decoder.h" |
| 6 | 6 |
| 7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "media/base/android/sdk_media_codec_bridge.h" | 12 #include "media/base/android/media_codec_bridge_impl.h" |
| 13 #include "media/base/audio_buffer.h" | 13 #include "media/base/audio_buffer.h" |
| 14 #include "media/base/audio_timestamp_helper.h" | 14 #include "media/base/audio_timestamp_helper.h" |
| 15 #include "media/base/bind_to_current_loop.h" | 15 #include "media/base/bind_to_current_loop.h" |
| 16 #include "media/base/timestamp_constants.h" | 16 #include "media/base/timestamp_constants.h" |
| 17 | 17 |
| 18 namespace media { | 18 namespace media { |
| 19 | 19 |
| 20 MediaCodecAudioDecoder::MediaCodecAudioDecoder( | 20 MediaCodecAudioDecoder::MediaCodecAudioDecoder( |
| 21 scoped_refptr<base::SingleThreadTaskRunner> task_runner) | 21 scoped_refptr<base::SingleThreadTaskRunner> task_runner) |
| 22 : task_runner_(task_runner), | 22 : task_runner_(task_runner), |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 RETURN_STRING(STATE_READY); | 476 RETURN_STRING(STATE_READY); |
| 477 RETURN_STRING(STATE_ERROR); | 477 RETURN_STRING(STATE_ERROR); |
| 478 } | 478 } |
| 479 NOTREACHED() << "Unknown state " << state; | 479 NOTREACHED() << "Unknown state " << state; |
| 480 return nullptr; | 480 return nullptr; |
| 481 } | 481 } |
| 482 | 482 |
| 483 #undef RETURN_STRING | 483 #undef RETURN_STRING |
| 484 | 484 |
| 485 } // namespace media | 485 } // namespace media |
| OLD | NEW |