[sdl3-image] Add support for JPEG XL and AVIF image formats (#52345)

This commit is contained in:
Sergey Astaf'ev 2026-06-13 01:10:07 +03:00 committed by GitHub
parent 3326c9be23
commit fd4e7beeab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 6 deletions

View File

@ -12,14 +12,12 @@ vcpkg_from_github(
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
avif SDLIMAGE_AVIF
jpeg SDLIMAGE_JPG
jxl SDLIMAGE_JXL
png SDLIMAGE_PNG
tiff SDLIMAGE_TIF
webp SDLIMAGE_WEBP
INVERTED_FEATURES
# Disabled capabilities: Needing dependencies.
core SDLIMAGE_AVIF
core SDLIMAGE_JXL
)
vcpkg_cmake_configure(

View File

@ -1,7 +1,8 @@
{
"name": "sdl3-image",
"version": "3.4.4",
"description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV",
"port-version": 1,
"description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: AVIF, BMP, GIF, JPEG, JPEG XL, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV",
"homepage": "https://github.com/libsdl-org/SDL_image",
"license": "Zlib",
"dependencies": [
@ -19,12 +20,30 @@
}
],
"features": {
"avif": {
"description": "Support for AVIF image format",
"dependencies": [
{
"name": "libavif",
"features": [
"aom",
"dav1d"
]
}
]
},
"jpeg": {
"description": "Support for JPEG image format",
"dependencies": [
"libjpeg-turbo"
]
},
"jxl": {
"description": "Support for JPEG XL image format",
"dependencies": [
"libjxl"
]
},
"png": {
"description": "Support for PNG image format",
"dependencies": [

View File

@ -9138,7 +9138,7 @@
},
"sdl3-image": {
"baseline": "3.4.4",
"port-version": 0
"port-version": 1
},
"sdl3-mixer": {
"baseline": "3.2.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9b42d5467aa2899a40271972eb817d0da82eab05",
"version": "3.4.4",
"port-version": 1
},
{
"git-tree": "7d64d0dd26d1a025b99b83429838551fde4a65cf",
"version": "3.4.4",