exeldro / obs-shaderfilter

OBS Studio filter for applying an arbitrary shader to a source.
GNU General Public License v2.0
377 stars 39 forks source link

Adding extra pixels on left or right of image source containing a dithered image adds banding. #46

Open sonneveld opened 6 months ago

sonneveld commented 6 months ago

With an image that contains dithering, if the scaler includes extra pixels on left or right, you can see noticeable banding. This is with with default shader and no extra scaling. Does this suggest that scaling occurs somewhere when adding extra pixels?

When taking screenshots, I did notice that taking screenshots of the source (instead of the scene) lead to screenshots with the same dimensions of 640x400, even though OBS says that it is 660x400 in the transform window after adding extra pixels.

Using OBS 29.1.3 and obs-shaderfilter 2.2.2 on Windows 10 (haven't had a chance to upgrade to newer OBS yet sorry, hopefully it's unrelated)

To test: Add this image as a source with no scaling: qm_001

Configure shader with extra pixels on left and right as so: image

OBS scene screenshot without shader: Screenshot 2024-03-04 01-11-14

OBS scene screenshot with shader: Screenshot 2024-03-04 01-11-27