avfilter/vf_libplacebo: add shader_cache option

Useful to speed up shader compilation. May significantly lower startup
times, in particular with large or complex shaders.

Sponsored-by: nxtedition
This commit is contained in:
Niklas Haas
2025-05-14 15:16:50 +02:00
parent 4f623b4c59
commit 559317cc13
2 changed files with 41 additions and 0 deletions

View File

@@ -16321,6 +16321,18 @@ to double the input image resolution:
-vf "libplacebo=w=iw*2:h=ih*2:extra_opts='upscaler=custom\:upscaler_preset=ewa_lanczos\:upscaler_blur=0.9812505644269356'"
@end example
@item shader_cache
File path of a cache directory that libplacebo will use to store and load
cached shader objects. This cache is not cleaned up automatically. If the
path does not end in a directory separator, the generated filenames will be
effectively prefixed by the last path component. All directories must already
exist.
@example
-vf "libplacebo=shader_cache=/tmp/pl-shader-"
@end example
@item colorspace
@item color_primaries
@item color_trc