https://bugzilla.gnome.org/show_bug.cgi?id=685305 Since GStreamer 1.0 we sometimes allocate a larger XV image for the video with padding on all four sides but then call Xv(Shm)PutImage() to render a part of this image. With intel drivers this (depending on resolutions) sometimes causes a 1-2 pixel wide green line at the right side or bottom. The resolutions in question or usually perfect multiples of 16, e.g. 672x416 is allocated and 640x360 (16 pixel padding at left/right/top, 40 pixel padding at bottom) is rendered. When allocating and rendering 672x416 or 640x360 directly (i.e. no offsets or anything) there are no green lines anywhere.
Forgot to mention that this (at least) happens with the I420 color format
Can I have an Xorg.log or two from the people affected by this? Overlay or textured video?
Installed gstreamer1.0, and I can reproduce. Thanks.
The green is an artifact of you padding with zero and the hardware sampling those border pixels. Step 1: stop lying.
This will hide the issue for unscaled videos: commit 9001263b32efde1361555432914d9ac3ee780511 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Dec 12 12:03:40 2012 +0000 sna/gen3+: Use nearest for unscaled videos If the output is unscaled, then we do not require pixel interpolation (and planar formats are exactly subsampled). References: https://bugs.freedesktop.org/show_bug.cgi?id=58185 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> But you need to be more careful with your source data.
(In reply to comment #4) > The green is an artifact of you padding with zero and the hardware sampling > those border pixels. Step 1: stop lying. Step 1: don't read pixels outside of the given region > But you need to be more careful with your source data. I suspect there is more going on. Filling the complete image with the same color also creates a small line when cropping so I don't know where it is getting these other colors from.
(In reply to comment #6) > (In reply to comment #4) > > The green is an artifact of you padding with zero and the hardware sampling > > those border pixels. Step 1: stop lying. > > Step 1: don't read pixels outside of the given region Ah, but it is not. You've included the pad pixels in your source region. > > But you need to be more careful with your source data. > > I suspect there is more going on. Filling the complete image with the same > color also creates a small line when cropping so I don't know where it is > getting these other colors from. What do you mean by complete image?
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #4) > > > The green is an artifact of you padding with zero and the hardware sampling > > > those border pixels. Step 1: stop lying. > > > > Step 1: don't read pixels outside of the given region > > Ah, but it is not. You've included the pad pixels in your source region. What do you mean? The source region only contains the part that should be rendered, i.e. not the padding. > > > But you need to be more careful with your source data. > > > > I suspect there is more going on. Filling the complete image with the same > > color also creates a small line when cropping so I don't know where it is > > getting these other colors from. > > What do you mean by complete image? The complete XvImage
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.