summaryrefslogtreecommitdiff
path: root/sys/v4l2/v4l2_calls.h
AgeCommit message (Collapse)AuthorFilesLines
2014-11-30v4l2: Remove last include to linux/videodev2.hNicolas Dufresne1-1/+1
We now use and update our internal copy so we no longer have to ifdef the entire code for features and defines that where added over the years. https://bugzilla.gnome.org/show_bug.cgi?id=740905
2014-05-08Implement V4l2 AllocatorNicolas Dufresne1-1/+3
This goal of this allocator is mainly to allow tracking the memory. Currently, when a buffer memory has been modified, the buffer and it's memory is disposed and lost until the stream is restarted.
2014-01-10v4l2object: Implement gst_v4l2_dup()Nicolas Dufresne1-0/+1
This will duplicated the FD from another object and copy over the probed result. https://bugzilla.gnome.org/show_bug.cgi?id=720568
2013-05-29v4l2: add a property for arbitrary v4l2 controlsMichael Olbrich1-0/+3
This makes it possible to set any controls that can be set with VIDIOC_S_CTRL. The controls are set when the property is set (if the device is open) and when the device is opened. https://bugzilla.gnome.org/show_bug.cgi?id=698837
2012-11-04Fix FSF addressTim-Philipp Müller1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2011-07-13v4l2: Move configuration of framerate to _set_formatWim Taymans1-8/+0
Move the configuration of the framerate to where we set the other format parameters. Remove hack to check if the device is active. Store streamparm in the device info. Use some macros to access the current device configuration. Remove some duplicate fields in src and sink and use the device configuration instead.
2011-03-03v4l2: remove unnecessary linux/videodev.h includeTim-Philipp Müller1-1/+0
Causes compilation issues with newer kernel headers where the old v4l interface has been removed. https://bugzilla.gnome.org/show_bug.cgi?id=643716
2010-12-29v4l2: cleanup get/set input/outputRob Clark1-2/+0
output devices should use get/set output, and in either case we should not print a warning message if the ioctl fails but the device does not claim to support the tuner interface
2009-08-04v4l2: Directly use GST_PTR_FORMAT for printing caps with the LOG_CAPS macroSebastian Dröge1-9/+1
2009-08-04v4l2: Remove some OMAP specific hacksSebastian Dröge1-29/+1
They require special build flags and are not useful in general.
2009-08-04v4l2: Add v4l2sink elementRob Clark1-9/+50
This also does the following changes: (1) pull the bufferpool code out into gstv4l2bufferpool.c, and make a bit more generic so it can be used both for v4l2src and v4l2sink (2) move some of the device probing/configuration/caps stuff into gstv4l2object.c so it does not have to be duplicated between v4l2src and v4l2sink Fixes bug #590280.
2008-11-04Optionally use libv4l to access v4l2 devices. Fixes bug #545033.Bastien Nocera1-0/+11
Original commit message from CVS: Patch by: Bastien Nocera <hadess at hadess dot net>, Hans de Goede <jwrdegoede at fedoraproject dot org> * configure.ac: * sys/v4l2/Makefile.am: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read): * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities), (gst_v4l2_fill_lists), (gst_v4l2_open), (gst_v4l2_close), (gst_v4l2_get_norm), (gst_v4l2_set_norm), (gst_v4l2_get_frequency), (gst_v4l2_set_frequency), (gst_v4l2_signal_strength), (gst_v4l2_get_attribute), (gst_v4l2_set_attribute), (gst_v4l2_get_input), (gst_v4l2_set_input): * sys/v4l2/v4l2_calls.h: * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize), (gst_v4l2_buffer_new), (gst_v4l2_buffer_pool_finalize), (gst_v4l2_buffer_pool_new), (gst_v4l2_buffer_pool_activate), (gst_v4l2src_fill_format_list), (gst_v4l2src_probe_caps_for_format_and_size), (gst_v4l2src_probe_caps_for_format), (gst_v4l2src_grab_frame), (gst_v4l2src_set_capture), (gst_v4l2src_capture_init), (gst_v4l2src_capture_start), (gst_v4l2src_capture_stop), (gst_v4l2src_get_nearest_size): Optionally use libv4l to access v4l2 devices. Fixes bug #545033.
2006-09-26sys/v4l2/Makefile.am: Fix makefile, list libs in stack order.Wim Taymans1-3/+3
Original commit message from CVS: * sys/v4l2/Makefile.am: Fix makefile, list libs in stack order. * sys/v4l2/gstv4l2colorbalance.c: * sys/v4l2/gstv4l2colorbalance.h: * sys/v4l2/gstv4l2object.c: (gst_v4l2_device_get_type), (gst_v4l2_object_install_properties_helper): * sys/v4l2/gstv4l2object.h: * sys/v4l2/gstv4l2src.c: (gst_v4l2src_get_read), (gst_v4l2src_get_mmap), (gst_v4l2src_create): * sys/v4l2/gstv4l2src.h: * sys/v4l2/gstv4l2tuner.h: * sys/v4l2/gstv4l2vidorient.h: * sys/v4l2/gstv4l2xoverlay.h: * sys/v4l2/v4l2_calls.h: * sys/v4l2/v4l2src_calls.h: Fix coding style: - Remove extern from functions. - Fix header indentation. Fix Flags, add defaults for properties. Remove unused enums. Fix TOO_LAZY in error messages.
2006-09-02sys/v4l2/: Cleanup error messages and unify header commentsStefan Kost1-2/+5
Original commit message from CVS: * sys/v4l2/gstv4l2.c: * sys/v4l2/gstv4l2colorbalance.c: * sys/v4l2/gstv4l2colorbalance.h: * sys/v4l2/gstv4l2object.c: * sys/v4l2/gstv4l2object.h: * sys/v4l2/gstv4l2src.c: * sys/v4l2/gstv4l2src.h: * sys/v4l2/gstv4l2tuner.c: * sys/v4l2/gstv4l2tuner.h: * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open): * sys/v4l2/gstv4l2xoverlay.h: * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities), (gst_v4l2_open): * sys/v4l2/v4l2_calls.h: * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_queue_frame), (gst_v4l2src_capture_init): * sys/v4l2/v4l2src_calls.h: Cleanup error messages and unify header comments
2006-05-11Changes proposed by Wingo in bug #338818.Edgard Lima1-37/+43
Original commit message from CVS: Changes proposed by Wingo in bug #338818.
2006-05-05Some changes proposed by wingo in bug #338818 (but not everything yet). ↵Martin Rubli1-4/+1
Patch from Martin Rubli to fix framerate dete... Original commit message from CVS: Some changes proposed by wingo in bug #338818 (but not everything yet). Patch from Martin Rubli to fix framerate detection.
2006-03-11V4L2 ported to 0.10.Edgard Lima1-54/+56
Original commit message from CVS: V4L2 ported to 0.10.
2005-12-06expand tabsThomas Vander Stichele1-51/+51
Original commit message from CVS: expand tabs
2004-10-25sys/: Remove client-side overlay handling, use the X-server v4l plugin for ↵Ronald S. Bultje1-10/+0
that. Nicer overlay, less code. Also make ... Original commit message from CVS: * sys/v4l/Makefile.am: * sys/v4l/gstv4l.c: (plugin_init): * sys/v4l/gstv4lelement.c: (gst_v4lelement_get_type), (gst_v4lelement_init), (gst_v4lelement_dispose), (gst_v4lelement_change_state): * sys/v4l/gstv4lelement.h: * sys/v4l/gstv4lxoverlay.c: (gst_v4l_xoverlay_open), (gst_v4l_xoverlay_close), (idle_refresh), (gst_v4l_xoverlay_set_xwindow_id): * sys/v4l/gstv4lxoverlay.h: * sys/v4l/v4l-overlay_calls.c: * sys/v4l/v4l_calls.h: * sys/v4l2/Makefile.am: * sys/v4l2/gstv4l2.c: (plugin_init): * sys/v4l2/gstv4l2element.c: (gst_v4l2element_get_type), (gst_v4l2element_init), (gst_v4l2element_dispose), (gst_v4l2element_change_state): * sys/v4l2/gstv4l2element.h: * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open), (gst_v4l2_xoverlay_close), (idle_refresh), (gst_v4l2_xoverlay_set_xwindow_id): * sys/v4l2/gstv4l2xoverlay.h: * sys/v4l2/v4l2-overlay_calls.c: * sys/v4l2/v4l2_calls.h: Remove client-side overlay handling, use the X-server v4l plugin for that. Nicer overlay, less code. Also make the plugin compileable without X (but then without overlay, obviously). Makes xwindowlistener obsolete, should we remove that?
2004-03-15*.h: Revert indentingJohan Dahlin1-23/+37
Original commit message from CVS: * *.h: Revert indenting
2004-03-14gst-indentThomas Vander Stichele1-37/+23
Original commit message from CVS: gst-indent
2004-02-02change NULL to (NULL) for GST_ELEMENT_ERRORThomas Vander Stichele1-5/+5
Original commit message from CVS: change NULL to (NULL) for GST_ELEMENT_ERROR Make sure errors end with "."
2004-01-29GST_ELEMENT_ERRORThomas Vander Stichele1-5/+5
Original commit message from CVS: GST_ELEMENT_ERROR
2004-01-21fix includes for distcheckThomas Vander Stichele1-1/+1
Original commit message from CVS: fix includes for distcheck
2004-01-19further element_error fixesThomas Vander Stichele1-36/+37
Original commit message from CVS: further element_error fixes
2003-10-10Some interface implementations for video4linux/video4linux2 plugins: a Tuner ↵Ronald S. Bultje1-13/+12
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!
2003-03-02Unification of the way to speak to v4l2 and v4l elements... Also fix a ↵Ronald S. Bultje1-11/+7
segfautl when doing gst-inspect v4l2src Original commit message from CVS: Unification of the way to speak to v4l2 and v4l elements... Also fix a segfautl when doing gst-inspect v4l2src
2002-11-13v4l plugins: add open/close signals v4l2 plugins: add open/close signals ↵Ronald S. Bultje1-11/+12
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
2002-09-28I'm such an idiot - these files should have been in a week agoRonald S. Bultje1-2/+1
Original commit message from CVS: I'm such an idiot - these files should have been in a week ago
2002-09-09this adds video4linux2 source and element plugins. The division in v4l2* ↵Ronald S. Bultje1-0/+135
plugins is the same as for v4l1 - i.e. an el... Original commit message from CVS: this adds video4linux2 source and element plugins. The division in v4l2* plugins is the same as for v4l1 - i.e. an element, a src and a sink, but there won't be separate encoding plugins (like v4lmjpegsrc) - all functionality is (thanks to video4linux2) integrated in one plugin: v4l2src. v4l2sink is still to be done, that'll come later.