thorvg/src/loaders/jpg
JunsuChoi 507b11829c loader: Support ABGR colorspace
Since the color space is set at the time of specifying the target buffer of the canvas,
there is no way to know the color space when the picture is loaded.
So, check the color space applied to SwCanvas at the time of reload()
and change the color space.

There is an issue of BGR color space support for each loader.
The external_jpg loader resets the TJPF color space and calls read() to get a new buffer.
In the case of external_png, we need to change the color value directly
because it have to start over from begin_read_*.

This solution can affect performance as much as it access again image buffer
that have already been `read()` done. However, this only happens once.
2023-02-08 17:54:33 -08:00
..
meson.build jpg_loader: code refactoring 2021-10-26 21:16:02 +09:00
tvgJpgd.cpp updated copyright. 2023-01-14 13:48:11 +09:00
tvgJpgd.h updated copyright. 2023-01-14 13:48:11 +09:00
tvgJpgLoader.cpp loader: Support ABGR colorspace 2023-02-08 17:54:33 -08:00
tvgJpgLoader.h loader: Support ABGR colorspace 2023-02-08 17:54:33 -08:00