Fixed issue that the decoded image of 8-bit grayscale PNG was broken 85/234585/9 accepted/tizen/unified/20200529.124234 submit/tizen/20200528.071852
authorjiyong.min <jiyong.min@samsung.com>
Wed, 27 May 2020 08:07:04 +0000 (17:07 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Thu, 28 May 2020 01:47:08 +0000 (10:47 +0900)
commit0a1a310e183f6b60313f6271a85fd23fd233fd00
tree4b23c74b4491530702c8f0852d8973b882ea4c26
parentaaa6a8508e9e1d6e664d2bc70081b8a30e5ce84e
Fixed issue that the decoded image of 8-bit grayscale PNG was broken

  - cause:
    Libpng can trans gray to rgb if png is gray or gray with alpha.
    But decoding png set trans using 'png_set_gray_to_rgb()' if png is only
    grayscale with alpha.

  - solution:
    Set trans gray to rgb using 'png_set_gray_to_rgb' if png is gray or
    gray with alpha. Decoding the png should return only the rgba image,
    so converting rgb to rgba is also added.

Change-Id: Id99e25070890283e79af45f438dcb4c767575c3f
packaging/libmm-utility.spec
png/CMakeLists.txt
png/mm_util_png.c