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
gapi.cpp File Reference
#include <windows.h>
#include <aygshell.h>
#include <wingdi.h>
#include <gx.h>
#include "gapi.h"
+ Include dependency graph for gapi.cpp:

Data Structures

struct  GXDeviceInfo
 
struct  RawFrameBufferInfo
 

Macros

#define PRINT(__str)   OutputDebugString(_T(__str))
 
#define GAPICTX(dr)   GAPIPriv *gctx = (GAPIPriv *) dr->opaque;
 
#define ESC_QUERYESCSUPPORT   8
 
#define GETGXINFO   0x00020000
 
#define GETRAWFRAMEBUFFER   0x00020001
 
#define FORMAT_565   1
 
#define FORMAT_555   2
 
#define FORMAT_OTHER   3
 

Functions

static GF_Err GAPI_InitBackBuffer (GF_VideoOutput *dr, u32 VideoWidth, u32 VideoHeight)
 
static void GAPI_GetCoordinates (DWORD lParam, GF_Event *evt)
 
static void w32_translate_key (u32 wParam, u32 lParam, GF_EventKey *evt)
 
LRESULT APIENTRY GAPI_WindowProc (HWND hWnd, UINT msg, UINT wParam, LONG lParam)
 
void GAPI_WindowThread (void *par)
 
void GAPI_SetupWindow (GF_VideoOutput *dr)
 
void GAPI_ShutdownWindow (GF_VideoOutput *dr)
 
GF_Err GAPI_Clear (GF_VideoOutput *dr, u32 color)
 
static void createPixmap (GAPIPriv *ctx, u32 pix_type)
 
void GAPI_ReleaseObjects (GAPIPriv *ctx)
 
GF_Err GAPI_Setup (GF_VideoOutput *dr, void *os_handle, void *os_display, u32 noover)
 
static void GAPI_Shutdown (GF_VideoOutput *dr)
 
static GF_Err GAPI_SetFullScreen (GF_VideoOutput *dr, Bool bOn, u32 *outWidth, u32 *outHeight)
 
GF_Err GAPI_ClearFS (GAPIPriv *gctx, unsigned char *ptr)
 
static GF_Err GAPI_FlipBackBuffer (GF_VideoOutput *dr)
 
static GF_Err GAPI_Flush (GF_VideoOutput *dr, GF_Window *dest)
 
u32 get_sys_col (int idx)
 
static GF_Err GAPI_ProcessEvent (GF_VideoOutput *dr, GF_Event *evt)
 
static Bool check_resolution_switch (GF_VideoOutput *dr, u32 width, u32 height)
 
static GF_Err gapi_get_raw_fb (GF_VideoOutput *dr)
 
static void GAPI_AdjustLandscape (GAPIPriv *gctx, GF_VideoSurface *dst, s32 x_pitch, s32 y_pitch)
 
static GF_Err GAPI_LockBackBuffer (GF_VideoOutput *dr, GF_VideoSurface *vi, Bool do_lock)
 
static void * NewGAPIVideoOutput ()
 
static void DeleteVideoOutput (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static Bool landscape = GF_FALSE
 
static GF_VideoOutputthe_video_driver = 0
 

Data Structure Documentation

struct GXDeviceInfo
+ Collaboration diagram for GXDeviceInfo:
Data Fields
long Version
void * pvFrameBuffer
unsigned long cbStride
unsigned long cxWidth
unsigned long cyHeight
unsigned long cBPP
unsigned long ffFormat
char Unused[0x84-7 *4]
struct RawFrameBufferInfo
+ Collaboration diagram for RawFrameBufferInfo:
Data Fields
WORD wFormat
WORD wBPP
VOID * pFramePointer
int cxStride
int cyStride
int cxPixels
int cyPixels

Macro Definition Documentation

#define PRINT (   __str)    OutputDebugString(_T(__str))
#define GAPICTX (   dr)    GAPIPriv *gctx = (GAPIPriv *) dr->opaque;
#define ESC_QUERYESCSUPPORT   8
#define GETGXINFO   0x00020000
#define GETRAWFRAMEBUFFER   0x00020001
#define FORMAT_565   1
#define FORMAT_555   2
#define FORMAT_OTHER   3

Function Documentation

static GF_Err GAPI_InitBackBuffer ( GF_VideoOutput dr,
u32  VideoWidth,
u32  VideoHeight 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void GAPI_GetCoordinates ( DWORD  lParam,
GF_Event evt 
)
static

+ Here is the caller graph for this function:

static void w32_translate_key ( u32  wParam,
u32  lParam,
GF_EventKey evt 
)
static

+ Here is the caller graph for this function:

LRESULT APIENTRY GAPI_WindowProc ( HWND  hWnd,
UINT  msg,
UINT  wParam,
LONG  lParam 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GAPI_WindowThread ( void *  par)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GAPI_SetupWindow ( GF_VideoOutput dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GAPI_ShutdownWindow ( GF_VideoOutput dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err GAPI_Clear ( GF_VideoOutput dr,
u32  color 
)
static void createPixmap ( GAPIPriv ctx,
u32  pix_type 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GAPI_ReleaseObjects ( GAPIPriv ctx)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err GAPI_Setup ( GF_VideoOutput dr,
void *  os_handle,
void *  os_display,
u32  noover 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void GAPI_Shutdown ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err GAPI_SetFullScreen ( GF_VideoOutput dr,
Bool  bOn,
u32 outWidth,
u32 outHeight 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err GAPI_ClearFS ( GAPIPriv gctx,
unsigned char *  ptr 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err GAPI_FlipBackBuffer ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err GAPI_Flush ( GF_VideoOutput dr,
GF_Window dest 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 get_sys_col ( int  idx)

+ Here is the caller graph for this function:

static GF_Err GAPI_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 Bool check_resolution_switch ( GF_VideoOutput dr,
u32  width,
u32  height 
)
static

+ Here is the caller graph for this function:

static GF_Err gapi_get_raw_fb ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void GAPI_AdjustLandscape ( GAPIPriv gctx,
GF_VideoSurface dst,
s32  x_pitch,
s32  y_pitch 
)
static

+ Here is the caller graph for this function:

static GF_Err GAPI_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* NewGAPIVideoOutput ( )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void DeleteVideoOutput ( void *  ifce)
static

+ Here is the call graph for this function:

const u32* QueryInterfaces ( )
GF_BaseInterface* LoadInterface ( u32  InterfaceType)

+ Here is the call graph for this function:

void ShutdownInterface ( GF_BaseInterface ifce)

+ Here is the call graph for this function:

Variable Documentation

Bool landscape = GF_FALSE
static
GF_VideoOutput* the_video_driver = 0
static