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

Side by Side Diff: media/video/video_decode_accelerator.h

Issue 7065010: Add initialization callback support for Video Decoder PPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Delete TODO and bump up the ppb version Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Callback to tell client how many and what size of buffers to provide. 182 // Callback to tell client how many and what size of buffers to provide.
183 virtual void ProvidePictureBuffers( 183 virtual void ProvidePictureBuffers(
184 uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0; 184 uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0;
185 185
186 // Callback to dismiss picture buffer that was assigned earlier. 186 // Callback to dismiss picture buffer that was assigned earlier.
187 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0; 187 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0;
188 188
189 // Callback to deliver decoded pictures ready to be displayed. 189 // Callback to deliver decoded pictures ready to be displayed.
190 virtual void PictureReady(const Picture& picture) = 0; 190 virtual void PictureReady(const Picture& picture) = 0;
191 191
192 // Callback to notify client that decoder has been initialized.
Ami GONE FROM CHROMIUM 2011/05/23 21:39:02 Move above PPB?
193 virtual void NotifyInitializeDone() = 0;
194
192 // Callback to notify that decoder has decoded end of stream marker and has 195 // Callback to notify that decoder has decoded end of stream marker and has
193 // outputted all displayable pictures. 196 // outputted all displayable pictures.
194 virtual void NotifyEndOfStream() = 0; 197 virtual void NotifyEndOfStream() = 0;
195 198
196 // Callback to notify that decoded has decoded the end of the current 199 // Callback to notify that decoded has decoded the end of the current
197 // bitstream buffer. 200 // bitstream buffer.
198 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0; 201 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) = 0;
199 202
200 // Callback to notify that the outstanding flush has finished. 203 // Callback to notify that the outstanding flush has finished.
201 virtual void NotifyFlushDone() = 0; 204 virtual void NotifyFlushDone() = 0;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // been finished. After abort all buffers can be considered dismissed, even 273 // been finished. After abort all buffers can be considered dismissed, even
271 // when there has not been callbacks to dismiss them. 274 // when there has not been callbacks to dismiss them.
272 // 275 //
273 // Returns true when command successfully accepted. Otherwise false. 276 // Returns true when command successfully accepted. Otherwise false.
274 virtual bool Abort() = 0; 277 virtual bool Abort() = 0;
275 }; 278 };
276 279
277 } // namespace media 280 } // namespace media
278 281
279 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 282 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698