mpv/video
wm4 83884fdf03 vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting
Use the extension to compute the (hopefully correct) video delay and
vsync phase.

This is very fuzzy, because the latency will suddenly be applied after
some frames have already been shown. This means there _will_ be "jumps"
in the time accounting, which can lead to strange effects at start of
playback (such as making initial "dropped" etc. frames worse). The only
reasonable way to fix this would be running a few dummy frame swaps at
start of playback until the latency is known. The same happens when
unpausing.

This only affects display-sync mode.

Correct function was not confirmed. It only "looks right". I don't have
the equipment to make scientifically correct measurements.

A potentially bad thing is that we trust the timestamps we're receiving.
Out of bounds timestamps could wreak havoc. On the other hand, this will
probably cause the higher level code to panic and just disable DS.

As a further caveat, this makes a bunch of assumptions about UST
timestamps. If there are delayed frames (i.e. we skipped one or more
vsyncs), the latency logic is mostly reset. There is no attempt to make
the vo.c skipped vsync logic to use this. Also, the latency computation
determines a vsync duration, and there's no effort to reconcile or share
the vo.c logic for determining vsync duration.
2018-12-06 10:30:14 +01:00
..
decode vd_lavc: minor simplification for get_format fallback 2018-05-25 10:17:06 +02:00
filter vf_vapoursynth: correctly signal error on script init failure 2018-04-29 02:21:32 +03:00
out vo_gpu: glx: use GLX_OML_sync_control for better vsync reporting 2018-12-06 10:30:14 +01:00
csputils.c
csputils.h
d3d.c
d3d.h
fmt-conversion.c
fmt-conversion.h
hwdec.c
hwdec.h
image_loader.c
image_loader.h
image_writer.c
image_writer.h
img_format.c video: remove libavutil PSEUDOPAL stuff 2018-04-03 20:08:15 +03:00
img_format.h img_format.h: cosmetics: fix whitespace 2018-03-15 23:13:53 -07:00
mp_image.c mp_image: strip all HDR peak information from SDR clips 2018-09-05 22:09:30 +02:00
mp_image.h video: remove internal stereo_out flag 2018-04-29 02:21:32 +03:00
mp_image_pool.c
mp_image_pool.h
sws_utils.c
sws_utils.h
vaapi.c vaapi: add option to select a non-default device path 2018-03-30 14:16:07 -07:00
vaapi.h
vdpau.c
vdpau.h
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h