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

Side by Side Diff: ppapi/cpp/dev/video_decoder_dev.h

Issue 6961018: Pepper Video Decoder API tester plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More implementation meat and clearing things all around. Created 9 years, 6 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 PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/dev/pp_video_dev.h" 10 #include "ppapi/c/dev/pp_video_dev.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // GetConfigs returns supported configurations that are subsets of given 64 // GetConfigs returns supported configurations that are subsets of given
65 // |prototype_config|. 65 // |prototype_config|.
66 static std::vector<uint32_t> GetConfigs( 66 static std::vector<uint32_t> GetConfigs(
67 Instance* instance, 67 Instance* instance,
68 const std::vector<uint32_t>& prototype_config); 68 const std::vector<uint32_t>& prototype_config);
69 69
70 // Provides the decoder with picture buffers for video decoding. 70 // Provides the decoder with picture buffers for video decoding.
71 // AssignGLESBuffers provides texture-backed buffers, whereas 71 // AssignGLESBuffers provides texture-backed buffers, whereas
72 // AssignSysmemBuffers provides system memory-backed buffers. 72 // AssignSysmemBuffers provides system memory-backed buffers.
73 void AssignGLESBuffers(uint32_t no_of_buffers, 73 void AssignGLESBuffers(uint32_t no_of_buffers,
74 const PP_GLESBuffer_Dev& buffers); 74 const std::vector<PP_GLESBuffer_Dev>& buffers);
75 void AssignSysmemBuffers(uint32_t no_of_buffers, 75 void AssignSysmemBuffers(uint32_t no_of_buffers,
76 const PP_SysmemBuffer_Dev& buffers); 76 const std::vector<PP_SysmemBuffer_Dev>& buffers);
77 77
78 // Decodes given bitstream buffer. Once decoder is done with processing 78 // Decodes given bitstream buffer. Once decoder is done with processing
79 // |bitstream_buffer| is will call |callback| with provided user data. 79 // |bitstream_buffer| is will call |callback| with provided user data.
80 bool Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, 80 bool Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer,
81 CompletionCallback callback); 81 CompletionCallback callback);
82 82
83 // Tells the decoder to reuse given picture buffer. 83 // Tells the decoder to reuse given picture buffer.
84 void ReusePictureBuffer(int32_t picture_buffer_id); 84 void ReusePictureBuffer(int32_t picture_buffer_id);
85 85
86 // Flushes the decoder. |callback| will be called as soon as Flush has been 86 // Flushes the decoder. |callback| will be called as soon as Flush has been
(...skipping 10 matching lines...) Expand all
97 Client* client_; 97 Client* client_;
98 98
99 // Suppress compiler-generated copy constructors. 99 // Suppress compiler-generated copy constructors.
100 VideoDecoder(const VideoDecoder&); 100 VideoDecoder(const VideoDecoder&);
101 void operator=(const VideoDecoder&); 101 void operator=(const VideoDecoder&);
102 }; 102 };
103 103
104 } // namespace pp 104 } // namespace pp
105 105
106 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 106 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | ppapi/examples/video_decoder/video_decoder_session.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698