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

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

Issue 1992913002: [merged] Report media error if PlayOutputBuffer failed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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
OLDNEW
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 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Sets the volume of the audio output. 44 // Sets the volume of the audio output.
45 void SetVolume(double volume); 45 void SetVolume(double volume);
46 46
47 // Sets the base timestamp for |audio_timestamp_helper_|. 47 // Sets the base timestamp for |audio_timestamp_helper_|.
48 void SetBaseTimestamp(base::TimeDelta base_timestamp); 48 void SetBaseTimestamp(base::TimeDelta base_timestamp);
49 49
50 protected: 50 protected:
51 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override; 51 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override;
52 ConfigStatus ConfigureInternal(jobject media_crypto) override; 52 ConfigStatus ConfigureInternal(jobject media_crypto) override;
53 bool OnOutputFormatChanged() override; 53 bool OnOutputFormatChanged() override;
54 void Render(int buffer_index, 54 bool Render(int buffer_index,
55 size_t offset, 55 size_t offset,
56 size_t size, 56 size_t size,
57 RenderMode render_mode, 57 RenderMode render_mode,
58 base::TimeDelta pts, 58 base::TimeDelta pts,
59 bool eos_encountered) override; 59 bool eos_encountered) override;
60 60
61 private: 61 private:
62 // A helper method to set the volume. 62 // A helper method to set the volume.
63 void SetVolumeInternal(); 63 void SetVolumeInternal();
64 64
(...skipping 28 matching lines...) Expand all
93 93
94 // The time limit for the next frame to avoid underrun. 94 // The time limit for the next frame to avoid underrun.
95 base::TimeTicks next_frame_time_limit_; 95 base::TimeTicks next_frame_time_limit_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(AudioMediaCodecDecoder); 97 DISALLOW_COPY_AND_ASSIGN(AudioMediaCodecDecoder);
98 }; 98 };
99 99
100 } // namespace media 100 } // namespace media
101 101
102 #endif // MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_ 102 #endif // MEDIA_BASE_ANDROID_AUDIO_MEDIA_CODEC_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/android/audio_decoder_job.cc ('k') | media/base/android/audio_media_codec_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698