diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-10-10 12:47:42 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-10-10 12:47:42 +0000 |
commit | 862d28a1b7321cc660a4230a0b19b3bd93279ce9 (patch) | |
tree | 6a5d3d3da3c0348cfff839da4a97d121f9be0b7a /sys/v4l2/v4l2_calls.h | |
parent | 4506e60ea0aacfba4fc90136fb20e27dd13b2acf (diff) |
Some interface implementations for video4linux/video4linux2 plugins: a Tuner interface, with which one can select inp...
Original commit message from CVS:
Some interface implementations for video4linux/video4linux2 plugins:
* a Tuner interface, with which one can select inputs and stations. Audio
work is underway here, but unfinished.
* A Xoverlay interface with which one can do simple overlay. Similar to
the API of the v4l/Xv XFree86 extension. Widget implementation for
GTK-2.0 coming up in the sandbox.
* Colorbalance - for adapting colors (brightness, contrast, etc.) - pretty
basic and maybe somewhat overdesigned. But it'll do for now.
Apart from these interfaces, there's also a loadable library 'xwindowlistener'
that listenes to X for the movement of a window and the overlap of other
windows. This is partly copied from xawtv (and thus partly GPL :(), but it's
needed for the xoverlay interface implementation in the v4l/v4l2 elements.
Lastly, some small changes to remove redundant properties from the v4l/v4l2
elements since these can be done much simpler. Comments appreciated!
Diffstat (limited to 'sys/v4l2/v4l2_calls.h')
-rw-r--r-- | sys/v4l2/v4l2_calls.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sys/v4l2/v4l2_calls.h b/sys/v4l2/v4l2_calls.h index e03c7abe5..a999af8e8 100644 --- a/sys/v4l2/v4l2_calls.h +++ b/sys/v4l2/v4l2_calls.h @@ -86,9 +86,9 @@ gboolean gst_v4l2_close (GstV4l2Element *v4l2element); /* norm/input/output */ gboolean gst_v4l2_get_norm (GstV4l2Element *v4l2element, - gint *norm); + v4l2_std_id *norm); gboolean gst_v4l2_set_norm (GstV4l2Element *v4l2element, - gint norm); + v4l2_std_id norm); gboolean gst_v4l2_get_input (GstV4l2Element *v4l2element, gint *input); gboolean gst_v4l2_set_input (GstV4l2Element *v4l2element, @@ -99,27 +99,26 @@ gboolean gst_v4l2_set_output (GstV4l2Element *v4l2element, gint output); /* frequency control */ -gboolean gst_v4l2_has_tuner (GstV4l2Element *v4l2element, - gint *tuner_num); gboolean gst_v4l2_get_frequency (GstV4l2Element *v4l2element, + gint tunernum, gulong *frequency); gboolean gst_v4l2_set_frequency (GstV4l2Element *v4l2element, - gulong frequency); + gint tunernum, + gulong frequency); gboolean gst_v4l2_signal_strength (GstV4l2Element *v4l2element, - gulong *signal_strength); + gint tunernum, + gulong *signal); /* attribute control */ -gboolean gst_v4l2_has_audio (GstV4l2Element *v4l2element); -gboolean gst_v4l2_get_attribute (GstElement *element, - const char *attribute, +gboolean gst_v4l2_get_attribute (GstV4l2Element *v4l2element, + int attribute, int *value); -gboolean gst_v4l2_set_attribute (GstElement *element, - const char *attribute, +gboolean gst_v4l2_set_attribute (GstV4l2Element *v4l2element, + int attribute, const int value); /* overlay */ -gboolean gst_v4l2_set_display (GstV4l2Element *v4l2element, - const gchar *display); +gboolean gst_v4l2_set_display (GstV4l2Element *v4l2element); gboolean gst_v4l2_set_window (GstElement *element, gint x, gint y, gint w, gint h, |