decoder: Add basic color profile support

This only covers 8bit RGB(A) JPEG, PNG, and HEIF.
Should only be a temporary solution until GTK supports
color profiles.

Closes #36

Part-of: <https://gitlab.gnome.org/Incubator/loupe/-/merge_requests/172>
This commit is contained in:
Sophie Herold 2023-04-12 04:13:30 +02:00
parent 3b6cc8c404
commit e710419a22
6 changed files with 186 additions and 23 deletions

View file

@ -16,16 +16,18 @@ env_logger = "0.10.0"
futures = "0.3.25"
indexmap = "1.9.2"
kamadak-exif = "0.5.5"
lcms2 = "5.6.0"
libgweather = "4.2.0"
log = "0.4.17"
once_cell = "1.16.0"
rgb = "0.8.36"
safe-transmute = "0.11.2"
url = "2.3.1"
# decoders
image-rs = { package = "image", version = "0.24.6" }
libheif-rs = "0.19.0"
librsvg = { git = "https://gitlab.gnome.org/GNOME/librsvg.git", rev = "2.56.0" }
url = "2.3.1"
[dependencies.ashpd]
version = "0.4.0"