libgpac
Documentation of the core library of GPAC
dx_video.c File Reference
#include "dx_hw.h"
#include <GL/gl.h>
+ Include dependency graph for dx_video.c:

Macros

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;
 
#define WGL_DRAW_TO_WINDOW_ARB   0x2001
 
#define WGL_PIXEL_TYPE_ARB   0x2013
 
#define WGL_RED_BITS_ARB   0x2015
 
#define WGL_GREEN_BITS_ARB   0x2017
 
#define WGL_BLUE_BITS_ARB   0x2019
 
#define WGL_ALPHA_BITS_ARB   0x201B
 
#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_DOUBLE_BUFFER_ARB   0x2011
 
#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
 
#define WGL_TYPE_RGBA_ARB   0x202B
 

Typedefs

typedef Bool(APIENTRY * CHOOSEPFFORMATARB) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
 
typedef Bool(APIENTRY * GETPIXELFORMATATTRIBIV) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues)
 
typedef BOOL(APIENTRY * PFNWGLSWAPINTERVALFARPROC) (int)
 

Functions

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)
 
void DD_ShowTaskbar (Bool show)
 
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)
 
GPAC_MODULE_EXPORT const u32QueryInterfaces ()
 
GPAC_MODULE_EXPORT GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
GPAC_MODULE_EXPORT void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static CHOOSEPFFORMATARB wglChoosePixelFormatARB = NULL
 
static GETPIXELFORMATATTRIBIV wglGetPixelFormatAttribivARB = NULL
 
PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = NULL
 

Macro Definition Documentation

◆ DDCONTEXT

#define DDCONTEXT   DDContext *dd = (DDContext *)dr->opaque;

◆ WGL_DRAW_TO_WINDOW_ARB

#define WGL_DRAW_TO_WINDOW_ARB   0x2001

◆ WGL_PIXEL_TYPE_ARB

#define WGL_PIXEL_TYPE_ARB   0x2013

◆ WGL_RED_BITS_ARB

#define WGL_RED_BITS_ARB   0x2015

◆ WGL_GREEN_BITS_ARB

#define WGL_GREEN_BITS_ARB   0x2017

◆ WGL_BLUE_BITS_ARB

#define WGL_BLUE_BITS_ARB   0x2019

◆ WGL_ALPHA_BITS_ARB

#define WGL_ALPHA_BITS_ARB   0x201B

◆ WGL_TEXTURE_FORMAT_ARB

#define WGL_TEXTURE_FORMAT_ARB   0x2072

◆ WGL_TEXTURE_TARGET_ARB

#define WGL_TEXTURE_TARGET_ARB   0x2073

◆ WGL_TEXTURE_RGB_ARB

#define WGL_TEXTURE_RGB_ARB   0x2075

◆ WGL_TEXTURE_RGBA_ARB

#define WGL_TEXTURE_RGBA_ARB   0x2076

◆ WGL_NO_TEXTURE_ARB

#define WGL_NO_TEXTURE_ARB   0x2077

◆ WGL_TEXTURE_2D_ARB

#define WGL_TEXTURE_2D_ARB   0x207A

◆ WGL_SUPPORT_OPENGL_ARB

#define WGL_SUPPORT_OPENGL_ARB   0x2010

◆ WGL_DOUBLE_BUFFER_ARB

#define WGL_DOUBLE_BUFFER_ARB   0x2011

◆ WGL_DRAW_TO_PBUFFER_ARB

#define WGL_DRAW_TO_PBUFFER_ARB   0x202D

◆ WGL_BIND_TO_TEXTURE_RGBA_ARB

#define WGL_BIND_TO_TEXTURE_RGBA_ARB   0x2071

◆ WGL_COLOR_BITS_ARB

#define WGL_COLOR_BITS_ARB   0x2014

◆ WGL_DEPTH_BITS_ARB

#define WGL_DEPTH_BITS_ARB   0x2022

◆ WGL_STENCIL_BITS_ARB

#define WGL_STENCIL_BITS_ARB   0x2023

◆ WGL_ACCELERATION_ARB

#define WGL_ACCELERATION_ARB   0x2003

◆ WGL_GENERIC_ACCELERATION_ARB

#define WGL_GENERIC_ACCELERATION_ARB   0x2026

◆ WGL_FULL_ACCELERATION_ARB

#define WGL_FULL_ACCELERATION_ARB   0x2027

◆ WGL_TYPE_RGBA_ARB

#define WGL_TYPE_RGBA_ARB   0x202B

Typedef Documentation

◆ CHOOSEPFFORMATARB

typedef Bool(APIENTRY * CHOOSEPFFORMATARB) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)

◆ GETPIXELFORMATATTRIBIV

typedef Bool(APIENTRY * GETPIXELFORMATATTRIBIV) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues)

◆ PFNWGLSWAPINTERVALFARPROC

typedef BOOL(APIENTRY * PFNWGLSWAPINTERVALFARPROC) (int)

Function Documentation

◆ RestoreWindow()

static void RestoreWindow ( DDContext dd)
static
+ Here is the caller graph for this function:

◆ DestroyObjectsEx()

void DestroyObjectsEx ( DDContext dd,
Bool  only_3d 
)
+ Here is the caller graph for this function:

◆ DestroyObjects()

void DestroyObjects ( DDContext dd)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_SetupOpenGL()

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:

◆ DD_Setup()

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:

◆ DD_Shutdown()

static void DD_Shutdown ( GF_VideoOutput dr)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_ShowTaskbar()

void DD_ShowTaskbar ( Bool  show)
+ Here is the caller graph for this function:

◆ DD_SetFullScreen()

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:

◆ DD_Flush()

GF_Err DD_Flush ( GF_VideoOutput dr,
GF_Window dest 
)
+ Here is the caller graph for this function:

◆ EnumDisplayModes()

HRESULT WINAPI EnumDisplayModes ( LPDDSURFDESC  lpDDDesc,
LPVOID  lpContext 
)
+ Here is the caller graph for this function:

◆ GetDisplayMode()

GF_Err GetDisplayMode ( DDContext dd)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewDXVideoOutput()

static void* NewDXVideoOutput ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeleteVideoOutput()

static void DeleteVideoOutput ( void *  ifce)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueryInterfaces()

GPAC_MODULE_EXPORT const u32* QueryInterfaces ( )

◆ LoadInterface()

GPAC_MODULE_EXPORT GF_BaseInterface* LoadInterface ( u32  InterfaceType)
+ Here is the call graph for this function:

◆ ShutdownInterface()

GPAC_MODULE_EXPORT void ShutdownInterface ( GF_BaseInterface ifce)
+ Here is the call graph for this function:

Variable Documentation

◆ wglChoosePixelFormatARB

CHOOSEPFFORMATARB wglChoosePixelFormatARB = NULL
static

◆ wglGetPixelFormatAttribivARB

GETPIXELFORMATATTRIBIV wglGetPixelFormatAttribivARB = NULL
static

◆ wglSwapIntervalEXT

PFNWGLSWAPINTERVALFARPROC wglSwapIntervalEXT = NULL