diff options
author | DeeJayLSP <djlsplays@gmail.com> | 2022-10-31 10:25:04 -0300 |
---|---|---|
committer | DeeJayLSP <djlsplays@gmail.com> | 2022-11-15 11:52:22 -0300 |
commit | da132f32665244a42f58bb4abb555c2202688cce (patch) | |
tree | afeb924bccf653b664d287024ab7b94ef8f61947 /modules/webp/webp_common.h | |
parent | 6a9317c9fc8f943586a8cbe6d0d6be6e356add28 (diff) | |
download | redot-engine-da132f32665244a42f58bb4abb555c2202688cce.tar.gz |
Overhaul WebP packer and split compression options
Diffstat (limited to 'modules/webp/webp_common.h')
-rw-r--r-- | modules/webp/webp_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/webp/webp_common.h b/modules/webp/webp_common.h index 11bef40256..23b433ad79 100644 --- a/modules/webp/webp_common.h +++ b/modules/webp/webp_common.h @@ -37,6 +37,8 @@ namespace WebPCommon { // Given an image, pack this data into a WebP file. Vector<uint8_t> _webp_lossy_pack(const Ref<Image> &p_image, float p_quality); Vector<uint8_t> _webp_lossless_pack(const Ref<Image> &p_image); +// Helper function for those above. +Vector<uint8_t> _webp_packer(const Ref<Image> &p_image, float p_quality, bool p_lossless); // Given a WebP file, unpack it into an image. Ref<Image> _webp_unpack(const Vector<uint8_t> &p_buffer); Error webp_load_image_from_buffer(Image *p_image, const uint8_t *p_buffer, int p_buffer_len); |