| 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_VIDEO_DECODER_JOB_H_ | 5 #ifndef MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
| 6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ | 6 #define MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "media/base/android/media_decoder_job.h" | 10 #include "media/base/android/media_decoder_job.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void ReleaseDecoderResources() override; | 36 void ReleaseDecoderResources() override; |
| 37 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; | 37 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; |
| 38 | 38 |
| 39 int output_width() const { return output_width_; } | 39 int output_width() const { return output_width_; } |
| 40 int output_height() const { return output_height_; } | 40 int output_height() const { return output_height_; } |
| 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 IsCodecReconfigureNeeded(const DemuxerConfigs& configs) const override; | 52 bool IsCodecReconfigureNeeded(const DemuxerConfigs& configs) const override; |
| 52 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override; | 53 bool AreDemuxerConfigsChanged(const DemuxerConfigs& configs) const override; |
| 53 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override; | 54 MediaDecoderJobStatus CreateMediaCodecBridgeInternal() override; |
| 54 bool UpdateOutputFormat() override; | 55 bool UpdateOutputFormat() override; |
| 55 | 56 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 71 // Callbacks to inform the caller about decoder resources change. | 72 // Callbacks to inform the caller about decoder resources change. |
| 72 base::Closure request_resources_cb_; | 73 base::Closure request_resources_cb_; |
| 73 base::Closure release_resources_cb_; | 74 base::Closure release_resources_cb_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(VideoDecoderJob); | 76 DISALLOW_COPY_AND_ASSIGN(VideoDecoderJob); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace media | 79 } // namespace media |
| 79 | 80 |
| 80 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ | 81 #endif // MEDIA_BASE_ANDROID_VIDEO_DECODER_JOB_H_ |
| OLD | NEW |