OLD | NEW |
---|---|
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 | 63 |
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(const std::vector<PP_GLESBuffer_Dev> buffers); |
brettw
2011/05/31 12:46:44
The arguments to these two functions should be ref
Ville-Mikko Rautio
2011/05/31 13:33:14
Done.
| |
74 const PP_GLESBuffer_Dev& buffers); | 74 void AssignSysmemBuffers(const std::vector<PP_SysmemBuffer_Dev> buffers); |
75 void AssignSysmemBuffers(uint32_t no_of_buffers, | |
76 const PP_SysmemBuffer_Dev& buffers); | |
77 | 75 |
78 // Decodes given bitstream buffer. Once decoder is done with processing | 76 // Decodes given bitstream buffer. Once decoder is done with processing |
79 // |bitstream_buffer| is will call |callback| with provided user data. | 77 // |bitstream_buffer| is will call |callback| with provided user data. |
80 bool Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, | 78 bool Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, |
81 CompletionCallback callback); | 79 CompletionCallback callback); |
82 | 80 |
83 // Tells the decoder to reuse given picture buffer. | 81 // Tells the decoder to reuse given picture buffer. |
84 void ReusePictureBuffer(int32_t picture_buffer_id); | 82 void ReusePictureBuffer(int32_t picture_buffer_id); |
85 | 83 |
86 // Flushes the decoder. |callback| will be called as soon as Flush has been | 84 // Flushes the decoder. |callback| will be called as soon as Flush has been |
(...skipping 10 matching lines...) Expand all Loading... | |
97 Client* client_; | 95 Client* client_; |
98 | 96 |
99 // Suppress compiler-generated copy constructors. | 97 // Suppress compiler-generated copy constructors. |
100 VideoDecoder(const VideoDecoder&); | 98 VideoDecoder(const VideoDecoder&); |
101 void operator=(const VideoDecoder&); | 99 void operator=(const VideoDecoder&); |
102 }; | 100 }; |
103 | 101 |
104 } // namespace pp | 102 } // namespace pp |
105 | 103 |
106 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ | 104 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ |
OLD | NEW |