Evas filters: Prepare optimization paths for BOX blur
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 11 Mar 2014 07:18:41 +0000 (16:18 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 12 Mar 2014 05:08:02 +0000 (14:08 +0900)
commit4e249143a52c370abfb2bf304d7d8dbacb930aeb
tree8c32bf89351b8f59f120c49d874a5bffdbe19b49
parent0dace7721e6c233725a1ac6c416c0d631b0afe95
Evas filters: Prepare optimization paths for BOX blur

Actually, there is a very nice trick with BOX blur.
Pass BOX blur 3 times and you can approximate a GAUSSIAN
blur with up to 3% accuracy. This is way more than enough
for just a simple graphical effect.

So, despite the crappy quality of BOX blur, we should
optimize it a lot so we can replace large GAUSSIAN blurs
with series of BOX blurs instead.

Source: Wikipedia's page on box blur :)

This commit also moves around some duplicated definitions.
src/Makefile_Evas.am
src/lib/evas/filters/blur/blur_box_alpha_.c [new file with mode: 0644]
src/lib/evas/filters/blur/blur_box_rgba_.c [new file with mode: 0644]
src/lib/evas/filters/evas_filter.c
src/lib/evas/filters/evas_filter_blend.c
src/lib/evas/filters/evas_filter_blur.c
src/lib/evas/filters/evas_filter_private.h
src/lib/evas/filters/evas_filter_utils.c