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

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

Issue 1285733002: Pass buffer offset to PlayOutputBuffer() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bot Created 5 years, 4 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 | « media/base/android/media_decoder_job.cc ('k') | media/base/android/video_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_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
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
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_
OLDNEW
« no previous file with comments | « media/base/android/media_decoder_job.cc ('k') | media/base/android/video_decoder_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698