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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.h

Issue 7085030: Implementation for Pepper C++ Video Decoder API (wrapper on top of C API). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style fixes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/dev/ppb_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/video_decoder_dev.h
diff --git a/ppapi/cpp/dev/video_decoder_dev.h b/ppapi/cpp/dev/video_decoder_dev.h
index ba29abadcd285efebd69e65036d96fc169a21696..2ed3fd8a98e174c7538a8ff32d35533bd7a95cdb 100644
--- a/ppapi/cpp/dev/video_decoder_dev.h
+++ b/ppapi/cpp/dev/video_decoder_dev.h
@@ -57,23 +57,22 @@ class VideoDecoder : public Resource {
// |callback| will be called when decoder is initialized.
// |client| is the pointer to the client object. Ownership of the object is
// not transferred and it must outlive the lifetime of this class.
- VideoDecoder(const Instance* instance, const std::vector<uint32_t>& config,
+ VideoDecoder(const Instance* instance,
+ const std::vector<PP_VideoConfigElement>& config,
brettw 2011/06/01 07:57:03 I still have concerns about using a vector here, a
Ville-Mikko Rautio 2011/06/01 09:45:26 Agreed. C-array style is better from user perspect
CompletionCallback callback, Client* client);
~VideoDecoder();
// GetConfigs returns supported configurations that are subsets of given
// |prototype_config|.
- static std::vector<uint32_t> GetConfigs(
+ static std::vector<PP_VideoConfigElement> GetConfigs(
Instance* instance,
- const std::vector<uint32_t>& prototype_config);
+ const std::vector<PP_VideoConfigElement>& prototype_config);
// Provides the decoder with picture buffers for video decoding.
// AssignGLESBuffers provides texture-backed buffers, whereas
// AssignSysmemBuffers provides system memory-backed buffers.
- void AssignGLESBuffers(uint32_t no_of_buffers,
- const PP_GLESBuffer_Dev& buffers);
- void AssignSysmemBuffers(uint32_t no_of_buffers,
- const PP_SysmemBuffer_Dev& buffers);
+ void AssignGLESBuffers(const std::vector<PP_GLESBuffer_Dev>& buffers);
+ void AssignSysmemBuffers(const std::vector<PP_SysmemBuffer_Dev>& buffers);
// Decodes given bitstream buffer. Once decoder is done with processing
// |bitstream_buffer| is will call |callback| with provided user data.
« no previous file with comments | « ppapi/c/dev/ppb_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698