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, const struct vlc_gl_cfg *gl_cfg) |
vlc_gl_t * | vlc_gl_CreateOffscreen (vlc_object_t *parent, struct vlc_decoder_device *device, unsigned width, unsigned height, unsigned flags, const char *name, const struct vlc_gl_cfg *gl_cfg) |
void | vlc_gl_Delete (vlc_gl_t *gl) |
static void | vlc_gl_surface_ResizeNotify (vlc_window_t *surface, unsigned width, unsigned height, vlc_window_ack_cb cb, void *opaque) |
vlc_gl_t * | vlc_gl_surface_Create (vlc_object_t *obj, const vlc_window_cfg_t *cfg, struct vlc_window **restrict wp, const struct vlc_gl_cfg *gl_cfg) |
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) |
Variables | |
static const struct vlc_gl_cfg | gl_cfg_default |
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, | ||
const struct vlc_gl_cfg * | gl_cfg | ||
) |
References vlc_gl_t::api_type, vlc_gl_t::device, vlc_gl_operations::get_proc_address, vlc_gl_priv_t::gl, gl_cfg_default, vlc_gl_operations::make_current, vlc_gl_t::module, name, vlc_gl_t::ops, vlc_gl_operations::release_current, vlc_gl_t::surface, vlc_gl_operations::swap, unlikely, 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().
vlc_gl_t * vlc_gl_CreateOffscreen | ( | vlc_object_t * | parent, |
struct vlc_decoder_device * | device, | ||
unsigned | width, | ||
unsigned | height, | ||
unsigned | flags, | ||
const char * | name, | ||
const struct vlc_gl_cfg * | gl_cfg | ||
) |
References vlc_gl_t::api_type, vlc_gl_t::device, vlc_gl_operations::get_proc_address, vlc_gl_priv_t::gl, gl_cfg_default, vlc_gl_operations::make_current, vlc_gl_t::module, name, vlc_gl_t::offscreen_chroma_out, vlc_gl_t::offscreen_vctx_out, vlc_gl_t::offscreen_vflip, vlc_gl_t::ops, vlc_gl_operations::release_current, vlc_gl_t::surface, vlc_gl_operations::swap_offscreen, unlikely, VLC_CODEC_UNKNOWN, vlc_custom_create, vlc_decoder_device_Hold(), vlc_gl_start(), vlc_module_load, vlc_object_delete, VLC_OPENGL, and VLC_OPENGL_ES2.
void vlc_gl_Delete | ( | vlc_gl_t * | gl | ) |
References vlc_gl_operations::close, vlc_gl_t::device, vlc_gl_priv_t::gl, vlc_gl_t::ops, vlc_decoder_device_Release(), VLC_OBJECT, vlc_object_delete, and vlc_objres_clear().
Referenced by vlc_gl_surface_Destroy().
|
static |
References VLC_OBJECT, and vlc_objres_clear().
Referenced by vlc_gl_Create(), and vlc_gl_CreateOffscreen().
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, vlc_window::owner, vlc_gl_t::surface, vlc_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 vlc_window_cfg_t * | cfg, | ||
struct vlc_window **restrict | wp, | ||
const struct vlc_gl_cfg * | gl_cfg | ||
) |
References vlc_window_owner::cbs, vout_display_cfg::display, vlc_window::display, vout_display_placement::height, vlc_window_cfg::height, vlc_gl_surface::height, vlc_gl_surface::lock, vlc_window_callbacks::resized, unlikely, var_InheritString(), vlc_gl_Create(), vlc_gl_surface_ResizeNotify(), vlc_mutex_init(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OPENGL, vlc_window_Delete(), vlc_window_Disable(), vlc_window_Enable(), vlc_window_New(), vout_display_placement::width, vlc_window_cfg::width, vlc_gl_surface::width, and vout_display_cfg::window.
void vlc_gl_surface_Destroy | ( | vlc_gl_t * | gl | ) |
|
static |
References vlc_gl_surface::height, vlc_gl_surface::lock, msg_Dbg, vlc_window::owner, vlc_window_owner::sys, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_gl_surface::width.
Referenced by vlc_gl_surface_Create().
|
static |
Referenced by vlc_gl_Create(), and vlc_gl_CreateOffscreen().