| 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_MEDIA_CODEC_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ |
| 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include "media/base/android/media_codec_decoder.h" | 9 #include "media/base/android/media_codec_decoder.h" |
| 10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Returns true if there is a video surface to use. | 49 // Returns true if there is a video surface to use. |
| 50 bool HasVideoSurface() const; | 50 bool HasVideoSurface() const; |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 bool IsCodecReconfigureNeeded(const DemuxerConfigs& curr, | 53 bool IsCodecReconfigureNeeded(const DemuxerConfigs& curr, |
| 54 const DemuxerConfigs& next) const override; | 54 const DemuxerConfigs& next) const override; |
| 55 ConfigStatus ConfigureInternal() override; | 55 ConfigStatus ConfigureInternal() override; |
| 56 void SynchronizePTSWithTime(base::TimeDelta current_time) override; | 56 void SynchronizePTSWithTime(base::TimeDelta current_time) override; |
| 57 void OnOutputFormatChanged() override; | 57 void OnOutputFormatChanged() override; |
| 58 void Render(int buffer_index, | 58 void Render(int buffer_index, |
| 59 size_t offset, |
| 59 size_t size, | 60 size_t size, |
| 60 bool render_output, | 61 bool render_output, |
| 61 base::TimeDelta pts, | 62 base::TimeDelta pts, |
| 62 bool eos_encountered) override; | 63 bool eos_encountered) override; |
| 63 | 64 |
| 64 int NumDelayedRenderTasks() const override; | 65 int NumDelayedRenderTasks() const override; |
| 65 void ClearDelayedBuffers(bool release) override; | 66 void ClearDelayedBuffers(bool release) override; |
| 66 | 67 |
| 67 #ifndef NDEBUG | 68 #ifndef NDEBUG |
| 68 void VerifyUnitIsKeyFrame(const AccessUnit* unit) const override; | 69 void VerifyUnitIsKeyFrame(const AccessUnit* unit) const override; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 // Mantain the last seen PTS for stand-alone EOS. | 109 // Mantain the last seen PTS for stand-alone EOS. |
| 109 base::TimeDelta last_seen_pts_; | 110 base::TimeDelta last_seen_pts_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder); | 112 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace media | 115 } // namespace media |
| 115 | 116 |
| 116 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ | 117 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ |
| OLD | NEW |