Information about the next video frame that will be rendered. More...
#include <render.h>
Public Attributes | |
uint64_t | flags |
A bitset of mpv_render_frame_info_flag values (i.e. More... | |
int64_t | target_time |
Absolute time at which the frame is supposed to be displayed. More... | |
Information about the next video frame that will be rendered.
Can be retrieved with MPV_RENDER_PARAM_NEXT_FRAME_INFO.
uint64_t mpv_render_frame_info::flags |
int64_t mpv_render_frame_info::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.