GNOME Bugzilla – Bug 745109
gloverlay: image is upside down
Last modified: 2015-03-03 20:27:06 UTC
Created attachment 297799 [details] Screenshot See attached screenshot, on the left is the video playing with the overlay, on the right is the original image. I set only the "location" property on the gloverlay element. The image is upside down, and its colors doesn't seems correct.
Can be reproduced with: gst-launch-1.0 playbin uri=file://big_buck_bunny_720p_h264.mp4 video_sink="gloverlay location=\"gstreamer.jpeg\" ! glimagesink"
I was using the same image as in bug #745185. So it's surely a dup. *** This bug has been marked as a duplicate of bug 745185 ***
Reopening, all jpeg files I've tested are upside down actually. It works fine with png files though. I could still be related to bug #745185, though.
commit eff94f929de3cb22b3dc0a24e39dcad72b369390 Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Tue Mar 3 15:22:38 2015 -0500 gloverlay: Fix upside down and miss-aligned JPEG LibJPEG uses macroblock of 8x8 sample. In this element we use RGB and Y444, two 24bit formats that are stored in 32bit pixels. This mean we have 32x32 bytes macroblocks. For this reason, we need to allocate our buffer slightly larger. We also need to pass the line pointer in the right order, otherwise the image endup upside-down. https://bugzilla.gnome.org/show_bug.cgi?id=745109 Take note that in case of libjpeg error, the element abort the process. I think this is why jpegdec is using long jump.