feat: add webp support (#1384)

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

View File

@@ -16,6 +16,18 @@ git submodule init
git submodule update
```
## WebP Support in Examples
The example applications (`examples/cli` and `examples/server`) use `libwebp` to support WebP image I/O. This is enabled by default.
If you do not want WebP support, you can disable it at configure time:
```shell
mkdir build && cd build
cmake .. -DSD_WEBP=OFF
cmake --build . --config Release
```
## Build (CPU only)
If you don't have a GPU or CUDA installed, you can build a CPU-only version.