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

Side by Side Diff: media/base/android/audio_decoder_job.h

Issue 1963343002: Report media error if PlayOutputBuffer failed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Min's comment Created 4 years, 7 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
« no previous file with comments | « no previous file | media/base/android/audio_decoder_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 26 matching lines...) Expand all
37 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; 37 void SetDemuxerConfigs(const DemuxerConfigs& configs) override;
38 38
39 // Sets the volume of the audio output. 39 // Sets the volume of the audio output.
40 void SetVolume(double volume); 40 void SetVolume(double volume);
41 41
42 // Sets the base timestamp for |audio_timestamp_helper_|. 42 // Sets the base timestamp for |audio_timestamp_helper_|.
43 void SetBaseTimestamp(base::TimeDelta base_timestamp); 43 void SetBaseTimestamp(base::TimeDelta base_timestamp);
44 44
45 private: 45 private:
46 // MediaDecoderJob implementation. 46 // MediaDecoderJob implementation.
47 void ReleaseOutputBuffer( 47 void ReleaseOutputBuffer(int output_buffer_index,
48 int output_buffer_index, 48 size_t offset,
49 size_t offset, 49 size_t size,
50 size_t size, 50 bool render_output,
51 bool render_output, 51 bool is_late_frame,
52 bool is_late_frame, 52 base::TimeDelta current_presentation_timestamp,
53 base::TimeDelta current_presentation_timestamp, 53 MediaCodecStatus status,
54 const ReleaseOutputCompletionCallback& callback) override; 54 const DecoderCallback& callback) override;
55 bool ComputeTimeToRender() const override; 55 bool ComputeTimeToRender() const override;
56 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override; 56 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override;
57 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override; 57 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override;
58 bool OnOutputFormatChanged() override; 58 bool OnOutputFormatChanged() override;
59 59
60 // Helper method to set the audio output volume. 60 // Helper method to set the audio output volume.
61 void SetVolumeInternal(); 61 void SetVolumeInternal();
62 62
63 void ResetTimestampHelper(); 63 void ResetTimestampHelper();
64 64
(...skipping 23 matching lines...) Expand all
88 88
89 // The time limit for the next frame to avoid underrun. 89 // The time limit for the next frame to avoid underrun.
90 base::TimeTicks next_frame_time_limit_; 90 base::TimeTicks next_frame_time_limit_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); 92 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob);
93 }; 93 };
94 94
95 } // namespace media 95 } // namespace media
96 96
97 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ 97 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/android/audio_decoder_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698