mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
libwebp: Update to 1.5.0
This commit is contained in:
parent
1f787b63a5
commit
01f88ff138
89 changed files with 3131 additions and 2143 deletions
9
thirdparty/libwebp/src/webp/encode.h
vendored
9
thirdparty/libwebp/src/webp/encode.h
vendored
|
|
@ -20,7 +20,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define WEBP_ENCODER_ABI_VERSION 0x020f // MAJOR(8b) + MINOR(8b)
|
||||
#define WEBP_ENCODER_ABI_VERSION 0x0210 // MAJOR(8b) + MINOR(8b)
|
||||
|
||||
// Note: forward declaring enumerations is not allowed in (strict) C and C++,
|
||||
// the types are left here for reference.
|
||||
|
|
@ -145,7 +145,7 @@ struct WebPConfig {
|
|||
// RGB information for better compression. The default
|
||||
// value is 0.
|
||||
|
||||
int use_delta_palette; // reserved for future lossless feature
|
||||
int use_delta_palette; // reserved
|
||||
int use_sharp_yuv; // if needed, use sharp (and slow) RGB->YUV conversion
|
||||
|
||||
int qmin; // minimum permissible quality factor
|
||||
|
|
@ -224,14 +224,15 @@ struct WebPAuxStats {
|
|||
uint32_t lossless_features; // bit0:predictor bit1:cross-color transform
|
||||
// bit2:subtract-green bit3:color indexing
|
||||
int histogram_bits; // number of precision bits of histogram
|
||||
int transform_bits; // precision bits for transform
|
||||
int transform_bits; // precision bits for predictor transform
|
||||
int cache_bits; // number of bits for color cache lookup
|
||||
int palette_size; // number of color in palette, if used
|
||||
int lossless_size; // final lossless size
|
||||
int lossless_hdr_size; // lossless header (transform, huffman etc) size
|
||||
int lossless_data_size; // lossless image data size
|
||||
int cross_color_transform_bits; // precision bits for cross-color transform
|
||||
|
||||
uint32_t pad[2]; // padding for later use
|
||||
uint32_t pad[1]; // padding for later use
|
||||
};
|
||||
|
||||
// Signature for output function. Should return true if writing was successful.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,12 @@
|
|||
#define CODE_LENGTH_CODES 19
|
||||
|
||||
#define MIN_HUFFMAN_BITS 2 // min number of Huffman bits
|
||||
#define MAX_HUFFMAN_BITS 9 // max number of Huffman bits
|
||||
#define NUM_HUFFMAN_BITS 3
|
||||
|
||||
// the maximum number of bits defining a transform is
|
||||
// MIN_TRANSFORM_BITS + (1 << NUM_TRANSFORM_BITS) - 1
|
||||
#define MIN_TRANSFORM_BITS 2
|
||||
#define NUM_TRANSFORM_BITS 3
|
||||
|
||||
#define TRANSFORM_PRESENT 1 // The bit to be written when next data
|
||||
// to be read is a transform.
|
||||
|
|
|
|||
4
thirdparty/libwebp/src/webp/types.h
vendored
4
thirdparty/libwebp/src/webp/types.h
vendored
|
|
@ -38,11 +38,11 @@ typedef long long int int64_t;
|
|||
|
||||
#ifndef WEBP_NODISCARD
|
||||
#if defined(WEBP_ENABLE_NODISCARD) && WEBP_ENABLE_NODISCARD
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201700L) || \
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || \
|
||||
(defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
|
||||
#define WEBP_NODISCARD [[nodiscard]]
|
||||
#else
|
||||
// gcc's __has_attribute does not work for enums.
|
||||
// gcc's __attribute__((warn_unused_result)) does not work for enums.
|
||||
#if defined(__clang__) && defined(__has_attribute)
|
||||
#if __has_attribute(warn_unused_result)
|
||||
#define WEBP_NODISCARD __attribute__((warn_unused_result))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue