mpv/options
wm4 543ba6c114 video: add VO framedropping mode
This mostly uses the same idea as with vo_vdpau.c, but much simplified.

On X11, it tries to get the display framerate with XF86VM, and limits
the frequency of new video frames against it. Note that this is an old
extension, and is confirmed not to work correctly with multi-monitor
setups. But we're using it because it was already around (it is also
used by vo_vdpau).

This attempts to predict the next vsync event by using the time of the
last frame and the display FPS. Even if that goes completely wrong,
the results are still relatively good.

On other systems, or if the X11 code doesn't return a display FPS, a
framerate of 1000 is assumed. This is infinite for all practical
purposes, and means that only frames which are definitely too late are
dropped. This probably has worse results, but is still useful.

"--framedrop=yes" is basically replaced with "--framedrop=decoder". The
old framedropping mode is kept around, and should perhaps be improved.
Dropping on the decoder level is still useful if decoding itself is too
slow.
2014-08-15 23:33:33 +02:00
..
m_config.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
m_config.h options: remove a global variable 2014-06-11 00:39:14 +02:00
m_option.c options: fix key-value-list options 2014-08-05 02:24:45 +02:00
m_option.h options: support setting start time relative to start PTS 2014-06-29 20:39:49 +02:00
m_property.c command: redo the property type 2014-06-13 02:11:39 +02:00
m_property.h command: redo the property type 2014-06-13 02:11:39 +02:00
options.c video: add VO framedropping mode 2014-08-15 23:33:33 +02:00
options.h sub: add option to workaround broken mkv files 2014-08-14 23:59:35 +02:00
parse_commandline.c options: fix "-" (stdin) input 2014-05-06 01:06:07 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c config: adjust config parser messages 2014-07-13 20:11:46 +02:00
parse_configfile.h encode: don't apply default config options 2014-04-19 22:05:17 +02:00
path.c config: use the same signature for win32/OSX specific path functions 2014-06-26 19:56:45 +02:00
path.h Basic xdg directory implementation 2014-06-26 19:37:25 +02:00