Flags used in mpv_render_frame_info.flags. Each value represents a bit in it.
Parameters for mpv_render_param (which is used in a few places such as mpv_render_context_create().
Flags returned by mpv_render_context_update(). Each value represents a bit in the function's return value.
Initialize the renderer state. Depending on the backend used, this will access the underlying GPU API and initialize its own objects.
Destroy the mpv renderer state.
Retrieve information from the render context. This is NOT a counterpart to mpv_render_context_set_parameter(), because you generally can't read parameters set with it, and this function is not meant for this purpose. Instead, this is for communicating information from the renderer back to the user. See mpv_render_param_type; entries which support this function explicitly mention it, and for other entries you can assume it will fail.
Render video.
Tell the renderer that a frame was flipped at the given time. This is optional, but can help the player to achieve better timing.
Attempt to change a single parameter. Not all backends and parameter types support all kinds of changes.
Set the callback that notifies you when a new video frame is available, or if the video display configuration somehow changed and requires a redraw. Similar to mpv_set_wakeup_callback(), you must not call any mpv API from the callback, and all the other listed restrictions apply (such as not exiting the callback by throwing exceptions).
The API user is supposed to call this when the update callback was invoked (like all mpv_render_* functions, this has to happen on the render thread, and _not_ from the update callback itself).
Predefined values for MPV_RENDER_PARAM_API_TYPE.
For backwards compatibility with the old naming of MPV_RENDER_PARAM_DRM_DRAW_SURFACE_SIZE
Opaque context, returned by mpv_render_context_create().
Information about the next video frame that will be rendered. Can be retrieved with MPV_RENDER_PARAM_NEXT_FRAME_INFO.
Used to pass arbitrary parameters to some mpv_render_* functions. The meaning of the data parameter is determined by the type, and each MPV_RENDER_PARAM_* documents what type the value must point to.