evas png loader: optimize scale down logic.
authorHermet Park <hermetpark@gmail.com>
Mon, 29 Apr 2019 10:55:38 +0000 (19:55 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Tue, 30 Apr 2019 01:03:07 +0000 (10:03 +0900)
commit8e08fee36f97b1882b941a36a3342db516f82718
tree6b84e365ff815d1f892867e800b627a582ef429d
parentbbb63c0a8d6de9ef99d37ced5e83881c13956b70
evas png loader: optimize scale down logic.

Previously, mannual scale down logic was too primitive,
it copied pixel data each channels. Obviously, it's ineffective.

We know the general case - 4 bytes channel which is the most usage,
If loader copies data per four bytes, instructions could be reduced.

When I load scale-downed image(original 8k), about 0.02 secs was reduced by this.
src/modules/evas/image_loaders/png/evas_image_load_png.c