From fbe154831a8addfc18a4f81e1c4b9284c31acace Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 15 Feb 2022 12:47:53 +0100 Subject: 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. --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript') 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', -- cgit v1.2.3