97 lines
4.5 KiB
C
97 lines
4.5 KiB
C
|
|
/*
|
||
|
|
==============================================================================
|
||
|
|
|
||
|
|
This file is part of the JUCE framework.
|
||
|
|
Copyright (c) Raw Material Software Limited
|
||
|
|
|
||
|
|
JUCE is an open source framework subject to commercial or open source
|
||
|
|
licensing.
|
||
|
|
|
||
|
|
By downloading, installing, or using the JUCE framework, or combining the
|
||
|
|
JUCE framework with any other source code, object code, content or any other
|
||
|
|
copyrightable work, you agree to the terms of the JUCE End User Licence
|
||
|
|
Agreement, and all incorporated terms including the JUCE Privacy Policy and
|
||
|
|
the JUCE Website Terms of Service, as applicable, which will bind you. If you
|
||
|
|
do not agree to the terms of these agreements, we will not license the JUCE
|
||
|
|
framework to you, and you must discontinue the installation or download
|
||
|
|
process and cease use of the JUCE framework.
|
||
|
|
|
||
|
|
JUCE End User Licence Agreement: https://juce.com/legal/juce-9-licence/
|
||
|
|
JUCE Privacy Policy: https://juce.com/juce-privacy-policy
|
||
|
|
JUCE Website Terms of Service: https://juce.com/juce-website-terms-of-service/
|
||
|
|
|
||
|
|
Or:
|
||
|
|
|
||
|
|
You may also use this code under the terms of the AGPLv3:
|
||
|
|
https://www.gnu.org/licenses/agpl-3.0.en.html
|
||
|
|
|
||
|
|
THE JUCE FRAMEWORK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL
|
||
|
|
WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING WARRANTY OF
|
||
|
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
|
||
|
|
|
||
|
|
==============================================================================
|
||
|
|
*/
|
||
|
|
|
||
|
|
|
||
|
|
#include <juce_core/system/juce_CompilerWarnings.h>
|
||
|
|
|
||
|
|
#include <juce_graphics/image_formats/juce_webp_config.h>
|
||
|
|
|
||
|
|
#if JUCE_USE_WEBP && JUCE_INCLUDE_WEBPLIB_CODE
|
||
|
|
|
||
|
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4127 4244 4245 4310 4701 6001 6011 6239 6286 6287 6297 6326 6385 6387)
|
||
|
|
|
||
|
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wsign-conversion",
|
||
|
|
"-Wimplicit-int-conversion",
|
||
|
|
"-Wimplicit-int-float-conversion",
|
||
|
|
"-Wfloat-conversion",
|
||
|
|
"-Wcast-align",
|
||
|
|
"-Wswitch-enum",
|
||
|
|
"-Wconditional-uninitialized",
|
||
|
|
"-Wfloat-equal",
|
||
|
|
"-Wredundant-decls",
|
||
|
|
"-Wpedantic",
|
||
|
|
"-Woverflow",
|
||
|
|
"-Wzero-as-null-pointer-constant")
|
||
|
|
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/alpha_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/analysis_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/backward_references_cost_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/backward_references_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/config_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/cost_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/filter_enc.c"
|
||
|
|
#define GetPSNR juce_webp_frame_enc_GetPSNR
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/frame_enc.c"
|
||
|
|
#undef GetPSNR
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/histogram_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/iterator_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/near_lossless_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/picture_csp_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/picture_enc.c"
|
||
|
|
#define GetPSNR juce_webp_picture_psnr_enc_GetPSNR
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/picture_psnr_enc.c"
|
||
|
|
#undef GetPSNR
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/picture_rescale_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/picture_tools_enc.c"
|
||
|
|
#define NearLossless juce_webp_predictor_enc_NearLossless
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/predictor_enc.c"
|
||
|
|
#undef NearLossless
|
||
|
|
#undef MAX_ALPHA
|
||
|
|
#define clip juce_webp_quant_enc_clip
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/quant_enc.c"
|
||
|
|
#undef clip
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/syntax_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/token_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/tree_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/vp8l_enc.c"
|
||
|
|
#include "juce_graphics/image_formats/libwebp/src/enc/webp_enc.c"
|
||
|
|
|
||
|
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||
|
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||
|
|
|
||
|
|
#else
|
||
|
|
// To get around 'empty translation unit' errors
|
||
|
|
enum { placeholder = 0 };
|
||
|
|
#endif
|