OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DECODER_JOB_H_ | 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ | 6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 void SetVolume(double volume); | 36 void SetVolume(double volume); |
37 double volume() const { return volume_; } | 37 double volume() const { return volume_; } |
38 | 38 |
39 // Sets the base timestamp for |audio_timestamp_helper_|. | 39 // Sets the base timestamp for |audio_timestamp_helper_|. |
40 void SetBaseTimestamp(base::TimeDelta base_timestamp); | 40 void SetBaseTimestamp(base::TimeDelta base_timestamp); |
41 | 41 |
42 private: | 42 private: |
43 // MediaDecoderJob implementation. | 43 // MediaDecoderJob implementation. |
44 void ReleaseOutputBuffer( | 44 void ReleaseOutputBuffer( |
45 int output_buffer_index, | 45 int output_buffer_index, |
| 46 size_t offset, |
46 size_t size, | 47 size_t size, |
47 bool render_output, | 48 bool render_output, |
48 base::TimeDelta current_presentation_timestamp, | 49 base::TimeDelta current_presentation_timestamp, |
49 const ReleaseOutputCompletionCallback& callback) override; | 50 const ReleaseOutputCompletionCallback& callback) override; |
50 bool ComputeTimeToRender() const override; | 51 bool ComputeTimeToRender() const override; |
51 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override; | 52 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override; |
52 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override; | 53 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override; |
53 void OnOutputFormatChanged() override; | 54 void OnOutputFormatChanged() override; |
54 | 55 |
55 // Helper method to set the audio output volume. | 56 // Helper method to set the audio output volume. |
(...skipping 22 matching lines...) Expand all Loading... |
78 | 79 |
79 // Object to calculate the current audio timestamp for A/V sync. | 80 // Object to calculate the current audio timestamp for A/V sync. |
80 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; | 81 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); | 83 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace media | 86 } // namespace media |
86 | 87 |
87 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ | 88 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
OLD | NEW |