Page 1 of 1

Fast 16 bit box filter blurring?

PostPosted: Jan 5, 2006 @ 9:36pm
by xPeterx
Hello community,

for some fancy FX routines I lately tried to come up with a fast 16 bit 2d box filter blur. After some research I ended up with this article:

Some here...
It explains how to achieve a fast 2d box blur by applying a horizontal and a vertical blur consecutively.
So much for the theory. I wrote a straight forward version using the same technique for each color component and I must confess it's already
painfully slow on my 206Mhz ARM CPU, probably for caching reasons.

Is anyone interested in helping me optimizing the provided technique to 16 bits?
I really need some fancy ideas.

PostPosted: Jan 5, 2006 @ 10:08pm
by StephC
How fast do you need it to be ?

And what is the required blur quality ?

About caching issue, I once implemented a fullscreen crossfade in asm, it was running in less than 8ms (two 240 * 320 * 16 screens)

A fast blur could help to create a bloom effect, could be nice :)

PostPosted: Jan 5, 2006 @ 10:13pm
by xPeterx
Thanks for the fast answer.

Well it should be done in realtime on a 320x240 picture as quickly as possible and the outcome of the filter should be somewhat like of the provided algorithm.
Of course it should be possible to specify different blur amounts without sacrificing too much speed.
(And I'd prefer not using any assembler to keep it as platform independent as possible)

About that bloom effect, I'm not sure what you mean by that, do you have any example pictures of it?

Cheers

PostPosted: Jan 5, 2006 @ 10:20pm
by StephC

PostPosted: Jan 5, 2006 @ 10:21pm
by _Alex_

PostPosted: Jan 5, 2006 @ 10:31pm
by xPeterx

PostPosted: Jan 5, 2006 @ 10:33pm
by xPeterx

PostPosted: Jan 6, 2006 @ 12:59am
by _Alex_

PostPosted: Jan 6, 2006 @ 11:24am
by xPeterx