mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
drm: move struct vsync_tuple into drm_common as drm_vsync_tuple
This struct will be useful in vo_drm as well.
This commit is contained in:
parent
c7d0a8f58e
commit
2cf8dd6451
@ -55,6 +55,12 @@ struct drm_opts {
|
||||
struct m_geometry drm_draw_surface_size;
|
||||
};
|
||||
|
||||
struct drm_vsync_tuple {
|
||||
uint64_t ust;
|
||||
unsigned int msc;
|
||||
unsigned int sbc;
|
||||
};
|
||||
|
||||
bool vt_switcher_init(struct vt_switcher *s, struct mp_log *log);
|
||||
void vt_switcher_destroy(struct vt_switcher *s);
|
||||
void vt_switcher_poll(struct vt_switcher *s, int timeout_ms);
|
||||
|
@ -54,16 +54,9 @@ struct framebuffer
|
||||
uint32_t id;
|
||||
};
|
||||
|
||||
struct vsync_tuple
|
||||
{
|
||||
uint64_t ust;
|
||||
unsigned int msc;
|
||||
unsigned int sbc;
|
||||
};
|
||||
|
||||
struct gbm_frame {
|
||||
struct gbm_bo *bo;
|
||||
struct vsync_tuple vsync;
|
||||
struct drm_vsync_tuple vsync;
|
||||
};
|
||||
|
||||
struct gbm
|
||||
@ -106,7 +99,7 @@ struct priv {
|
||||
bool still;
|
||||
bool paused;
|
||||
|
||||
struct vsync_tuple vsync;
|
||||
struct drm_vsync_tuple vsync;
|
||||
struct vo_vsync_info vsync_info;
|
||||
|
||||
struct mpv_opengl_drm_params_v2 drm_params;
|
||||
|
Loading…
Reference in New Issue
Block a user