feat: add webp support (#1384)

This commit is contained in:
leejet authored and GitHub committed 2026-04-02 01:36:11 +08:00
1 parent 99c1de379b
commit 87ecb95cbc
17 files changed
+1319 -597

No files matched your search

+5
View File
@@ -29,6 +29,7 @@ endif()
# general
#option(SD_BUILD_TESTS "sd: build tests" ${SD_STANDALONE})
option(SD_BUILD_EXAMPLES "sd: build examples" ${SD_STANDALONE})
option(SD_WEBP "sd: enable WebP image I/O support" ON)
option(SD_CUDA "sd: cuda backend" OFF)
option(SD_HIPBLAS "sd: rocm backend" OFF)
option(SD_METAL "sd: metal backend" OFF)
@@ -77,6 +78,10 @@ if(SD_MUSA)
add_definitions(-DSD_USE_CUDA)
endif()
if(SD_WEBP)
add_compile_definitions(SD_USE_WEBP)
endif()
set(SD_LIB stable-diffusion)
file(GLOB SD_LIB_SOURCES