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
dx_2d.c File Reference
#include "dx_hw.h"
+ Include dependency graph for dx_2d.c:

Macros

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;
 
#define DDBACK   DDSurface *pBack = (DDSurface *) gf_list_get(dd->surfaces, 0);
 
#define YUV_NUM_TEST   20
 

Functions

static Bool pixelformat_yuv (u32 pixel_format)
 
static u32 get_win_4CC (u32 pixel_format)
 
static GF_Err DD_ClearBackBuffer (GF_VideoOutput *dr, u32 color)
 
GF_Err CreateBackBuffer (GF_VideoOutput *dr, u32 Width, u32 Height, Bool use_system_memory)
 
GF_Err InitDirectDraw (GF_VideoOutput *dr, u32 Width, u32 Height)
 
static GF_Err DD_LockSurface (DDContext *dd, GF_VideoSurface *vi, LPDDRAWSURFACE surface)
 
static GF_Err DD_UnlockSurface (DDContext *dd, LPDDRAWSURFACE surface)
 
static GF_Err DD_LockBackBuffer (GF_VideoOutput *dr, GF_VideoSurface *vi, Bool do_lock)
 
static void * LockOSContext (GF_VideoOutput *dr, Bool do_lock)
 
static GF_Err DD_BlitSurface (DDContext *dd, DDSurface *src, GF_Window *src_wnd, GF_Window *dst_wnd, GF_ColorKey *key)
 
static DDSurfaceDD_GetSurface (GF_VideoOutput *dr, u32 width, u32 height, u32 pixel_format, Bool check_caps)
 
static GF_Err DD_Blit (GF_VideoOutput *dr, GF_VideoSurface *video_src, GF_Window *src_wnd, GF_Window *dst_wnd, u32 overlay_type)
 
static u32 is_yuv_supported (u32 win_4cc)
 
static Bool is_yuv_planar (u32 format)
 
void DD_InitYUV (GF_VideoOutput *dr)
 
GF_Err DD_SetBackBufferSize (GF_VideoOutput *dr, u32 width, u32 height, Bool use_system_memory)
 
void DD_SetupDDraw (GF_VideoOutput *driv)
 

Macro Definition Documentation

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;
#define DDBACK   DDSurface *pBack = (DDSurface *) gf_list_get(dd->surfaces, 0);
#define YUV_NUM_TEST   20

Function Documentation

static Bool pixelformat_yuv ( u32  pixel_format)
static

+ Here is the caller graph for this function:

static u32 get_win_4CC ( u32  pixel_format)
static

+ Here is the caller graph for this function:

static GF_Err DD_ClearBackBuffer ( GF_VideoOutput dr,
u32  color 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err CreateBackBuffer ( GF_VideoOutput dr,
u32  Width,
u32  Height,
Bool  use_system_memory 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err InitDirectDraw ( GF_VideoOutput dr,
u32  Width,
u32  Height 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DD_LockSurface ( DDContext dd,
GF_VideoSurface vi,
LPDDRAWSURFACE  surface 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DD_UnlockSurface ( DDContext dd,
LPDDRAWSURFACE  surface 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DD_LockBackBuffer ( GF_VideoOutput dr,
GF_VideoSurface vi,
Bool  do_lock 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* LockOSContext ( GF_VideoOutput dr,
Bool  do_lock 
)
static

+ Here is the caller graph for this function:

static GF_Err DD_BlitSurface ( DDContext dd,
DDSurface src,
GF_Window src_wnd,
GF_Window dst_wnd,
GF_ColorKey key 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static DDSurface* DD_GetSurface ( GF_VideoOutput dr,
u32  width,
u32  height,
u32  pixel_format,
Bool  check_caps 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DD_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:

static u32 is_yuv_supported ( u32  win_4cc)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool is_yuv_planar ( u32  format)
static

+ Here is the caller graph for this function:

void DD_InitYUV ( GF_VideoOutput dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err DD_SetBackBufferSize ( GF_VideoOutput dr,
u32  width,
u32  height,
Bool  use_system_memory 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DD_SetupDDraw ( GF_VideoOutput driv)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: