diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 21:28:28 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-07 21:28:28 +0000 |
commit | dd4393148b9bded2cfbc54c2c91f7da5c6450ce0 (patch) | |
tree | 2db730e0a17dd701b97cf13946fac9588cb3a982 /ppapi/api/dev/pp_video_capture_dev.idl | |
parent | e1fffb8ef5c80c1f1f6a3e363ef2eca24244a781 (diff) | |
download | chromium_src-dd4393148b9bded2cfbc54c2c91f7da5c6450ce0.zip chromium_src-dd4393148b9bded2cfbc54c2c91f7da5c6450ce0.tar.gz chromium_src-dd4393148b9bded2cfbc54c2c91f7da5c6450ce0.tar.bz2 |
Convert video capture/decoder stuff to IDL.
I revved the PPP_VideoDecoder interface since IDL wants to pass PP_Picture_Dev
by pointer instead of by value. This also renames the VIDEO_CAPTURE interface
string/define to VIDEOCAPTURE for consistency (what IDL wants to do).
Review URL: http://codereview.chromium.org/8144008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/dev/pp_video_capture_dev.idl')
-rw-r--r-- | ppapi/api/dev/pp_video_capture_dev.idl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ppapi/api/dev/pp_video_capture_dev.idl b/ppapi/api/dev/pp_video_capture_dev.idl new file mode 100644 index 0000000..420579a --- /dev/null +++ b/ppapi/api/dev/pp_video_capture_dev.idl @@ -0,0 +1,47 @@ +/* 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. + */ + +/** + * Structs for dealing with video capture. + */ + +/** + * PP_VideoCaptureDeviceInfo_Dev is a structure that represent a video capture + * configuration, such as resolution and frame rate. + */ +[assert_size(12)] +struct PP_VideoCaptureDeviceInfo_Dev { + uint32_t width; + uint32_t height; + uint32_t frames_per_second; +}; + +/** + * PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible + * states of a VideoCapture. + */ +[assert_size(4)] +enum PP_VideoCaptureStatus_Dev { + /** + * Initial state, capture is stopped. + */ + PP_VIDEO_CAPTURE_STATUS_STOPPED, + /** + * StartCapture has been called, but capture hasn't started yet. + */ + PP_VIDEO_CAPTURE_STATUS_STARTING, + /** + * Capture is started. + */ + PP_VIDEO_CAPTURE_STATUS_STARTED, + /** + * Capture has been started, but is paused because no buffer is available. + */ + PP_VIDEO_CAPTURE_STATUS_PAUSED, + /** + * StopCapture has been called, but capture hasn't stopped yet. + */ + PP_VIDEO_CAPTURE_STATUS_STOPPING +}; |