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_video.c File Reference
#include "dx_hw.h"
#include <gpac/user.h>
#include <GL/gl.h>
+ Include dependency graph for dx_video.c:

Macros

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;
 
#define WGL_RED_BITS_ARB   0x2015
 
#define WGL_GREEN_BITS_ARB   0x2017
 
#define WGL_BLUE_BITS_ARB   0x2019
 
#define WGL_TEXTURE_FORMAT_ARB   0x2072
 
#define WGL_TEXTURE_TARGET_ARB   0x2073
 
#define WGL_TEXTURE_RGB_ARB   0x2075
 
#define WGL_TEXTURE_RGBA_ARB   0x2076
 
#define WGL_NO_TEXTURE_ARB   0x2077
 
#define WGL_TEXTURE_2D_ARB   0x207A
 
#define WGL_SUPPORT_OPENGL_ARB   0x2010
 
#define WGL_DRAW_TO_PBUFFER_ARB   0x202D
 
#define WGL_BIND_TO_TEXTURE_RGBA_ARB   0x2071
 
#define WGL_COLOR_BITS_ARB   0x2014
 
#define WGL_DEPTH_BITS_ARB   0x2022
 
#define WGL_STENCIL_BITS_ARB   0x2023
 
#define WGL_ACCELERATION_ARB   0x2003
 
#define WGL_GENERIC_ACCELERATION_ARB   0x2026
 
#define WGL_FULL_ACCELERATION_ARB   0x2027
 

Typedefs

typedef Bool(APIENTRY * CHOOSEPFFORMATARB )(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
 
typedef void *(APIENTRY * CREATEPBUFFERARB )(HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
 
typedef void(APIENTRY * DESTROYBUFFERARB )(void *pb)
 
typedef HDC(APIENTRY * GETPBUFFERDCARB )(void *pb)
 
typedef HDC(APIENTRY * RELEASEPBUFFERDCARB )(void *pb, HDC dc)
 

Functions

static void dd_init_gl_offscreen (GF_VideoOutput *driv)
 
static void RestoreWindow (DDContext *dd)
 
void DestroyObjectsEx (DDContext *dd, Bool only_3d)
 
void DestroyObjects (DDContext *dd)
 
GF_Err DD_SetupOpenGL (GF_VideoOutput *dr, u32 offscreen_width, u32 offscreen_height)
 
GF_Err DD_Setup (GF_VideoOutput *dr, void *os_handle, void *os_display, u32 init_flags)
 
static void DD_Shutdown (GF_VideoOutput *dr)
 
static GF_Err DD_SetFullScreen (GF_VideoOutput *dr, Bool bOn, u32 *outWidth, u32 *outHeight)
 
GF_Err DD_Flush (GF_VideoOutput *dr, GF_Window *dest)
 
HRESULT WINAPI EnumDisplayModes (LPDDSURFDESC lpDDDesc, LPVOID lpContext)
 
GF_Err GetDisplayMode (DDContext *dd)
 
static void * NewDXVideoOutput ()
 
static void DeleteVideoOutput (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static CHOOSEPFFORMATARB wglChoosePixelFormatARB = 0
 
static CREATEPBUFFERARB wglCreatePbufferARB = 0
 
static DESTROYBUFFERARB wglDestroyPbufferARB = 0
 
static GETPBUFFERDCARB wglGetPbufferDCARB = 0
 
static RELEASEPBUFFERDCARB wglReleasePbufferDCARB = 0
 

Macro Definition Documentation

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;
#define WGL_RED_BITS_ARB   0x2015
#define WGL_GREEN_BITS_ARB   0x2017
#define WGL_BLUE_BITS_ARB   0x2019
#define WGL_TEXTURE_FORMAT_ARB   0x2072
#define WGL_TEXTURE_TARGET_ARB   0x2073
#define WGL_TEXTURE_RGB_ARB   0x2075
#define WGL_TEXTURE_RGBA_ARB   0x2076
#define WGL_NO_TEXTURE_ARB   0x2077
#define WGL_TEXTURE_2D_ARB   0x207A
#define WGL_SUPPORT_OPENGL_ARB   0x2010
#define WGL_DRAW_TO_PBUFFER_ARB   0x202D
#define WGL_BIND_TO_TEXTURE_RGBA_ARB   0x2071
#define WGL_COLOR_BITS_ARB   0x2014
#define WGL_DEPTH_BITS_ARB   0x2022
#define WGL_STENCIL_BITS_ARB   0x2023
#define WGL_ACCELERATION_ARB   0x2003
#define WGL_GENERIC_ACCELERATION_ARB   0x2026
#define WGL_FULL_ACCELERATION_ARB   0x2027

Typedef Documentation

typedef Bool(APIENTRY * CHOOSEPFFORMATARB)(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
typedef void*(APIENTRY * CREATEPBUFFERARB)(HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
typedef void(APIENTRY * DESTROYBUFFERARB)(void *pb)
typedef HDC(APIENTRY * GETPBUFFERDCARB)(void *pb)
typedef HDC(APIENTRY * RELEASEPBUFFERDCARB)(void *pb, HDC dc)

Function Documentation

static void dd_init_gl_offscreen ( GF_VideoOutput driv)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void RestoreWindow ( DDContext dd)
static

+ Here is the caller graph for this function:

void DestroyObjectsEx ( DDContext dd,
Bool  only_3d 
)

+ Here is the caller graph for this function:

void DestroyObjects ( DDContext dd)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err DD_SetupOpenGL ( GF_VideoOutput dr,
u32  offscreen_width,
u32  offscreen_height 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err DD_Setup ( GF_VideoOutput 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 DD_Shutdown ( GF_VideoOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DD_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 DD_Flush ( GF_VideoOutput dr,
GF_Window dest 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HRESULT WINAPI EnumDisplayModes ( LPDDSURFDESC  lpDDDesc,
LPVOID  lpContext 
)

+ Here is the caller graph for this function:

GF_Err GetDisplayMode ( DDContext dd)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* NewDXVideoOutput ( )
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

CHOOSEPFFORMATARB wglChoosePixelFormatARB = 0
static
CREATEPBUFFERARB wglCreatePbufferARB = 0
static
DESTROYBUFFERARB wglDestroyPbufferARB = 0
static
GETPBUFFERDCARB wglGetPbufferDCARB = 0
static
RELEASEPBUFFERDCARB wglReleasePbufferDCARB = 0
static