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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 explicit VideoDecoder_Dev(PP_Resource resource); | 31 explicit VideoDecoder_Dev(PP_Resource resource); |
32 virtual ~VideoDecoder_Dev(); | 32 virtual ~VideoDecoder_Dev(); |
33 | 33 |
34 // PPB_VideoDecoder_Dev implementation. | 34 // PPB_VideoDecoder_Dev implementation. |
35 void AssignPictureBuffers(const std::vector<PP_PictureBuffer_Dev>& buffers); | 35 void AssignPictureBuffers(const std::vector<PP_PictureBuffer_Dev>& buffers); |
36 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, | 36 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, |
37 CompletionCallback callback); | 37 CompletionCallback callback); |
38 void ReusePictureBuffer(int32_t picture_buffer_id); | 38 void ReusePictureBuffer(int32_t picture_buffer_id); |
39 int32_t Flush(CompletionCallback callback); | 39 int32_t Flush(CompletionCallback callback); |
40 int32_t Reset(CompletionCallback callback); | 40 int32_t Reset(const CompletionCallback& callback); |
41 | 41 |
42 private: | 42 private: |
43 // Disallow copy-construction to ensure Destroy() is called exactly once. | 43 // Disallow copy-construction to ensure Destroy() is called exactly once. |
44 VideoDecoder_Dev(const VideoDecoder_Dev&); | 44 VideoDecoder_Dev(const VideoDecoder_Dev&); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace pp | 47 } // namespace pp |
48 | 48 |
49 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ | 49 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ |
OLD | NEW |