diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-11-13 12:35:56 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-11-13 12:35:56 +0000 |
commit | 851ddec4d5fc85b7bfaaf3b318c0d3e088794f7a (patch) | |
tree | 6b8535de35777baf149b2a75f5f5648b48c60d23 /sys/v4l2/gstv4l2element.h | |
parent | 15e3ef0e55d190aca25d0501a159e7d930ca4679 (diff) | |
download | gst-plugins-bad-851ddec4d5fc85b7bfaaf3b318c0d3e088794f7a.tar.gz gst-plugins-bad-851ddec4d5fc85b7bfaaf3b318c0d3e088794f7a.tar.bz2 gst-plugins-bad-851ddec4d5fc85b7bfaaf3b318c0d3e088794f7a.zip |
v4l plugins: add open/close signals v4l2 plugins: add open/close signals move source format enumeration from v4l2elem...
Original commit message from CVS:
v4l plugins:
* add open/close signals
v4l2 plugins:
* add open/close signals
* move source format enumeration from v4l2element to v4l2src
* adapt to the final v4l2 API in kernel 2.5 (patches for 2.4 on http://bytesex.org/patches)
* small tweaks
Diffstat (limited to 'sys/v4l2/gstv4l2element.h')
-rw-r--r-- | sys/v4l2/gstv4l2element.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/v4l2/gstv4l2element.h b/sys/v4l2/gstv4l2element.h index b0e9fb7c..87ebaad9 100644 --- a/sys/v4l2/gstv4l2element.h +++ b/sys/v4l2/gstv4l2element.h @@ -41,21 +41,17 @@ typedef struct _GstV4l2Element GstV4l2Element; typedef struct _GstV4l2ElementClass GstV4l2ElementClass; -typedef struct _GstV4l2Rect { - gint x, y, w, h; -} GstV4l2Rect; - typedef enum { - GST_V4L2_ATTRIBUTE_VALUE_TYPE_INT, - GST_V4L2_ATTRIBUTE_VALUE_TYPE_BOOLEAN, - GST_V4L2_ATTRIBUTE_VALUE_TYPE_BUTTON, - GST_V4L2_ATTRIBUTE_VALUE_TYPE_LIST, + GST_V4L2_ATTRIBUTE_VALUE_TYPE_INTEGER = V4L2_CTRL_TYPE_INTEGER, + GST_V4L2_ATTRIBUTE_VALUE_TYPE_BOOLEAN = V4L2_CTRL_TYPE_BOOLEAN, + GST_V4L2_ATTRIBUTE_VALUE_TYPE_MENU = V4L2_CTRL_TYPE_MENU, + GST_V4L2_ATTRIBUTE_VALUE_TYPE_BUTTON = V4L2_CTRL_TYPE_BUTTON, } GstV4l2AttributeValueType; typedef enum { GST_V4L2_ATTRIBUTE_TYPE_VIDEO, GST_V4L2_ATTRIBUTE_TYPE_AUDIO, - GST_V4L2_ATTRIBUTE_TYPE_EFFECT, + GST_V4L2_ATTRIBUTE_TYPE_OTHER, } GstV4l2AttributeType; typedef struct _GstV4l2Attribute { @@ -83,7 +79,6 @@ struct _GstV4l2Element { struct v4l2_capability vcap; /* the toys available to us */ - GList /*v4l2_fmtdesc*/ *formats; /* list of available capture formats */ GList /*v4l2_input*/ *inputs; GList /*v4l2_output*/ *outputs; GList /*v4l2_enumstd*/ *norms; @@ -99,6 +94,12 @@ struct _GstV4l2Element { struct _GstV4l2ElementClass { GstElementClass parent_class; + + /* signals */ + void (*open) (GstElement *element, + const gchar *device); + void (*close) (GstElement *element, + const gchar *device); }; |