GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
video.c File Reference
#include "sdl_out.h"
#include <gpac/user.h>
+ Include dependency graph for video.c:

Macros

#define SDLVID()   SDLVidCtx *ctx = (SDLVidCtx *)dr->opaque
 
#define SDLK_KP_0   SDLK_KP0
 
#define SDLK_KP_1   SDLK_KP1
 
#define SDLK_KP_2   SDLK_KP2
 
#define SDLK_KP_3   SDLK_KP3
 
#define SDLK_KP_4   SDLK_KP4
 
#define SDLK_KP_5   SDLK_KP5
 
#define SDLK_KP_6   SDLK_KP6
 
#define SDLK_KP_7   SDLK_KP7
 
#define SDLK_KP_8   SDLK_KP8
 
#define SDLK_KP_9   SDLK_KP9
 
#define SDLK_NUMLOCKCLEAR   SDLK_NUMLOCK
 
#define SDLK_SCROLLLOCK   SDLK_SCROLLOCK
 
#define SDLK_APPLICATION   SDLK_COMPOSE
 
#define SDLK_PRINTSCREEN   SDLK_PRINT
 
#define SDL_WINDOW_RESIZABLE   SDL_RESIZABLE
 
#define SDL_WINDOW_FLAGS   SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_RESIZABLE
 
#define SDL_FULLSCREEN_FLAGS   SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_FULLSCREEN
 
#define SDL_GL_WINDOW_FLAGS   SDL_HWSURFACE | SDL_OPENGL | SDL_HWACCEL | SDL_RESIZABLE
 
#define SDL_GL_FULLSCREEN_FLAGS   SDL_HWSURFACE | SDL_OPENGL | SDL_HWACCEL | SDL_FULLSCREEN
 

Functions

void SDLVid_SetCaption ()
 
SDL_Cursor * SDLVid_LoadCursor (char *maskdata)
 
static void sdl_translate_key (u32 SDLkey, GF_EventKey *evt)
 
static void SDLVid_DestroyObjects (SDLVidCtx *ctx)
 
GF_Err SDLVid_ResizeWindow (GF_VideoOutput *dr, u32 width, u32 height)
 
static Bool SDLVid_InitializeWindow (SDLVidCtx *ctx, GF_VideoOutput *dr)
 
static void SDLVid_ResetWindow (SDLVidCtx *ctx)
 
static void SDLVid_ShutdownWindow (SDLVidCtx *ctx)
 
Bool SDLVid_ProcessMessageQueue (SDLVidCtx *ctx, GF_VideoOutput *dr)
 
GF_Err SDLVid_Setup (struct _video_out *dr, void *os_handle, void *os_display, u32 init_flags)
 
static void SDLVid_Shutdown (GF_VideoOutput *dr)
 
GF_Err SDLVid_SetFullScreen (GF_VideoOutput *dr, Bool bFullScreenOn, u32 *screen_width, u32 *screen_height)
 
GF_Err SDLVid_SetBackbufferSize (GF_VideoOutput *dr, u32 newWidth, u32 newHeight, Bool system_mem)
 
u32 SDLVid_MapPixelFormat (SDL_PixelFormat *format, Bool force_alpha)
 
static GF_Err SDLVid_LockBackBuffer (GF_VideoOutput *dr, GF_VideoSurface *video_info, Bool do_lock)
 
static GF_Err SDLVid_Flush (GF_VideoOutput *dr, GF_Window *dest)
 
static void SDLVid_SetCursor (GF_VideoOutput *dr, u32 cursor_type)
 
static GF_Err SDLVid_ProcessEvent (GF_VideoOutput *dr, GF_Event *evt)
 
static void copy_yuv (u8 *pYD, u8 *pVD, u8 *pUD, u32 pixel_format, u32 pitch_y, unsigned char *src, u32 src_stride, u32 src_pf, u32 src_width, u32 src_height, const GF_Window *src_wnd)
 
static GF_Err SDL_Blit (GF_VideoOutput *dr, GF_VideoSurface *video_src, GF_Window *src_wnd, GF_Window *dst_wnd, u32 overlay_type)
 
void * SDL_NewVideo ()
 
void SDL_DeleteVideo (void *ifce)
 

Variables

static char hand_data []
 
static char collide_data []
 
static u32 video_modes []
 
static u32 nb_video_modes = 8
 

Macro Definition Documentation

#define SDLVID ( )    SDLVidCtx *ctx = (SDLVidCtx *)dr->opaque
#define SDLK_KP_0   SDLK_KP0
#define SDLK_KP_1   SDLK_KP1
#define SDLK_KP_2   SDLK_KP2
#define SDLK_KP_3   SDLK_KP3
#define SDLK_KP_4   SDLK_KP4
#define SDLK_KP_5   SDLK_KP5
#define SDLK_KP_6   SDLK_KP6
#define SDLK_KP_7   SDLK_KP7
#define SDLK_KP_8   SDLK_KP8
#define SDLK_KP_9   SDLK_KP9
#define SDLK_NUMLOCKCLEAR   SDLK_NUMLOCK
#define SDLK_SCROLLLOCK   SDLK_SCROLLOCK
#define SDLK_APPLICATION   SDLK_COMPOSE
#define SDLK_PRINTSCREEN   SDLK_PRINT
#define SDL_WINDOW_RESIZABLE   SDL_RESIZABLE
#define SDL_WINDOW_FLAGS   SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_RESIZABLE
#define SDL_FULLSCREEN_FLAGS   SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_FULLSCREEN
#define SDL_GL_WINDOW_FLAGS   SDL_HWSURFACE | SDL_OPENGL | SDL_HWACCEL | SDL_RESIZABLE
#define SDL_GL_FULLSCREEN_FLAGS   SDL_HWSURFACE | SDL_OPENGL | SDL_HWACCEL | SDL_FULLSCREEN

Function Documentation

void SDLVid_SetCaption ( )

+ Here is the caller graph for this function:

SDL_Cursor* SDLVid_LoadCursor ( char *  maskdata)

+ Here is the caller graph for this function:

static void sdl_translate_key ( u32  SDLkey,
GF_EventKey evt 
)
static

+ Here is the caller graph for this function:

static void SDLVid_DestroyObjects ( SDLVidCtx ctx)
static

+ Here is the caller graph for this function:

GF_Err SDLVid_ResizeWindow ( GF_VideoOutput dr,
u32  width,
u32  height 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool SDLVid_InitializeWindow ( SDLVidCtx ctx,
GF_VideoOutput dr 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SDLVid_ResetWindow ( SDLVidCtx ctx)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SDLVid_ShutdownWindow ( SDLVidCtx ctx)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool SDLVid_ProcessMessageQueue ( SDLVidCtx ctx,
GF_VideoOutput dr 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err SDLVid_Setup ( struct _video_out *  dr,
void *  os_handle,
void *  os_display,
u32  init_flags 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SDLVid_Shutdown ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err SDLVid_SetFullScreen ( GF_VideoOutput dr,
Bool  bFullScreenOn,
u32 screen_width,
u32 screen_height 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err SDLVid_SetBackbufferSize ( GF_VideoOutput dr,
u32  newWidth,
u32  newHeight,
Bool  system_mem 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 SDLVid_MapPixelFormat ( SDL_PixelFormat *  format,
Bool  force_alpha 
)

+ Here is the caller graph for this function:

static GF_Err SDLVid_LockBackBuffer ( GF_VideoOutput dr,
GF_VideoSurface video_info,
Bool  do_lock 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err SDLVid_Flush ( GF_VideoOutput dr,
GF_Window dest 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SDLVid_SetCursor ( GF_VideoOutput dr,
u32  cursor_type 
)
static

+ Here is the caller graph for this function:

static GF_Err SDLVid_ProcessEvent ( GF_VideoOutput dr,
GF_Event evt 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void copy_yuv ( u8 pYD,
u8 pVD,
u8 pUD,
u32  pixel_format,
u32  pitch_y,
unsigned char *  src,
u32  src_stride,
u32  src_pf,
u32  src_width,
u32  src_height,
const GF_Window src_wnd 
)
static

+ Here is the caller graph for this function:

static GF_Err SDL_Blit ( GF_VideoOutput dr,
GF_VideoSurface video_src,
GF_Window src_wnd,
GF_Window dst_wnd,
u32  overlay_type 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* SDL_NewVideo ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SDL_DeleteVideo ( void *  ifce)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char hand_data[]
static
char collide_data[]
static
u32 video_modes[]
static
Initial value:
=
{
320, 200,
320, 240,
400, 300,
600, 400,
800, 600,
1024, 768,
1152, 864,
1280, 1024
}
u32 nb_video_modes = 8
static