|
libmpv
20200718-git-96cdf53
development library for the MPV media player
|
Looking for a C++ dev? I'm looking for work. Hire me!
|
|
Go to the documentation of this file.
16 #ifndef MPV_CLIENT_API_OPENGL_CB_H_
17 #define MPV_CLIENT_API_OPENGL_CB_H_
21 #if !MPV_ENABLE_DEPRECATED
22 #error "This header and all API provided by it is deprecated. Use render.h instead."
210 typedef void *(*mpv_opengl_cb_get_proc_address_fn)(
void *fn_ctx,
const char *name);
259 void *get_proc_address_ctx);
void mpv_opengl_cb_set_update_callback(mpv_opengl_cb_context *ctx, mpv_opengl_cb_update_fn callback, void *callback_ctx)
Set the callback that notifies you when a new video frame is available, or if the video display confi...
int mpv_opengl_cb_init_gl(mpv_opengl_cb_context *ctx, const char *exts, mpv_opengl_cb_get_proc_address_fn get_proc_address, void *get_proc_address_ctx)
Initialize the mpv OpenGL state.
struct mpv_opengl_cb_context mpv_opengl_cb_context
nVidia/Linux via VDPAU requires GLX, which does not have this problem (the GLX API can return the cur...
void *(* mpv_opengl_cb_get_proc_address_fn)(void *fn_ctx, const char *name)
struct _drmModeAtomicReq * atomic_request
int mpv_opengl_cb_report_flip(mpv_opengl_cb_context *ctx, int64_t time)
Tell the renderer that a frame was flipped at the given time.
int mpv_opengl_cb_uninit_gl(mpv_opengl_cb_context *ctx)
Destroy the mpv OpenGL state.
void(* mpv_opengl_cb_update_fn)(void *cb_ctx)
int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4])
Deprecated.
int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int w, int h)
Render video.