Add memory usage reduction for creating image thumbnail 32/288632/1
authorjiyong.min <jiyong.min@samsung.com>
Sun, 12 Feb 2023 22:52:11 +0000 (07:52 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Tue, 21 Feb 2023 01:36:39 +0000 (01:36 +0000)
commit6279e57c05ca6d2d899859929a19d20967041185
tree7bcfc5a69544d61780b5d3a3b4d242613d4ce3c6
parent6678129c4289346a4eeebb5d4d96d1b34fc3f196
Add memory usage reduction for creating image thumbnail

 - Please use this option for low memory limit due to memory policy.
  For large-sized images, memory usage may decrease to less than 100MB,
  but thumbnail quality may be slightly lowered in some cases.
 - A-Gif has been changed from mmutil_magick to mmutil_gif.
 - Jpeg has been added to use the downscale option.

Change-Id: Id0cff4690e4ebea10649859ee2ff678d67d850db

Add image size limitation for specific device

 - This patch is for specific device, do not use it on other devices.
  If necessary in the future, we will provide a hal-config that can be used on the others.

Change-Id: I6ee8f6fb8f03874d7c9cb31bd2b09e56af8a3a8f

Separate functions for 'USE_MEMORY_USAGE_REDUCTION'

Change-Id: I3967b917078d2cefb277a1627729005856a16ae7

Add to convert RGBA to BGRA for raw data

 - In case of raw data, if it is an image,
   thumbnail should be returned as BGRA colorspace.
https://docs.tizen.org/application/native/guides/multimedia/thumbnail-images/

Change-Id: I11065190336962db66f228d6d93279dd180e2e6e
CMakeLists.txt
packaging/libmedia-thumbnail.spec
src/media-thumbnail.c