1. 12 Jul, 2011 2 commits
    • Wim Taymans's avatar
      v4l2: Let the bufferpool own the V4l2Object · 0dcf0aeb
      Wim Taymans authored
      Keep track of the currently configured format and setting in the
      v4l2object.
      Pass the v4l2object to the bufferpool constructor so that the bufferpool can
      know everything about the currently configured settings. This also allows us
      to remove some awkward code.
      0dcf0aeb
    • Wim Taymans's avatar
      v4l: pass the bytesperline around · 59b86d25
      Wim Taymans authored
      When setting a format, return the bytesperline to the caller so that it can be
      used to allocate buffers.
      59b86d25
  2. 24 May, 2011 1 commit
    • Rob Clark's avatar
      v4l2: add norm property · 9c958511
      Rob Clark authored
      Based on a patch by Guennadi Liakhovetski.
      
      v2: updates because I forgot to add GstTuner interface to v4l2sink
      v3: update to add all possible values to norm enum
      9c958511
  3. 02 Jan, 2011 1 commit
  4. 29 Dec, 2010 2 commits
  5. 10 Sep, 2010 1 commit
  6. 21 Mar, 2010 1 commit
  7. 09 Oct, 2009 1 commit
    • Pau Garcia i Quiles's avatar
      v4l2: Include sys/ioctl.h for the V4L ioctl requests · f1043558
      Pau Garcia i Quiles authored
      Old videodevice2.h kernel headers used ioctl stuff without
      including ioctl.h, making compilation fail on older systems.
      
      Note: Including ioctl.h here is only a workaround for old kernel
      headers, should be removed once everybody has new enough headers.
      
      Fixes bug #597867.
      f1043558
  8. 04 Aug, 2009 1 commit
    • 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
  9. 19 Jul, 2009 1 commit
  10. 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
  11. 03 Oct, 2008 1 commit
    • Wim Taymans's avatar
      sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a... · 300da165
      Wim Taymans authored
      sys/v4l2/gstv4l2object.h: Getting the Class from an instance is not just a matter of casting it to the class struct b...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.h:
      Getting the Class from an instance is not just a matter of casting it to
      the class struct but it involves calling G_OBJECT_GET_CLASS on the
      instance. Fixes #549784.
      300da165
  12. 26 Mar, 2008 1 commit
  13. 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
  14. 30 May, 2007 2 commits
    • Andy Wingo Wingo's avatar
      sys/v4l2/gstv4l2object.*: Revert some unintended changes. · 70615818
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2007-05-30  Andy Wingo  <wingo@pobox.com>
      
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2object.c (gst_v4l2_object_new): Revert some
      unintended changes.
      70615818
    • Andy Wingo Wingo's avatar
      sys/v4l2/v4l2src_calls.*: Store the format list in the order that the driver gives it to us. · 3b5f9882
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2007-05-30  Andy Wingo  <wingo@pobox.com>
      
      * sys/v4l2/v4l2src_calls.h:
      * sys/v4l2/v4l2src_calls.c (gst_v4l2src_fill_format_list): Store
      the format list in the order that the driver gives it to us.
      (gst_v4l2src_probe_caps_for_format_and_size)
      (gst_v4l2src_probe_caps_for_format): New functions, fill GstCaps
      based on the capabilities of the device.
      (gst_v4l2src_grab_frame): Update for object variable renaming.
      (gst_v4l2src_set_capture): Update to be strict in its parameters,
      as in the set_caps below.
      (gst_v4l2src_capture_init): Update for object variable renaming,
      and reflow.
      (gst_v4l2src_capture_start, gst_v4l2src_capture_stop)
      (gst_v4l2src_capture_deinit): Update for object variable renaming.
      (gst_v4l2src_update_fps, gst_v4l2src_set_fps)
      (gst_v4l2src_get_fps): Remove; these functions don't have much
      meaning outside of an atomic set_caps method.
      (gst_v4l2src_buffer_new): Don't set buffer duration, it is not
      known.
      
      * sys/v4l2/gstv4l2tuner.c (gst_v4l2_tuner_set_channel): Remove
      call to update_fps; not sure about this change.
      (gst_v4l2_tuner_set_norm): Work around the fact that for the
      moment we don't have an update_fps_func.
      
      * sys/v4l2/gstv4l2src.h (struct _GstV4l2Src): Don't put v4l2
      structures in the object, just store what we need. Do store the
      probed caps of the device. Don't store the current frame rate.
      
      * sys/v4l2/gstv4l2src.c (gst_v4l2src_init): Remove the
      update_fps_function, for now. Update for new object variable
      naming.
      (gst_v4l2src_set_property, gst_v4l2src_get_property): Update for
      new object variable naming.
      (gst_v4l2src_v4l2fourcc_to_structure): Rename from ..._to_caps.
      (gst_v4l2_structure_to_v4l2fourcc): Rename from ...caps_to_....
      (gst_v4l2src_get_caps): Rework to probe the device for supported
      frame sizes and frame rates.
      (gst_v4l2src_set_caps): Rework to be strict in the given
      parameters: if someone asks us to have a certain size and rate,
      that is what we configure.
      (gst_v4l2src_get_read): Update for object variable naming. Don't
      leak buffers on short reads.
      (gst_v4l2src_get_mmap): Update for object variable naming, and add
      comments.
      (gst_v4l2src_create): Update for object variable naming.
      3b5f9882
  15. 04 Mar, 2007 1 commit
    • Jan Schmidt's avatar
      Fix a bunch of leaks shown by the newly-added states test. · de1357a4
      Jan Schmidt authored
      Original commit message from CVS:
      * ext/flac/gstflacenc.c: (gst_flac_enc_finalize):
      * ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_class_init),
      (gst_gconf_audio_sink_dispose), (gst_gconf_audio_sink_finalize):
      * ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_base_init),
      (gst_gconf_audio_src_class_init), (gst_gconf_audio_src_dispose),
      (gst_gconf_audio_src_finalize), (do_toggle_element):
      * ext/gconf/gstgconfvideosink.c: (gst_gconf_video_sink_base_init),
      (gst_gconf_video_sink_class_init), (gst_gconf_video_sink_finalize),
      (do_toggle_element):
      * ext/gconf/gstgconfvideosrc.c: (gst_gconf_video_src_base_init),
      (gst_gconf_video_src_class_init), (gst_gconf_video_src_dispose),
      (gst_gconf_video_src_finalize), (do_toggle_element):
      * ext/gconf/gstswitchsink.c: (gst_switch_sink_class_init),
      (gst_switch_sink_reset), (gst_switch_sink_set_child):
      * ext/hal/gsthalaudiosink.c: (gst_hal_audio_sink_base_init):
      * ext/hal/gsthalaudiosrc.c: (gst_hal_audio_src_base_init):
      * ext/shout2/gstshout2.c: (gst_shout2send_class_init),
      (gst_shout2send_init), (gst_shout2send_finalize):
      * gst/debug/testplugin.c: (gst_test_class_init),
      (gst_test_finalize):
      * gst/flx/gstflxdec.c: (gst_flxdec_class_init),
      (gst_flxdec_dispose):
      * gst/multipart/multipartmux.c: (gst_multipart_mux_finalize):
      * gst/rtp/gstrtpmp4gpay.c: (gst_rtp_mp4g_pay_finalize):
      * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_init),
      (gst_rtspsrc_finalize):
      * gst/rtsp/rtspextwms.c: (rtsp_ext_wms_free_context):
      * gst/rtsp/rtspextwms.h:
      * gst/smpte/gstsmpte.c: (gst_smpte_class_init),
      (gst_smpte_finalize):
      * gst/udp/gstmultiudpsink.c: (gst_multiudpsink_finalize):
      * gst/udp/gstudpsink.c: (gst_udpsink_class_init),
      (gst_udpsink_finalize):
      * gst/wavparse/gstwavparse.c: (gst_wavparse_dispose),
      (gst_wavparse_sink_activate):
      * sys/oss/gstosssink.c: (gst_oss_sink_finalise):
      * sys/oss/gstosssrc.c: (gst_oss_src_class_init),
      (gst_oss_src_finalize):
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_object_destroy):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_finalize):
      * sys/ximage/gstximagesrc.c: (gst_ximage_src_ximage_get):
      Fix a bunch of leaks shown by the newly-added states test.
      de1357a4
  16. 17 Jan, 2007 1 commit
    • Stefan Kost's avatar
      sys/v4l2/: Fix EIO handing when capturing. Add new property to specify the... · fdd167ae
      Stefan Kost authored
      sys/v4l2/: Fix EIO handing when capturing. Add new property to specify the number of buffers to enque (and remove the...
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      (gst_v4l2_object_install_properties_helper),
      (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_init), (gst_v4l2src_set_property),
      (gst_v4l2src_get_property), (gst_v4l2src_set_caps):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_fill_format_list),
      (gst_v4l2src_grab_frame), (gst_v4l2src_set_capture),
      (gst_v4l2src_capture_init), (gst_v4l2src_capture_start),
      (gst_v4l2src_capture_deinit):
      Fix EIO handing when capturing. Add new property to specify the number of
      buffers to enque (and remove the borked num-buffers usage).
      fdd167ae
  17. 27 Sep, 2006 1 commit
    • Wim Taymans's avatar
      sys/v4l2/: Renamed some properties to match the tuner interface naming. · d8769c7d
      Wim Taymans authored
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c:
      (gst_v4l2_object_install_properties_helper), (gst_v4l2_object_new),
      (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_create):
      * sys/v4l2/gstv4l2tuner.c: (gst_v4l2_tuner_contains_channel),
      (gst_v4l2_tuner_list_channels),
      (gst_v4l2_tuner_set_channel_and_notify),
      (gst_v4l2_tuner_get_channel), (gst_v4l2_tuner_contains_norm),
      (gst_v4l2_tuner_list_norms), (gst_v4l2_tuner_set_norm_and_notify),
      (gst_v4l2_tuner_get_norm):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (gst_v4l2_fill_lists), (gst_v4l2_empty_lists):
      * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_get_fps):
      Renamed some properties to match the tuner interface naming.
      d8769c7d
  18. 26 Sep, 2006 2 commits
    • Wim Taymans's avatar
      sys/v4l2/Makefile.am: Fix makefile, list libs in stack order. · 27bde5b9
      Wim Taymans authored
      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.
      27bde5b9
    • Wim Taymans's avatar
      sys/v4l2/: Fix pass at code cleanups, move errors cases out of the normal flow... · d9db447d
      Wim Taymans authored
      sys/v4l2/: Fix pass at code cleanups, move errors cases out of the normal flow for additional code clarity.
      
      Original commit message from CVS:
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices),
      (gst_v4l2_probe_needs_probe),
      (gst_v4l2_object_install_properties_helper), (gst_v4l2_object_new),
      (gst_v4l2_object_destroy), (gst_v4l2_object_set_property_helper),
      (gst_v4l2_object_get_property_helper), (gst_v4l2_set_defaults),
      (gst_v4l2_object_start), (gst_v4l2_object_stop):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_class_init),
      (gst_v4l2src_init), (gst_v4l2src_dispose),
      (gst_v4l2src_set_property), (gst_v4l2src_get_property),
      (gst_v4l2src_fixate), (gst_v4l2src_get_caps),
      (gst_v4l2src_set_caps), (gst_v4l2src_get_read),
      (gst_v4l2src_get_mmap), (gst_v4l2src_create):
      * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
      (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/v4l2src_calls.c: (gst_v4l2src_fill_format_list),
      (gst_v4l2src_queue_frame), (gst_v4l2src_grab_frame),
      (gst_v4l2src_get_capture), (gst_v4l2src_set_capture),
      (gst_v4l2src_capture_init), (gst_v4l2src_capture_start),
      (gst_v4l2src_capture_stop), (gst_v4l2src_capture_deinit),
      (gst_v4l2src_get_size_limits), (gst_v4l2src_set_fps),
      (gst_v4l2src_get_fps), (gst_v4l2src_buffer_finalize),
      (gst_v4l2src_buffer_new):
      Fix pass at code cleanups, move errors cases out of the normal
      flow for additional code clarity.
      d9db447d
  19. 02 Sep, 2006 1 commit
    • Stefan Kost's avatar
      sys/v4l2/: Cleanup error messages and unify header comments · 074e7b0d
      Stefan Kost authored
      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
      074e7b0d
  20. 19 May, 2006 1 commit
  21. 18 May, 2006 1 commit
    • Stefan Kost's avatar
      configure.ac: Check for X11 · 34315d2c
      Stefan Kost authored
      Original commit message from CVS:
      * configure.ac:
      Check for X11
      * sys/v4l2/gstv4l2object.c: (gst_v4l2_class_probe_devices):
      * sys/v4l2/gstv4l2object.h:
      * sys/v4l2/gstv4l2src.c: (gst_v4l2src_iface_supported):
      * sys/v4l2/gstv4l2src.h:
      * sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open):
      * sys/v4l2/gstv4l2xoverlay.h:
      Code cleanups, fix debug macros
      34315d2c
  22. 11 May, 2006 1 commit