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:
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
|
|
|
Close the video output instance -
Parameters:
-
| _instance
|
Instance to close |
|
|
|
Draw the specified frame -
Parameters:
-
| _frame
|
Frame we have to draw |
|
|
|
sdl_get_frame -
Parameters:
-
-
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
|
|
|
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
1.2.5 written by Dimitri van Heesch,
© 1997-2001