OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CAPTURE_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ | 6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ppapi/c/dev/pp_video_capture_dev.h" | 10 #include "ppapi/c/dev/pp_video_capture_dev.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 const CompletionCallbackWithOutput<std::vector<DeviceRef_Dev> >& | 30 const CompletionCallbackWithOutput<std::vector<DeviceRef_Dev> >& |
31 callback); | 31 callback); |
32 int32_t Open(const DeviceRef_Dev& device_ref, | 32 int32_t Open(const DeviceRef_Dev& device_ref, |
33 const PP_VideoCaptureDeviceInfo_Dev& requested_info, | 33 const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
34 uint32_t buffer_count, | 34 uint32_t buffer_count, |
35 const CompletionCallback& callback); | 35 const CompletionCallback& callback); |
36 int32_t StartCapture(); | 36 int32_t StartCapture(); |
37 int32_t ReuseBuffer(uint32_t buffer); | 37 int32_t ReuseBuffer(uint32_t buffer); |
38 int32_t StopCapture(); | 38 int32_t StopCapture(); |
39 void Close(); | 39 void Close(); |
40 | |
41 private: | |
42 // Used to store the arguments of Open() when using the v0.1 interface. | |
43 PP_VideoCaptureDeviceInfo_Dev requested_info_; | |
44 uint32_t buffer_count_; | |
45 }; | 40 }; |
46 | 41 |
47 } // namespace pp | 42 } // namespace pp |
48 | 43 |
49 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ | 44 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
OLD | NEW |