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

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: Fix CR comments 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // Interface for collaborating with picture interface to provide memory for 180 // Interface for collaborating with picture interface to provide memory for
181 // output picture and blitting them. 181 // output picture and blitting them.
182 // This interface is extended by the various layers that relay messages back 182 // This interface is extended by the various layers that relay messages back
183 // to the plugin, through the PPP_VideoDecode_Dev interface the plugin 183 // to the plugin, through the PPP_VideoDecode_Dev interface the plugin
184 // implements. 184 // implements.
185 class Client { 185 class Client {
186 public: 186 public:
187 virtual ~Client() {} 187 virtual ~Client() {}
188 188
189 // Callback to notify client that decoder has been initialized.
190 virtual void NotifyInitializeDone() = 0;
191
189 // Callback to tell the information needed by the client to provide decoding 192 // Callback to tell the information needed by the client to provide decoding
190 // buffer to the decoder. 193 // buffer to the decoder.
191 virtual void ProvidePictureBuffers( 194 virtual void ProvidePictureBuffers(
192 uint32 requested_num_of_buffers, 195 uint32 requested_num_of_buffers,
193 const gfx::Size& dimensions, 196 const gfx::Size& dimensions,
194 MemoryType type) = 0; 197 MemoryType type) = 0;
195 198
196 // Callback to dismiss picture buffer that was assigned earlier. 199 // Callback to dismiss picture buffer that was assigned earlier.
197 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0; 200 virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0;
198 201
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // been finished. After abort all buffers can be considered dismissed, even 283 // been finished. After abort all buffers can be considered dismissed, even
281 // when there has not been callbacks to dismiss them. 284 // when there has not been callbacks to dismiss them.
282 // 285 //
283 // Returns true when command successfully accepted. Otherwise false. 286 // Returns true when command successfully accepted. Otherwise false.
284 virtual bool Abort() = 0; 287 virtual bool Abort() = 0;
285 }; 288 };
286 289
287 } // namespace media 290 } // namespace media
288 291
289 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 292 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698