This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Fast 16 bit box filter blurring?


Fast 16 bit box filter blurring?

Postby xPeterx » Jan 5, 2006 @ 9:36pm

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.
xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby StephC » Jan 5, 2006 @ 10:08pm

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 :)
Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby xPeterx » Jan 5, 2006 @ 10:13pm

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
xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby StephC » Jan 5, 2006 @ 10:20pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby _Alex_ » Jan 5, 2006 @ 10:21pm

_Alex_
pm Member
 
Posts: 29
Joined: May 23, 2004 @ 9:43pm


Postby xPeterx » Jan 5, 2006 @ 10:31pm

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby xPeterx » Jan 5, 2006 @ 10:33pm

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby _Alex_ » Jan 6, 2006 @ 12:59am

_Alex_
pm Member
 
Posts: 29
Joined: May 23, 2004 @ 9:43pm


Postby xPeterx » Jan 6, 2006 @ 11:24am

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron