xine-lib 1.2.11
Data Structures | Macros | Functions | Variables
xine_egl.c File Reference
#include "xine_gl.h"
#include <stdlib.h>
#include <xine.h>
#include <xine/xine_internal.h>
#include "xine_gl_plugin.h"
#include <EGL/egl.h>

Data Structures

struct  xine_egl_t
 

Macros

#define EGL(_gl)   xine_container_of(_gl, xine_egl_t, p.gl)
 

Functions

static const char * _egl_error_str (EGLint error)
 
static void _egl_log_error (xine_t *xine, const char *msg)
 
static int _egl_make_current (xine_gl_t *gl)
 
static void _egl_release_current (xine_gl_t *gl)
 
static void _egl_swap_buffers (xine_gl_t *gl)
 
static void _egl_set_native_window (xine_gl_t *gl, void *drawable)
 
static void _egl_resize (xine_gl_t *gl, int w, int h)
 
static int _egl_init (xine_egl_t *egl, EGLNativeDisplayType native_display)
 
static void _egl_dispose (xine_gl_t *gl)
 
static void _module_dispose (xine_module_t *module)
 
static xine_module_t_egl_get_instance (xine_module_class_t *class_gen, const void *data)
 
static void * egl_init_class (xine_t *xine, const void *params)
 

Variables

const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ EGL

#define EGL (   _gl)    xine_container_of(_gl, xine_egl_t, p.gl)

Function Documentation

◆ _egl_dispose()

static void _egl_dispose ( xine_gl_t gl)
static

◆ _egl_error_str()

static const char * _egl_error_str ( EGLint  error)
static

Referenced by _egl_log_error().

◆ _egl_get_instance()

static xine_module_t * _egl_get_instance ( xine_module_class_t class_gen,
const void *  data 
)
static

◆ _egl_init()

static int _egl_init ( xine_egl_t egl,
EGLNativeDisplayType  native_display 
)
static

◆ _egl_log_error()

static void _egl_log_error ( xine_t xine,
const char *  msg 
)
inlinestatic

◆ _egl_make_current()

static int _egl_make_current ( xine_gl_t gl)
static

◆ _egl_release_current()

static void _egl_release_current ( xine_gl_t gl)
static

◆ _egl_resize()

static void _egl_resize ( xine_gl_t gl,
int  w,
int  h 
)
static

References EGL.

Referenced by _egl_get_instance().

◆ _egl_set_native_window()

static void _egl_set_native_window ( xine_gl_t gl,
void *  drawable 
)
static

◆ _egl_swap_buffers()

static void _egl_swap_buffers ( xine_gl_t gl)
static

◆ _module_dispose()

static void _module_dispose ( xine_module_t module)
static

◆ egl_init_class()

static void * egl_init_class ( xine_t xine,
const void *  params 
)
static

Variable Documentation

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_XINE_MODULE, 1, "egl", XINE_VERSION_CODE, &module_info_egl, egl_init_class },
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL },
}
static void * egl_init_class(xine_t *xine, const void *params)
Definition: xine_egl.c:316
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
NULL
Definition: xine_plugin.c:78
#define PLUGIN_NONE
Definition: xine_plugin.h:29
#define PLUGIN_XINE_MODULE
Definition: xine_plugin.h:41