| 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 24 matching lines...) Expand all Loading... |
| 35 // PPB_VideoDecoder_Dev implementation. | 35 // PPB_VideoDecoder_Dev implementation. |
| 36 int32_t Initialize(const PP_VideoConfigElement* config, | 36 int32_t Initialize(const PP_VideoConfigElement* config, |
| 37 const Context3D_Dev& context, | 37 const Context3D_Dev& context, |
| 38 CompletionCallback callback); | 38 CompletionCallback callback); |
| 39 void AssignGLESBuffers(const std::vector<PP_GLESBuffer_Dev>& buffers); | 39 void AssignGLESBuffers(const std::vector<PP_GLESBuffer_Dev>& buffers); |
| 40 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, | 40 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, |
| 41 CompletionCallback callback); | 41 CompletionCallback callback); |
| 42 void ReusePictureBuffer(int32_t picture_buffer_id); | 42 void ReusePictureBuffer(int32_t picture_buffer_id); |
| 43 int32_t Flush(CompletionCallback callback); | 43 int32_t Flush(CompletionCallback callback); |
| 44 int32_t Reset(CompletionCallback callback); | 44 int32_t Reset(CompletionCallback callback); |
| 45 int32_t Destroy(CompletionCallback callback); | 45 |
| 46 private: |
| 47 // Disallow copy-construction to ensure Destroy() is called exactly once. |
| 48 VideoDecoder_Dev(const VideoDecoder_Dev&); |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 } // namespace pp | 51 } // namespace pp |
| 49 | 52 |
| 50 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ | 53 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ |
| OLD | NEW |