This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit 467fcbc0cec4a7ad09ac459d8d7eac5ea1bbb21a Author: Gabriel Rauter <[email protected]> Date: Tue Sep 1 23:39:35 2015 +0200 fix compatibility with last stable libWebP release = 0.4.3 --- src/app/file/webp_format.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/app/file/webp_format.cpp b/src/app/file/webp_format.cpp index 8a38d05..a5fa8ea 100644 --- a/src/app/file/webp_format.cpp +++ b/src/app/file/webp_format.cpp @@ -201,6 +201,25 @@ const std::pair<WebPEncodingError, std::string> enc_error_map_data[] = { const std::map<WebPEncodingError, std::string> WebPEncodingErrorMap(enc_error_map_data, enc_error_map_data + sizeof enc_error_map_data / sizeof enc_error_map_data[0]); +#if WEBP_ENCODER_ABI_VERSION < 0x0203 +#define MAX_LEVEL 9 +// Mapping between -z level and -m / -q parameter settings. +static const struct { + uint8_t method_; + uint8_t quality_; +} kLosslessPresets[MAX_LEVEL + 1] = { + { 0, 0 }, { 1, 20 }, { 2, 25 }, { 3, 30 }, { 3, 50 }, + { 4, 50 }, { 4, 75 }, { 4, 90 }, { 5, 90 }, { 6, 100 } +}; +int WebPConfigLosslessPreset(WebPConfig* config, int level) { + if (config == NULL || level < 0 || level > MAX_LEVEL) return 0; + config->lossless = 1; + config->method = kLosslessPresets[level].method_; + config->quality = kLosslessPresets[level].quality_; + return 1; +} +#endif + static int ProgressReport(int percent, const WebPPicture* const pic) { fop_progress(((writerData*)pic->custom_ptr)->fop, (double)percent/(double)100); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

