mpv/video/out
wm4 e56d8a200d Replace all calls to GetTimer()/GetTimerMS()
GetTimer() is generally replaced with mp_time_us(). Both calls return
microseconds, but the latter uses int64_t, us defined to never wrap,
and never returns 0 or negative values.

GetTimerMS() has no direct replacement. Instead the other functions are
used.

For some code, switch to mp_time_sec(), which returns the time as double
float value in seconds. The returned time is offset to program start
time, so there is enough precision left to deliver microsecond
resolution for at least 100 years. Unless it's casted to a float
(or the CPU reduces precision), which is why we still use mp_time_us()
out of paranoia in places where precision is clearly needed.

Always switch to the correct time. The whole point of the new timer
calls is that they don't wrap, and storing microseconds in unsigned int
variables would negate this.

In some cases, remove wrap-around handling for time values.
2013-05-26 16:44:20 +02:00
..
aspect.c
aspect.h
bitmap_packer.c Silence some compiler warnings 2013-05-21 00:04:27 +02:00
bitmap_packer.h
cocoa_common.h video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
cocoa_common.m cocoa_common: send mouse moved events to core when dragging 2013-05-26 16:44:20 +02:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl
filter_kernels.c
filter_kernels.h
gl_cocoa.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_common.c gl_common: add some sort of locking API 2013-05-12 15:27:54 +02:00
gl_common.h video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_header_fixes.h gl_header_fixes: add GL_RGBA32F 2013-03-28 22:55:56 +01:00
gl_lcms.c gl_lcms: fix compilation when lcms2 is not available 2013-03-30 03:29:54 +01:00
gl_lcms.h vo_opengl: split into multiple files, convert to new option API 2013-03-28 21:46:17 +01:00
gl_osd.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_osd.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video_shaders.glsl vo_opengl: XYZ input support 2013-05-04 01:32:50 +02:00
gl_w32.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_wayland.c wayland: introduce vo_wayland_config 2013-05-26 16:44:19 +02:00
gl_x11.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
osx_common.h
osx_common.m
pnm_loader.c
pnm_loader.h
vo.c vo: rip out VO timer wakeup mechanism again 2013-05-26 16:44:20 +02:00
vo.h Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_caca.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_corevideo.h
vo_corevideo.m video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_direct3d.c w32: use vo_w32_control() for all VOs 2013-05-26 16:44:19 +02:00
vo_image.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_lavc.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_null.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_opengl.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_opengl_old.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_sdl.c vo_sdl: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
vo_vdpau.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_x11.c x11: use vo_x11_control() for all VOs 2013-05-26 16:44:19 +02:00
vo_xv.c x11: use vo_x11_control() for all VOs 2013-05-26 16:44:19 +02:00
w32_common.c w32: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
w32_common.h w32: use vo_w32_control() for all VOs 2013-05-26 16:44:19 +02:00
wayland_common.c wayland: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
wayland_common.h wayland: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
x11_common.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
x11_common.h Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00