diff options
author | sfan5 <sfan5@live.de> | 2023-01-21 15:45:11 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-01-23 14:13:34 +0100 |
commit | c7ea0cd68f2cd68edea2f64060c1bcb483005a50 (patch) | |
tree | 7d52e83db2da101d36fa19884f9c0cf1740e9651 /video/out | |
parent | f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c (diff) | |
download | mpv-c7ea0cd68f2cd68edea2f64060c1bcb483005a50.tar.bz2 mpv-c7ea0cd68f2cd68edea2f64060c1bcb483005a50.tar.xz |
vd_lavc: add "auto" choice for vd-lavc-dr
--vd-lavc-dr defaulted to "yes", which caused issues on certain
hardware. Instead of disabling it, add a new "auto" value and
make it the default.
The "auto" choice will enable DR only when we can request host-cached
buffers (as signalled by the new VO_DR_FLAG_HOST_CACHED).
Co-authored-by: Nicolas F. <ovdev@fratti.ch>
Co-authored-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 8df825e582..a2073944b3 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -194,6 +194,11 @@ enum { VO_CAP_FILM_GRAIN = 1 << 3, }; +enum { + // Require DR buffers to be host-cached (i.e. fast readback) + VO_DR_FLAG_HOST_CACHED = 1 << 0, +}; + #define VO_MAX_REQ_FRAMES 10 struct vo; |