From b4e5796a04dd2ba7c176024d9bf5d51dd3ee917b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 Sep 2007 16:40:05 +0000 Subject: 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. --- ChangeLog | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 2b9a4ba7..99866787 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,25 @@ +2007-09-04 Wim Taymans + + * 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. + 2007-09-04 Stefan Kost * gst/wavparse/gstwavparse.c: -- cgit