mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
vo: make swapchain-depth option generic for all VOs
In preparation for making vo_drm able to use swapchain-depth
This commit is contained in:
committed by
Jan Ekström
parent
9538fb5a7a
commit
6290420380
@@ -160,6 +160,7 @@ static const m_option_t mp_vo_opt_list[] = {
|
||||
#if HAVE_DRM
|
||||
OPT_SUBSTRUCT("", drm_opts, drm_conf, 0),
|
||||
#endif
|
||||
OPT_INTRANGE("swapchain-depth", swapchain_depth, 0, 1, 8),
|
||||
{0}
|
||||
};
|
||||
|
||||
@@ -186,6 +187,7 @@ const struct m_sub_options vo_sub_opts = {
|
||||
.mmcss_profile = "Playback",
|
||||
.ontop_level = -1,
|
||||
.timing_offset = 0.050,
|
||||
.swapchain_depth = 3,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ typedef struct mp_vo_opts {
|
||||
struct sws_opts *sws_opts;
|
||||
// vo_drm
|
||||
struct drm_opts *drm_opts;
|
||||
|
||||
int swapchain_depth; // max number of images to render ahead
|
||||
} mp_vo_opts;
|
||||
|
||||
// Subtitle options needed by the subtitle decoders/renderers.
|
||||
|
||||
Reference in New Issue
Block a user