xine-lib 1.2.11
Data Structures | Macros | Typedefs | Functions | Variables
video_out_sdl.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <pthread.h>
#include <SDL.h>
#include "xine.h"
#include <xine/xine_internal.h>
#include <xine/video_out.h>
#include <xine/xineutils.h>
#include <xine/vo_scale.h>

Data Structures

struct  sdl_frame_s
 
struct  sdl_driver_s
 
struct  sdl_class_t
 

Macros

#define LOG_MODULE   "video_out_sdl"
 
#define LOG_VERBOSE
 

Typedefs

typedef struct sdl_driver_s sdl_driver_t
 
typedef struct sdl_frame_s sdl_frame_t
 

Functions

static uint32_t sdl_get_capabilities (vo_driver_t *this_gen)
 
static void sdl_frame_field (vo_frame_t *vo_img, int which_field)
 
static void sdl_frame_dispose (vo_frame_t *vo_img)
 
static vo_frame_tsdl_alloc_frame (vo_driver_t *this_gen)
 
static void sdl_compute_ideal_size (sdl_driver_t *this)
 
static void sdl_compute_output_size (sdl_driver_t *this)
 
static void sdl_update_frame_format (vo_driver_t *this_gen, vo_frame_t *frame_gen, uint32_t width, uint32_t height, double ratio, int format, int flags)
 
static void sdl_overlay_blend (vo_driver_t *this_gen, vo_frame_t *frame_gen, vo_overlay_t *overlay)
 
static void sdl_check_events (sdl_driver_t *this)
 
static int sdl_redraw_needed (vo_driver_t *this_gen)
 
static void sdl_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen)
 
static int sdl_get_property (vo_driver_t *this_gen, int property)
 
static int sdl_set_property (vo_driver_t *this_gen, int property, int value)
 
static void sdl_get_property_min_max (vo_driver_t *this_gen, int property, int *min, int *max)
 
static int sdl_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *data)
 
static void sdl_dispose (vo_driver_t *this_gen)
 
static vo_driver_topen_plugin (video_driver_class_t *class_gen, const void *visual_gen)
 
static void * init_class (xine_t *xine, const void *visual_gen)
 
static void * init_class_fb (xine_t *xine, const void *visual_gen)
 

Variables

static const vo_info_t vo_info_sdl
 
static const vo_info_t vo_info_sdl_fb
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "video_out_sdl"

◆ LOG_VERBOSE

#define LOG_VERBOSE

Typedef Documentation

◆ sdl_driver_t

typedef struct sdl_driver_s sdl_driver_t

◆ sdl_frame_t

typedef struct sdl_frame_s sdl_frame_t

Function Documentation

◆ init_class()

static void * init_class ( xine_t xine,
const void *  visual_gen 
)
static

◆ init_class_fb()

static void * init_class_fb ( xine_t xine,
const void *  visual_gen 
)
static

◆ open_plugin()

static vo_driver_t * open_plugin ( video_driver_class_t class_gen,
const void *  visual_gen 
)
static

◆ sdl_alloc_frame()

static vo_frame_t * sdl_alloc_frame ( vo_driver_t this_gen)
static

◆ sdl_check_events()

static void sdl_check_events ( sdl_driver_t this)
static

References sdl_compute_output_size().

Referenced by sdl_display_frame().

◆ sdl_compute_ideal_size()

static void sdl_compute_ideal_size ( sdl_driver_t this)
static

◆ sdl_compute_output_size()

static void sdl_compute_output_size ( sdl_driver_t this)
static

◆ sdl_display_frame()

static void sdl_display_frame ( vo_driver_t this_gen,
vo_frame_t frame_gen 
)
static

◆ sdl_dispose()

static void sdl_dispose ( vo_driver_t this_gen)
static

References _x_alphablend_free(), and _x_vo_scale_cleanup().

Referenced by open_plugin().

◆ sdl_frame_dispose()

static void sdl_frame_dispose ( vo_frame_t vo_img)
static

References sdl_frame_s::overlay.

Referenced by sdl_alloc_frame().

◆ sdl_frame_field()

static void sdl_frame_field ( vo_frame_t vo_img,
int  which_field 
)
static

Referenced by sdl_alloc_frame().

◆ sdl_get_capabilities()

static uint32_t sdl_get_capabilities ( vo_driver_t this_gen)
static

Referenced by open_plugin().

◆ sdl_get_property()

static int sdl_get_property ( vo_driver_t this_gen,
int  property 
)
static

◆ sdl_get_property_min_max()

static void sdl_get_property_min_max ( vo_driver_t this_gen,
int  property,
int *  min,
int *  max 
)
static

Referenced by open_plugin().

◆ sdl_gui_data_exchange()

static int sdl_gui_data_exchange ( vo_driver_t this_gen,
int  data_type,
void *  data 
)
static

◆ sdl_overlay_blend()

static void sdl_overlay_blend ( vo_driver_t this_gen,
vo_frame_t frame_gen,
vo_overlay_t overlay 
)
static

◆ sdl_redraw_needed()

static int sdl_redraw_needed ( vo_driver_t this_gen)
static

◆ sdl_set_property()

static int sdl_set_property ( vo_driver_t this_gen,
int  property,
int  value 
)
static

◆ sdl_update_frame_format()

static void sdl_update_frame_format ( vo_driver_t this_gen,
vo_frame_t frame_gen,
uint32_t  width,
uint32_t  height,
double  ratio,
int  format,
int  flags 
)
static

Variable Documentation

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static const vo_info_t vo_info_sdl
Definition: video_out_sdl.c:626
static void * init_class(xine_t *xine, const void *visual_gen)
Definition: video_out_sdl.c:587
static const vo_info_t vo_info_sdl_fb
Definition: video_out_sdl.c:631
static void * init_class_fb(xine_t *xine, const void *visual_gen)
Definition: video_out_sdl.c:616
#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_VIDEO_OUT
Definition: xine_plugin.h:36

◆ vo_info_sdl

const vo_info_t vo_info_sdl
static
Initial value:
= {
.priority = 4,
.visual_type = XINE_VISUAL_TYPE_X11,
}
#define XINE_VISUAL_TYPE_X11
Definition: xine.h:154

◆ vo_info_sdl_fb

const vo_info_t vo_info_sdl_fb
static
Initial value:
= {
.priority = 4,
.visual_type = XINE_VISUAL_TYPE_FB,
}
#define XINE_VISUAL_TYPE_FB
Definition: xine.h:157