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

Side by Side Diff: media/base/android/video_media_codec_decoder.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
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_VIDEO_MEDIA_CODEC_DECODER_H_ 5 #ifndef MEDIA_BASE_ANDROID_VIDEO_MEDIA_CODEC_DECODER_H_
6 #define MEDIA_BASE_ANDROID_VIDEO_MEDIA_CODEC_DECODER_H_ 6 #define MEDIA_BASE_ANDROID_VIDEO_MEDIA_CODEC_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Returns true if protected surface is needed. 62 // Returns true if protected surface is needed.
63 bool IsProtectedSurfaceRequired() const; 63 bool IsProtectedSurfaceRequired() const;
64 64
65 protected: 65 protected:
66 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override; 66 bool IsCodecReconfigureNeeded(const DemuxerConfigs& next) const override;
67 ConfigStatus ConfigureInternal(jobject media_crypto) override; 67 ConfigStatus ConfigureInternal(jobject media_crypto) override;
68 void AssociateCurrentTimeWithPTS(base::TimeDelta pts) override; 68 void AssociateCurrentTimeWithPTS(base::TimeDelta pts) override;
69 void DissociatePTSFromTime() override; 69 void DissociatePTSFromTime() override;
70 bool OnOutputFormatChanged() override; 70 bool OnOutputFormatChanged() override;
71 void Render(int buffer_index, 71 bool Render(int buffer_index,
72 size_t offset, 72 size_t offset,
73 size_t size, 73 size_t size,
74 RenderMode render_mode, 74 RenderMode render_mode,
75 base::TimeDelta pts, 75 base::TimeDelta pts,
76 bool eos_encountered) override; 76 bool eos_encountered) override;
77 77
78 int NumDelayedRenderTasks() const override; 78 int NumDelayedRenderTasks() const override;
79 void ReleaseDelayedBuffers() override; 79 void ReleaseDelayedBuffers() override;
80 80
81 #ifndef NDEBUG 81 #ifndef NDEBUG
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Mantain the last seen PTS for stand-alone EOS. 122 // Mantain the last seen PTS for stand-alone EOS.
123 base::TimeDelta last_seen_pts_; 123 base::TimeDelta last_seen_pts_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(VideoMediaCodecDecoder); 125 DISALLOW_COPY_AND_ASSIGN(VideoMediaCodecDecoder);
126 }; 126 };
127 127
128 } // namespace media 128 } // namespace media
129 129
130 #endif // MEDIA_BASE_ANDROID_VIDEO_MEDIA_CODEC_DECODER_H_ 130 #endif // MEDIA_BASE_ANDROID_VIDEO_MEDIA_CODEC_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/android/video_decoder_job.cc ('k') | media/base/android/video_media_codec_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698