View Single Post
Old 11-18-2018, 05:24 PM   #26
wwwmaze
Human being with feelings
 
Join Date: Oct 2009
Posts: 99
Default

Hey all,

I went and implemented this Gaussian filter (3rd-order recursive) approximation: https://www.researchgate.net/publica...aussian_filter

Alas it's again working in 'RGBA' colorspace as I still have no clue about 'YV12' and can't fathom what Justin is doing with these YV12 vars in gfx_evalrect().
So it's again a bit CPU intensive.

The good thing is, since it's recursive, it should be equal bad (or good after some optimization) for every value of sigma, unlike some other Gaussian implementations.

I'm interested to hear how it looks compared to other Gaussian blurs.

@Justin: I noticed that you blend the 2 passes together in your filters. I just work on the main framebuffer after the 1st pass which (I think) has the same effect of correcting the phase.

Code:
Edit: updated version, see post 37 below

Last edited by wwwmaze; 11-23-2018 at 10:20 AM.
wwwmaze is offline   Reply With Quote