Skip to content
  • Wim Taymans's avatar
    sys/v4l2/gstv4l2src.c: Restructure the setcaps function so that we can also... · b4e5796a
    Wim Taymans authored
    sys/v4l2/gstv4l2src.c: Restructure the setcaps function so that we can also compute the expected GStreamer output siz...
    
    Original commit message from CVS:
    * sys/v4l2/gstv4l2src.c: (gst_v4l2_get_caps_info),
    (gst_v4l2src_set_caps), (gst_v4l2src_get_mmap):
    Restructure the setcaps function so that we can also compute the
    expected GStreamer output size of the video frames.
    Set frame_byte_size correctly so that read-based devices have a chance
    of working correctly.
    When grabbing a frame, discard frames that are not of the expected size.
    Some cameras don't output the right framesize for the first buffer.
    Try only a couple of times to get a valid frame, else error out.
    * sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
    (gst_v4l2_fill_lists), (gst_v4l2_get_input):
    Add some more debug info when scanning the device.
    * sys/v4l2/v4l2src_calls.c: (gst_v4l2_buffer_new),
    (gst_v4l2_buffer_pool_new), (gst_v4l2_buffer_pool_activate),
    (gst_v4l2src_fill_format_list), (gst_v4l2src_grab_frame),
    (gst_v4l2src_set_capture), (gst_v4l2src_capture_init):
    Add some more debug info when dequeing a frame.
    b4e5796a
To find the state of this project's repository at the time of any of these versions, check out the tags.