Skip to content

Commit

Permalink
Update to SDL_image v2.7.1 prerelease
Browse files Browse the repository at this point in the history
bradharding committed Nov 30, 2023
1 parent 499bca7 commit ef37425
Showing 40 changed files with 799 additions and 20 deletions.
Binary file removed SDL2_image-2.6.3/lib/x64/SDL2_image.dll
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x64/SDL2_image.lib
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x64/optional/libtiff-5.dll
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x64/optional/libwebp-7.dll
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x86/SDL2_image.dll
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x86/SDL2_image.lib
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x86/optional/libtiff-5.dll
Binary file not shown.
Binary file removed SDL2_image-2.6.3/lib/x86/optional/libwebp-7.dll
Binary file not shown.
7 changes: 7 additions & 0 deletions SDL2_image-2.6.3/CHANGES.txt → SDL2_image-2.7.1/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.8.0:
* Added support for loading WEBP animations
* PNG images with a palette are loaded as SDL surfaces with a palette

2.6.3:
* Fixed loading of 4-bit .ico files

2.6.2:
* Updated autotools to use ax_compute_relative_paths, fixing homebrew on macOS

File renamed without changes.
6 changes: 3 additions & 3 deletions SDL2_image-2.6.3/README.txt → SDL2_image-2.7.1/README.txt
Original file line number Diff line number Diff line change
@@ -23,15 +23,15 @@ To create a surface from an XPM image included in C source, use:

SDL_Surface *IMG_ReadXPMFromArray(char **xpm);

An example program 'showimage' is included, with source in showimage.c
An example program 'showimage' is included, with source in 'examples/showimage.c'

Documentation is also available online at https://wiki.libsdl.org/SDL_image
Documentation is also available online at https://wiki.libsdl.org/SDL2_image

This library is under the zlib License, see the file "LICENSE.txt" for details.

Note:
Support for AVIF, JPEG-XL, TIFF, and WebP are not included by default because of the size of the decode libraries, but you can get them by running external/download.sh
- When building with CMake, you can enable the appropriate SUPPORT_* options defined in CMakeLists.txt.
- When building with CMake, you can enable the appropriate SDL2IMAGE_* options defined in CMakeLists.txt. SDL2IMAGE_VENDORED allows switching between system and vendored libraries.
- When building with configure/make, you can build and install them normally and the configure script will detect and use them.
- When building with Visual Studio, you will need to build the libraries and then add the appropriate LOAD_* preprocessor define to the Visual Studio project.
- When building with Xcode, you can edit the config at the top of the project to enable them, and you will need to include the appropriate framework in your application.
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@ extern "C" {
* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
*/
#define SDL_IMAGE_MAJOR_VERSION 2
#define SDL_IMAGE_MINOR_VERSION 6
#define SDL_IMAGE_PATCHLEVEL 3
#define SDL_IMAGE_MINOR_VERSION 7
#define SDL_IMAGE_PATCHLEVEL 1

/**
* This macro can be used to fill a version structure with the compile-time
@@ -113,12 +113,12 @@ typedef enum
*
* Currently, these flags are:
*
* - `_INIT_JPG`
* - `_INIT_PNG`
* - `_INIT_TIF`
* - `_INIT_WEBP`
* - `_INIT_JXL`
* - `_INIT_AVIF`
* - `IMG_INIT_JPG`
* - `IMG_INIT_PNG`
* - `IMG_INIT_TIF`
* - `IMG_INIT_WEBP`
* - `IMG_INIT_JXL`
* - `IMG_INIT_AVIF`
*
* More flags may be added in a future SDL_image release.
*
@@ -2150,6 +2150,26 @@ extern DECLSPEC void SDLCALL IMG_FreeAnimation(IMG_Animation *anim);
*/
extern DECLSPEC IMG_Animation * SDLCALL IMG_LoadGIFAnimation_RW(SDL_RWops *src);

/**
* Load a WEBP animation directly.
*
* If you know you definitely have a WEBP image, you can call this function,
* which will skip SDL_image's file format detection routines. Generally it's
* better to use the abstract interfaces; also, there is only an SDL_RWops
* interface available here.
*
* \param src an SDL_RWops that data will be read from.
* \returns a new IMG_Animation, or NULL on error.
*
* \since This function is available since SDL_image 2.6.0.
*
* \sa IMG_LoadAnimation
* \sa IMG_LoadAnimation_RW
* \sa IMG_LoadAnimationTyped_RW
* \sa IMG_FreeAnimation
*/
extern DECLSPEC IMG_Animation * SDLCALL IMG_LoadWEBPAnimation_RW(SDL_RWops *src);

/**
* Report SDL_image errors
*
Binary file added SDL2_image-2.7.1/lib/x64/SDL2_image.dll
Binary file not shown.
Binary file added SDL2_image-2.7.1/lib/x64/SDL2_image.lib
Binary file not shown.
353 changes: 353 additions & 0 deletions SDL2_image-2.7.1/lib/x64/optional/LICENSE.avif.txt

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions SDL2_image-2.7.1/lib/x64/optional/LICENSE.dav1d.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright © 2018-2019, VideoLAN and dav1d authors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file added SDL2_image-2.7.1/lib/x64/optional/libavif-16.dll
Binary file not shown.
Binary file added SDL2_image-2.7.1/lib/x64/optional/libtiff-5.dll
Binary file not shown.
Binary file added SDL2_image-2.7.1/lib/x64/optional/libwebp-7.dll
Binary file not shown.
Binary file not shown.
Binary file added SDL2_image-2.7.1/lib/x86/SDL2_image.dll
Binary file not shown.
Binary file added SDL2_image-2.7.1/lib/x86/SDL2_image.lib
Binary file not shown.
Loading

0 comments on commit ef37425

Please sign in to comment.