GNOME Bugzilla – Bug 745719
video-converter: doesn't work properly with YUY2 and right border
Last modified: 2015-03-06 11:55:39 UTC
Following conversions don't work properly. YUY2 -> YUY2 with right border, YVYU -> YVYU with right border, UYVY -> UYVY with right border. In all those cases border is placed placed at center. And if we add left border along with right border, sometimes it crashes. with left border = right border = 50 pixels, it crashed.
Created attachment 298678 [details] [review] correct right-border location for YUY2 YVYU UYVY r_border /= 2; in convert_fill_border takes the right-border to incorrect location. Patch attached, please review.
Would it be possible to provide a test that demonstrate the issue ?
I tried with videobox (with patch in #737401) added left and right borders. (videotestsrc ! video/x-raw,format={YUY2} ! videobox left=-50 right=-50 fill=red ! video/x-raw,format={YUY2} ! videoconvert ! ximagesink) I think Wim added a few tests for video-converter lib recently.
commit 6bd458abc1d5068e4f072b8c76e4d5f6fa5b5635 Author: Ravi Kiran K N <ravi.kiran@samsung.com> Date: Fri Mar 6 09:30:51 2015 +0530 video-converter: correct right-border location for YUY2, YVYU, UYVY Remove 'r_border /= 2' in convert_fill_border(). It doesn't take the right border to correct location. https://bugzilla.gnome.org/show_bug.cgi?id=745719