VLC
4.0.0-dev
|
Data Structures | |
struct | vlc_gl_priv_t |
struct | vlc_gl_surface |
Typedefs | |
typedef struct vlc_gl_surface | vlc_gl_surface_t |
Functions | |
static int | vlc_gl_start (void *func, bool forced, va_list ap) |
vlc_gl_t * | vlc_gl_Create (const struct vout_display_cfg *restrict cfg, unsigned flags, const char *name) |
void | vlc_gl_Hold (vlc_gl_t *gl) |
void | vlc_gl_Release (vlc_gl_t *gl) |
static void | vlc_gl_surface_ResizeNotify (vout_window_t *surface, unsigned width, unsigned height) |
vlc_gl_t * | vlc_gl_surface_Create (vlc_object_t *obj, const vout_window_cfg_t *cfg, struct vout_window_t **restrict wp) |
bool | vlc_gl_surface_CheckSize (vlc_gl_t *gl, unsigned *restrict width, unsigned *restrict height) |
Checks if the dimensions of the surface used by the OpenGL context have changed (since the previous call), and the OpenGL viewport should be updated. More... | |
void | vlc_gl_surface_Destroy (vlc_gl_t *gl) |
typedef struct vlc_gl_surface vlc_gl_surface_t |
vlc_gl_t* vlc_gl_Create | ( | const struct vout_display_cfg *restrict | cfg, |
unsigned | flags, | ||
const char * | name | ||
) |
References vlc_gl_t::getProcAddress, vlc_gl_priv_t::gl, vlc_gl_t::makeCurrent, vlc_gl_t::module, vlc_gl_priv_t::rc, vlc_gl_t::releaseCurrent, vlc_gl_t::surface, vlc_gl_t::swap, unlikely, vlc_atomic_rc_init(), vlc_custom_create, vlc_gl_start(), vlc_module_load, VLC_OBJECT, vlc_object_delete, VLC_OPENGL, and VLC_OPENGL_ES2.
Referenced by vlc_gl_surface_Create().
void vlc_gl_Hold | ( | vlc_gl_t * | gl | ) |
References vlc_gl_priv_t::rc, and vlc_atomic_rc_inc().
void vlc_gl_Release | ( | vlc_gl_t * | gl | ) |
References vlc_gl_t::destroy, vlc_gl_priv_t::rc, vlc_atomic_rc_dec(), VLC_OBJECT, vlc_object_delete, and vlc_objres_clear().
Referenced by vlc_gl_surface_Destroy().
|
static |
References vlc_gl_priv_t::gl, VLC_OBJECT, and vlc_objres_clear().
Referenced by vlc_gl_Create().
bool vlc_gl_surface_CheckSize | ( | vlc_gl_t * | gl, |
unsigned *restrict | width, | ||
unsigned *restrict | height | ||
) |
Checks if the dimensions of the surface used by the OpenGL context have changed (since the previous call), and the OpenGL viewport should be updated.
References vlc_gl_surface::height, vlc_gl_surface::lock, vout_window_t::owner, vlc_gl_t::surface, vout_window_owner::sys, vlc_gl_Resize(), vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_gl_surface::width.
vlc_gl_t* vlc_gl_surface_Create | ( | vlc_object_t * | obj, |
const vout_window_cfg_t * | cfg, | ||
struct vout_window_t **restrict | wp | ||
) |
References vout_window_owner::cbs, vout_display_cfg::display, vout_window_t::display, vlc_gl_priv_t::gl, vout_display_cfg::height, vlc_gl_surface::height, vout_window_cfg_t::height, vlc_gl_surface::lock, vout_window_callbacks::resized, unlikely, var_InheritString(), vlc_gl_Create(), vlc_gl_surface_ResizeNotify(), vlc_mutex_destroy(), vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OPENGL, vout_window_Delete(), vout_window_Enable(), vout_window_New(), vout_display_cfg::width, vlc_gl_surface::width, vout_window_cfg_t::width, and vout_display_cfg::window.
void vlc_gl_surface_Destroy | ( | vlc_gl_t * | gl | ) |
References vlc_gl_surface::lock, vout_window_t::owner, vlc_gl_t::surface, vout_window_owner::sys, vlc_gl_Release(), vlc_mutex_destroy(), vout_window_Delete(), and vout_window_Disable().
Referenced by vlc_gl_GetProcAddress().
|
static |
References vlc_gl_surface::height, vlc_gl_surface::lock, msg_Dbg, vout_window_t::owner, vout_window_owner::sys, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_gl_surface::width.
Referenced by vlc_gl_surface_Create().