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

Side by Side Diff: media/base/android/media_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
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_MEDIA_DECODER_JOB_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // demuxer config has changed. 119 // demuxer config has changed.
120 MediaDecoderJob( 120 MediaDecoderJob(
121 const scoped_refptr<base::SingleThreadTaskRunner>& decoder_task_runner, 121 const scoped_refptr<base::SingleThreadTaskRunner>& decoder_task_runner,
122 const base::Closure& request_data_cb, 122 const base::Closure& request_data_cb,
123 const base::Closure& config_changed_cb); 123 const base::Closure& config_changed_cb);
124 124
125 // Release the output buffer at index |output_buffer_index| and render it if 125 // Release the output buffer at index |output_buffer_index| and render it if
126 // |render_output| is true. Upon completion, |callback| will be called. 126 // |render_output| is true. Upon completion, |callback| will be called.
127 virtual void ReleaseOutputBuffer( 127 virtual void ReleaseOutputBuffer(
128 int output_buffer_index, 128 int output_buffer_index,
129 size_t offset,
129 size_t size, 130 size_t size,
130 bool render_output, 131 bool render_output,
131 base::TimeDelta current_presentation_timestamp, 132 base::TimeDelta current_presentation_timestamp,
132 const ReleaseOutputCompletionCallback& callback) = 0; 133 const ReleaseOutputCompletionCallback& callback) = 0;
133 134
134 // Returns true if the "time to render" needs to be computed for frames in 135 // Returns true if the "time to render" needs to be computed for frames in
135 // this decoder job. 136 // this decoder job.
136 virtual bool ComputeTimeToRender() const = 0; 137 virtual bool ComputeTimeToRender() const = 0;
137 138
138 // Gets MediaCrypto object from |drm_bridge_|. 139 // Gets MediaCrypto object from |drm_bridge_|.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // This access unit is passed to the decoder during config changes to drain 353 // This access unit is passed to the decoder during config changes to drain
353 // the decoder. 354 // the decoder.
354 AccessUnit eos_unit_; 355 AccessUnit eos_unit_;
355 356
356 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob); 357 DISALLOW_IMPLICIT_CONSTRUCTORS(MediaDecoderJob);
357 }; 358 };
358 359
359 } // namespace media 360 } // namespace media
360 361
361 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_ 362 #endif // MEDIA_BASE_ANDROID_MEDIA_DECODER_JOB_H_
OLDNEW
« no previous file with comments | « media/base/android/media_codec_video_decoder.cc ('k') | media/base/android/media_decoder_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698