After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726195 - v4l2src was marking known interlaced buffers as progressive
v4l2src was marking known interlaced buffers as progressive
Status: RESOLVED DUPLICATE of bug 737603
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-12 19:12 UTC by Simon Farnsworth
Modified: 2014-12-08 23:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] v4l2: Clean up interlace flagging (2.36 KB, patch)
2014-03-12 19:12 UTC, Simon Farnsworth
rejected Details | Review

Description Simon Farnsworth 2014-03-12 19:12:08 UTC
v4l2src silently marks buffers as progressive if we don't know the field order.

The attached patch changes this to complain loudly if you give us an unknown field order, and to mark interleaved buffers as interlaced.
Comment 1 Simon Farnsworth 2014-03-12 19:12:36 UTC
Created attachment 271640 [details] [review]
[PATCH] v4l2: Clean up interlace flagging


This is getting messy, and it's hard to see when your capture device's
interlace type is unhandled. Replace chained ifs with a switch statement,
and add an ERROR for unknown types.

Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
---
 sys/v4l2/gstv4l2bufferpool.c | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)
Comment 2 Nicolas Dufresne (ndufresne) 2014-03-12 19:55:48 UTC
Review of attachment 271640 [details] [review]:

::: sys/v4l2/gstv4l2bufferpool.c
@@ +988,3 @@
+      GST_BUFFER_FLAG_UNSET (outbuf, GST_VIDEO_BUFFER_FLAG_INTERLACED);
+      GST_BUFFER_FLAG_UNSET (outbuf, GST_VIDEO_BUFFER_FLAG_TFF);
+      break;

Maybe we should have a look at the configure format, and setup some sensible values. E.g. if the device is configured INTERLACED_TB, we already know what the flag should be, no need to check the buffer flags.
Comment 3 Nicolas Dufresne (ndufresne) 2014-06-16 14:36:50 UTC
Ping ?
Comment 4 Simon Farnsworth 2014-06-16 14:39:51 UTC
I'm hoping to have time to look into this and 726194 in the near future; if I remain busy, I'll see if I can get this work outsourced to one of the GStreamer consultancies we've used before.
Comment 5 Sebastian Dröge (slomo) 2014-09-30 08:42:53 UTC
*** Bug 737603 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas Dufresne (ndufresne) 2014-12-08 23:31:41 UTC
The patch in 737603 seems better.
Comment 7 Nicolas Dufresne (ndufresne) 2014-12-08 23:32:14 UTC

*** This bug has been marked as a duplicate of bug 737603 ***