mpv_render_frame_info

Information about the next video frame that will be rendered. Can be retrieved with MPV_RENDER_PARAM_NEXT_FRAME_INFO.

extern (C)
struct mpv_render_frame_info {}

Members

Variables

flags
ulong flags;

A bitset of mpv_render_frame_info_flag values (i.e. multiple flags are combined with bitwise or).

target_time
long target_time;

Absolute time at which the frame is supposed to be displayed. This is in the same unit and base as the time returned by mpv_get_time_us(). For frames that are redrawn, or if vsync locked video timing is used (see "video-sync" option), then this can be 0. The "video-timing-offset" option determines how much "headroom" the render thread gets (but a high enough frame rate can reduce it anyway). mpv_render_context_render() will normally block until the time is elapsed, unless you pass it MPV_RENDER_PARAM_BLOCK_FOR_TARGET_TIME = 0.

Meta