| 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 #ifndef MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ |
| 6 #define MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ | 6 #define MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Sets the volume of the audio output. | 45 // Sets the volume of the audio output. |
| 46 void SetVolume(double volume); | 46 void SetVolume(double volume); |
| 47 | 47 |
| 48 // Sets the base timestamp for |audio_timestamp_helper_|. | 48 // Sets the base timestamp for |audio_timestamp_helper_|. |
| 49 void SetBaseTimestamp(base::TimeDelta base_timestamp); | 49 void SetBaseTimestamp(base::TimeDelta base_timestamp); |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override; | 52 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override; |
| 53 ConfigStatus ConfigureInternal(jobject media_crypto) override; | 53 ConfigStatus ConfigureInternal(jobject media_crypto) override; |
| 54 bool OnOutputFormatChanged() override; | 54 bool OnOutputFormatChanged() override; |
| 55 void Render(int buffer_index, | 55 bool Render(int buffer_index, |
| 56 size_t offset, | 56 size_t offset, |
| 57 size_t size, | 57 size_t size, |
| 58 RenderMode render_mode, | 58 RenderMode render_mode, |
| 59 base::TimeDelta pts, | 59 base::TimeDelta pts, |
| 60 bool eos_encountered) override; | 60 bool eos_encountered) override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // A helper method to set the volume. | 63 // A helper method to set the volume. |
| 64 void SetVolumeInternal(); | 64 void SetVolumeInternal(); |
| 65 | 65 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 94 | 94 |
| 95 // The time limit for the next frame to avoid underrun. | 95 // The time limit for the next frame to avoid underrun. |
| 96 base::TimeTicks next_frame_time_limit_; | 96 base::TimeTicks next_frame_time_limit_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(AudioMediaCodecDecoder); | 98 DISALLOW_COPY_AND_ASSIGN(AudioMediaCodecDecoder); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace media | 101 } // namespace media |
| 102 | 102 |
| 103 #endif // MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ | 103 #endif // MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ |
| OLD | NEW |