Main Page   Compound List   File List   Compound Members   File Members  

video_out_sdl.c File Reference

Sample video out plugin. More...

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <SDL/SDL.h>
#include "video_out.h"
#include "video_out_internal.h"

Include dependency graph for video_out_sdl.c:

Include dependency graph

Compounds

struct  sdl_frame_s
struct  sdl_instance_s

Typedefs

typedef struct sdl_frame_s  sdl_frame_t
typedef struct sdl_instance_s  sdl_instance_t

Functions

vo_frame_tsdl_get_frame (vo_instance_t *_instance, int flags)
void sdl_draw_frame (vo_frame_t *_frame)
int sdl_alloc_frames (sdl_instance_t *instance, int width, int height)
void sdl_close (vo_instance_t *_instance)
int sdl_setup (vo_instance_t *_instance, int width, int height)
vo_instance_tvo_sdl_open (void)

Detailed Description

Sample video out plugin.

A sample libvo plugin. Using sdl output. Note: This wont work in RL. I took out the static declarations, to make the functions showup in the docs.


Function Documentation

int sdl_alloc_frames ( sdl_instance_t * instance,
int width,
int height )
 

Allocate SDL YUV surfaces

Parameters:
instance   we create the surfaces
width   width of the surface to create
height   height of the surface to create
Returns:
0 on success, 1 on error

void sdl_close ( vo_instance_t * _instance )
 

Close the video output instance

Parameters:
_instance   Instance to close

void sdl_draw_frame ( vo_frame_t * _frame )
 

Draw the specified frame

Parameters:
_frame   Frame we have to draw

vo_frame_t * sdl_get_frame ( vo_instance_t * _instance,
int flags )
 

sdl_get_frame

Parameters:
_instance  
flags  
Returns:
searched frame

int sdl_setup ( vo_instance_t * _instance,
int width,
int height )
 

Setup a specified plugin instance. Pass pre-playback initializion data to the plugin.

Parameters:
_instance   instance we call setup for
width   width of the output window
height   height of the output window
Returns:
0 on success, 1 on error

vo_instance_t * vo_sdl_open ( void )
 

Open a new SDL plugin instance.

Returns:
a pointer to the new instance


Generated at Sat Feb 24 12:06:28 2001 for libvo by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001