summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-02-15 12:47:53 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2022-02-21 12:01:44 +0100
commitfbe154831a8addfc18a4f81e1c4b9284c31acace (patch)
tree1aca46bd7926589269894ec0216b53f4807a4936 /wscript
parent27c38eac1040cd781f39d977ce53adcd65ddcfb6 (diff)
downloadmpv-fbe154831a8addfc18a4f81e1c4b9284c31acace.tar.bz2
mpv-fbe154831a8addfc18a4f81e1c4b9284c31acace.tar.xz
vo_gpu_next: refactor subtitle rendering
Render subs at the output resolution, rather than the video resolution. Uses the new APIs found in libplacebo 197+, to allow controlling the OSD resolution even for image-attached overlays. Also fixes an issue where the overlay state did not get correctly updated while paused. To avoid regenerating the OSD / flushing the cache constantly, we keep track of OSD changes and only regenerate the OSD when the OSD state is expected to change in some way (e.g. resolution change). This requires introducing a new VOCTRL to inform the VO when the UPDATE_OSD-tagged options have changed. Fixes #9744, #9524, #9399 and #9398.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript b/wscript
index 58ed8e5f39..a3152aa3b0 100644
--- a/wscript
+++ b/wscript
@@ -741,9 +741,9 @@ video_output_features = [
'func': check_pkg_config('libplacebo >= 4.157.0'),
}, {
'name': 'libplacebo-next',
- 'desc': 'libplacebo v4.190+, needed for vo_gpu_next',
+ 'desc': 'libplacebo v4.197+, needed for vo_gpu_next',
'deps': 'libplacebo',
- 'func': check_preprocessor('libplacebo/config.h', 'PL_API_VER >= 190',
+ 'func': check_preprocessor('libplacebo/config.h', 'PL_API_VER >= 197',
use='libplacebo'),
}, {
'name': '--vulkan',