1. 22 Jun, 2010 1 commit
  2. 17 Mar, 2010 1 commit
  3. 25 Jan, 2010 3 commits
  4. 11 Sep, 2009 1 commit
  5. 07 Sep, 2009 1 commit
  6. 04 Aug, 2009 2 commits
    • Rob Clark's avatar
      v4l2sink: change where buffers get dequeued · 99e2ac12
      Rob Clark authored
      It seems to cause strange occasional high latencies (almost 200ms) when dequeuing buffers from _buffer_alloc().  It is simpler and seems to work much better to dqbuf from the same thread that is queuing the next buffer.
      99e2ac12
    • Rob Clark's avatar
      v4l2: Add v4l2sink element · f19cfbda
      Rob Clark authored
      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.
      f19cfbda
  7. 19 Jul, 2009 1 commit
  8. 25 Mar, 2009 2 commits
  9. 15 Mar, 2009 1 commit
  10. 06 Mar, 2009 1 commit
  11. 01 Mar, 2009 1 commit
    • Sjoerd Simons's avatar
      Wait for a frame to become available before capturing it · b6755a70
      Sjoerd Simons authored
      Use GstPoll to wait for the fd of the video device to become readable before
      trying to capture a frame. This speeds up stopping v4l2src a lot as it no
      longer has to wait for the next frame, especially when capturing with low
      framerates or when the video device just never generates a frame (which seems a
      common issue for uvcvideo devices)
      
      Fixes bug #563574.
      b6755a70
  12. 23 Feb, 2009 1 commit
  13. 17 Nov, 2008 1 commit
    • Tim-Philipp Müller's avatar
      sys/v4l2/v4l2src_calls.c: Turns out we don't always get the frame sizes in a... · 2e0d8e8b
      Tim-Philipp Müller authored
      sys/v4l2/v4l2src_calls.c: Turns out we don't always get the frame sizes in a predefined order from lowest to highest ...
      
      Original commit message from CVS:
      * sys/v4l2/v4l2src_calls.c:
      (gst_v4l2src_probe_caps_for_format_and_size), (sort_by_frame_size),
      (gst_v4l2src_probe_caps_for_format):
      Turns out we don't always get the frame sizes in a predefined
      order from lowest to highest resolution, so let's just sort the
      list by frame size once we've queried the possible resolutions
      rather than assume any particular order. Fixes probed caps for
      the camera in my HP2133 mini notebook and makes v4l2src default
      to a decent size.
      2e0d8e8b
  14. 04 Nov, 2008 1 commit
    • Bastien Nocera's avatar
      Optionally use libv4l to access v4l2 devices. Fixes bug #545033. · a50de826
      Bastien Nocera authored
      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.
      a50de826
  15. 31 Oct, 2008 1 commit
  16. 26 Aug, 2008 1 commit
    • Stefan Kost's avatar
      sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty _init().... · 2ea5c052
      Stefan Kost authored
      sys/v4l2/: Fix memory leaks. Small code cleanups : No need for empty _init(). No need to memset instance structures. ...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      * sys/v4l2/gstv4l2src.c:
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/v4l2_calls.c:
      * sys/v4l2/v4l2src_calls.c:
      Fix memory leaks. Small code cleanups : No need for empty _init(). No
      need to memset instance structures. Some more FIXME's.
      2ea5c052
  17. 21 Aug, 2008 1 commit
    • Wim Taymans's avatar
      sys/v4l2/gstv4l2src.c: Add S910 and PWC formats with a low priority. · 713e8000
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_v4l2fourcc_to_structure),
      (gst_v4l2_get_caps_info):
      Add S910 and PWC formats with a low priority.
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_format_get_rank),
      (gst_v4l2src_probe_caps_for_format):
      Add more debugging.
      713e8000
  18. 13 Aug, 2008 1 commit
    • Edward Hervey's avatar
      sys/v4l2/gstv4l2src.c: Properly set the maximum latency value, in the same way... · 5cf61c6a
      Edward Hervey authored
      sys/v4l2/gstv4l2src.c: Properly set the maximum latency value, in the same way it is done in v4lsrc.
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query):
      Properly set the maximum latency value, in the same way it is done in
      v4lsrc.
      * sys/v4l2/v4l2src_calls.c:
      Simplify fraction equality check, no need to use GValues for this.
      5cf61c6a
  19. 12 Aug, 2008 1 commit
    • Edward Hervey's avatar
      sys/v4l2/gstv4l2src.c: Add warning messages stating exactly why the latency query failed. · 27e20ead
      Edward Hervey authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_query):
      Add warning messages stating exactly why the latency query failed.
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture):
      In some cases, the negotiated framerate might be the default one which
      is already set internally. But we still need to mark it down in fps_n
      and fps_d so that the latency query can happen properly.
      27e20ead
  20. 07 Aug, 2008 1 commit
    • Jan Schmidt's avatar
      sys/v4l2/v4l2src_calls.c: When outputting a pad template range for the size,... · ab01993d
      Jan Schmidt authored
      sys/v4l2/v4l2src_calls.c: When outputting a pad template range for the size, include a framerate range too, to avoid ...
      
      Original commit message from CVS:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
      When outputting a pad template range for the size, include a framerate
      range too, to avoid 'not a real subset of template caps' errors.
      ab01993d
  21. 08 Jul, 2008 1 commit
    • Sebastian Dröge's avatar
      Don't use declarations after statements and variable length arrays. · 92ed8f6a
      Sebastian Dröge authored
      Original commit message from CVS:
      * ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri):
      * ext/speex/gstspeexenc.c: (gst_speex_enc_sink_getcaps):
      * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_set_wp_config):
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_fixate):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
      * tests/examples/equalizer/demo.c: (message_handler):
      * tests/examples/spectrum/demo-audiotest.c: (message_handler):
      * tests/examples/spectrum/demo-osssrc.c: (message_handler):
      Don't use declarations after statements and variable length arrays.
      92ed8f6a
  22. 07 Jul, 2008 1 commit
    • Daniel Drake's avatar
      sys/v4l2/v4l2src_calls.c: Try progressive video if interlaced fails. Fixes bug... · 23078b43
      Daniel Drake authored
      sys/v4l2/v4l2src_calls.c: Try progressive video if interlaced fails. Fixes bug #541956 and the usage of v4l2src on OLPC.
      
      Original commit message from CVS:
      Patch by: Daniel Drake <dsd at gentoo dot org>
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture),
      (gst_v4l2src_get_nearest_size):
      Try progressive video if interlaced fails. Fixes bug #541956
      and the usage of v4l2src on OLPC.
      23078b43
  23. 26 May, 2008 2 commits
    • William M. Brack's avatar
      sys/v4l2/v4l2src_calls.c: Fix potential caps leak. · 61597d99
      William M. Brack authored
      Original commit message from CVS:
      Patch by: William M. Brack <wbrack at mmm dot com dot hk>
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
      Fix potential caps leak.
      If we can't get the framerate with an ioctl, try to get it with the
      current norm. Fixes #520092.
      61597d99
    • William M. Brack's avatar
      sys/v4l2/v4l2src_calls.c: If we fail to get the frame intervals, simply don't... · dfe8d582
      William M. Brack authored
      sys/v4l2/v4l2src_calls.c: If we fail to get the frame intervals, simply don't touch the framerates on the template ca...
      
      Original commit message from CVS:
      Patch by: William M. Brack <wbrack at mmm dot com dot hk>
      * sys/v4l2/v4l2src_calls.c:
      (gst_v4l2src_probe_caps_for_format_and_size):
      If we fail to get the frame intervals, simply don't touch the framerates
      on the template caps instead of discarding the format. See #520092.
      dfe8d582
  24. 25 Mar, 2008 2 commits
    • Tim-Philipp Müller's avatar
      sys/v4l2/v4l2src_calls.c: Remove superfluous DEBUG macro. · d31a648d
      Tim-Philipp Müller authored
      Original commit message from CVS:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_set_capture):
      Remove superfluous DEBUG macro.
      d31a648d
    • William M. Brack's avatar
      sys/v4l2/v4l2src_calls.c: Check whether the device supports setting the... · e605a94e
      William M. Brack authored
      sys/v4l2/v4l2src_calls.c: Check whether the device supports setting the framerate before trying to set it and then po...
      
      Original commit message from CVS:
      Based on patch by: William M. Brack <wbrack at mmm com hk>
      * sys/v4l2/v4l2src_calls.c: (fractions_are_equal),
      (gst_v4l2src_set_capture):
      Check whether the device supports setting the framerate before
      trying to set it and then posting a warning or error if it doesn't
      work (#516649, #520092). Also compare fractions more correctly.
      e605a94e
  25. 17 Mar, 2008 1 commit
    • William M. Brack's avatar
      sys/v4l2/v4l2src_calls.c: Make sure the probed frame sizes are reversed in the... · a6019fc0
      William M. Brack authored
      sys/v4l2/v4l2src_calls.c: Make sure the probed frame sizes are reversed in the resulting caps also when using V4L2_FR...
      
      Original commit message from CVS:
      Patch by: William M. Brack <wbrack at mmm com hk>
      * sys/v4l2/v4l2src_calls.c:
      (gst_v4l2src_probe_caps_for_format_and_size),
      (gst_v4l2src_probe_caps_for_format):
      Make sure the probed frame sizes are reversed in the resulting
      caps also when using V4L2_FRMSIZE_STEPWISE (so they end up
      highest resolution first); also remove unused variable.
      (Partly fixes #520092)
      a6019fc0
  26. 12 Feb, 2008 1 commit
  27. 31 Jan, 2008 1 commit
    • Jan Schmidt's avatar
      sys/v4l2/v4l2_calls.c: Treat ENOTTY (driver does not implement ioctl) the same as · 38baf136
      Jan Schmidt authored
      Original commit message from CVS:
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists):
      Treat ENOTTY (driver does not implement ioctl) the same as
      EINVAL since it implies there are no available standards.
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format),
      (gst_v4l2src_get_nearest_size):
      Replace gst_v4l2src_get_size_limits with 2 calls to new function
      gst_v4l2src_get_nearest_size, and get it to use VIDIOC_S_FMT to
      probe if the driver does not support VIDIOC_TRY_FMT for whatever
      reason, and if we aren't yet actively capturing.
      * sys/v4l2/v4l2src_calls.h:
      Remove replaced function declaration.
      38baf136
  28. 21 Jan, 2008 1 commit
    • Brian Cameron's avatar
      configure.ac: Detect video4linux headers on Solaris too. · a973a4f1
      Brian Cameron authored
      Original commit message from CVS:
      * configure.ac:
      Detect video4linux headers on Solaris too.
      * sys/v4l2/gstv4l2colorbalance.h:
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/v4l2_calls.c:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize),
      (gst_v4l2_buffer_new):
      Make v4l2 build on Solaris.
      Patch by: Brian Cameron  <brian.cameron at sun dot com>
      Fixes: #510505
      a973a4f1
  29. 11 Dec, 2007 1 commit
    • Tim-Philipp Müller's avatar
      sys/v4l2/: Init some structs to zero before we pass them to ioctl, which... · 8d0960ec
      Tim-Philipp Müller authored
      sys/v4l2/: Init some structs to zero before we pass them to ioctl, which avoids valgrind warnings.  Also fix a small ...
      
      Original commit message from CVS:
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_fill_format_list):
      Init some structs to zero before we pass them to ioctl, which
      avoids valgrind warnings.  Also fix a small memory leak.
      8d0960ec
  30. 15 Nov, 2007 1 commit
    • Edgard Lima's avatar
      Always copy buffers by default (handle safer with bugged drivers) and added a... · 66ca1b22
      Edgard Lima authored
      Always copy buffers by default (handle safer with bugged drivers) and added a property to make it possible to use mma...
      
      Original commit message from CVS:
      Always copy buffers by default (handle safer with bugged drivers) and added a property to make it possible to use mmap effectively (no copy if possible) when application wants to. Fixes: #480557.
      66ca1b22
  31. 13 Nov, 2007 1 commit
    • Tim-Philipp Müller's avatar
      sys/v4l2/v4l2src_calls.c: but the corresponding ioctl() call fails even though... · a597c1d4
      Tim-Philipp Müller authored
      sys/v4l2/v4l2src_calls.c: but the corresponding ioctl() call fails even though the driver claims to support this form...
      
      Original commit message from CVS:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_probe_caps_for_format):
      If VIDIOC_ENUM_FRAMESIZES is defined (= recent kernel), but the
      corresponding ioctl() call fails even though the driver claims to
      support this format, just fall back to the pre-2.6.19 kernel
      routine that creates caps with suitable height and width ranges
      (see #448278).
      a597c1d4
  32. 26 Oct, 2007 1 commit
  33. 22 Oct, 2007 1 commit
    • Edgard Lima's avatar
      sys/v4l2/v4l2src_calls.c: Fixes "v4l2src ! queue ! xvimagesink". The queue ask... · 7ec35b11
      Edgard Lima authored
      sys/v4l2/v4l2src_calls.c: Fixes "v4l2src ! queue ! xvimagesink". The queue ask for buffer too early. It is temporary ...
      
      Original commit message from CVS:
      
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_grab_frame):
      Fixes "v4l2src ! queue ! xvimagesink". The queue ask for buffer too
      early. It is temporary until we find something better.
      7ec35b11
  34. 18 Oct, 2007 1 commit
    • Wim Taymans's avatar
      sys/v4l2/v4l2src_calls.c: Add some more debug info. Generate an error when we... · 279fe5fa
      Wim Taymans authored
      sys/v4l2/v4l2src_calls.c: Add some more debug info. Generate an error when we run out of buffers for some reason. See...
      
      Original commit message from CVS:
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_finalize),
      (gst_v4l2src_grab_frame):
      Add some more debug info. Generate an error when we run out of buffers
      for some reason. See #480557.
      279fe5fa