diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-06 03:15:48 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-06 03:15:48 +0000 |
commit | 97dd433374f7a5e5195fb6c65bdab33740b98e86 (patch) | |
tree | 9d75e9732ff0a56929c24fd5ffd82d5865382e3e /ppapi/thunk/ppb_video_capture_api.h | |
parent | a82aa8513ec8f638ab2d68fca5e6a1a1d5fd1e67 (diff) | |
download | chromium_src-97dd433374f7a5e5195fb6c65bdab33740b98e86.zip chromium_src-97dd433374f7a5e5195fb6c65bdab33740b98e86.tar.gz chromium_src-97dd433374f7a5e5195fb6c65bdab33740b98e86.tar.bz2 |
Video Capture Pepper API
The API is very simple at this point but works end-to-end.
BUG=None
TEST=VideoCapture sample (in a later CL)
Review URL: http://codereview.chromium.org/7553003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_video_capture_api.h')
-rw-r--r-- | ppapi/thunk/ppb_video_capture_api.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ppapi/thunk/ppb_video_capture_api.h b/ppapi/thunk/ppb_video_capture_api.h new file mode 100644 index 0000000..33c4aa6 --- /dev/null +++ b/ppapi/thunk/ppb_video_capture_api.h @@ -0,0 +1,27 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_THUNK_VIDEO_CAPTURE_API_H_ +#define PPAPI_THUNK_VIDEO_CAPTURE_API_H_ + +#include "ppapi/c/dev/ppb_video_capture_dev.h" + +namespace ppapi { +namespace thunk { + +class PPB_VideoCapture_API { + public: + virtual ~PPB_VideoCapture_API() {} + + virtual int32_t StartCapture( + const PP_VideoCaptureDeviceInfo_Dev& requested_info, + uint32_t buffer_count) = 0; + virtual int32_t ReuseBuffer(uint32_t buffer) = 0; + virtual int32_t StopCapture() = 0; +}; + +} // namespace thunk +} // namespace ppapi + +#endif // PPAPI_THUNK_VIDEO_CAPTURE_API_H_ |