libmpv  20200718-git-96cdf53
development library for the MPV media player
Looking for a C++ dev?
I'm looking for work. Hire me!
mpv_render_frame_info Struct Reference

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...
 

Detailed Description

Information about the next video frame that will be rendered.

Can be retrieved with MPV_RENDER_PARAM_NEXT_FRAME_INFO.

Definition at line 512 of file render.h.

Member Data Documentation

◆ flags

uint64_t mpv_render_frame_info::flags

A bitset of mpv_render_frame_info_flag values (i.e.

multiple flags are combined with bitwise or).

Definition at line 517 of file render.h.

◆ target_time

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.

Definition at line 528 of file render.h.


The documentation for this struct was generated from the following file: