evas png: apply interpolation when scale down image loading.
authorHermet Park <hermetpark@gmail.com>
Thu, 2 May 2019 07:42:25 +0000 (16:42 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:25:02 +0000 (13:25 +0900)
commitddd78ed67449fed7a75edb4bb73770abc9098b75
tree4f17f3e95acb7430ce3c8e4fc8802a5f93ebac3a
parent1ac12ed252f7b28d103ed6710f45376d27091c59
evas png: apply interpolation when scale down image loading.

Summary:
This patch improves png quality when image uses scale-down at image loading.

Since current scale-down logic just works like point sampling,
image result could be wholely different,

Simply, if source data is consist of continous white and black pixels,
and scale down factor is 2, the sampled data would be only white,
and lose all black pixels, or vice versa.

The result can be unexpected by users.
Even current jpeg scale-down works with interpolation.

Before:
{F3711651}

After:
{F3711652}

Original:
{F3711653}

Reviewers: cedric, raster, #committers, kimcinoo, jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8788
src/examples/evas/Makefile.examples
src/examples/evas/evas-images6.c [new file with mode: 0644]
src/examples/evas/meson.build
src/examples/evas/resources/images/scale_down.png [new file with mode: 0644]
src/modules/evas/image_loaders/png/evas_image_load_png.c