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
gdip_priv.h File Reference
#include <math.h>
#include <gpac/modules/raster2d.h>
#include <gpac/modules/font.h>
#include <windows.h>
#include "GdiplusMem.h"
#include "GdiplusEnums.h"
#include "GdiplusTypes.h"
#include "GdiplusInit.h"
#include "GdiplusPixelFormats.h"
#include "GdiplusColor.h"
#include "GdiplusMetaHeader.h"
#include "GdiplusImaging.h"
#include "GdiplusColorMatrix.h"
#include "GdiplusGpStubs.h"
#include "GdiplusFlat.h"
+ Include dependency graph for gdip_priv.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  _gdip_context
 
struct  _stencil
 
struct  FontPriv
 

Macros

#define SAFEALLOC(__ptr, __struc)   __ptr = (__struc*)gf_malloc(sizeof(__struc)); if (__ptr) memset(__ptr, 0, sizeof(__struc));
 
#define GD_PI   3.1415926536f
 
#define GDIP_DEFAULT_RESOLUTION   64
 
#define GPMATRIX()   GpMatrix * _mat = mat_gpac_to_gdip(mat);
 
#define GPSTEN()   struct _stencil *_sten = (struct _stencil *) _this; assert(_this);
 
#define CHECK(_type)   if (_sten->type!=_type) return;
 
#define CHECK_RET(_type)   if (_sten->type!=_type) return GF_BAD_PARAM;
 
#define CHECK2(_t1, _t2)   if ((_sten->type!=_t1) && (_sten->type!=_t2)) return;
 
#define CHECK2_RET(_t1, _t2)   if ((_sten->type!=_t1) && (_sten->type!=_t2)) return GF_BAD_PARAM;
 

Functions

GpMatrix * mat_gpac_to_gdip (GF_Matrix2D *mat)
 
void cmat_gpac_to_gdip (GF_ColorMatrix *mat, ColorMatrix *matrix)
 
void gdip_cmat_reset (ColorMatrix *matrix)
 
GpPath * gdip_create_path (GF_Path *_this)
 
void gdip_recompute_line_gradient (GF_STENCIL _this)
 
void gdip_recompute_radial_gradient (GF_STENCIL _this)
 
void gdip_load_texture (struct _stencil *sten)
 
void gdip_init_driver_texture (GF_Raster2D *driver)
 
void gdip_init_driver_common (GF_Raster2D *driver)
 
void gdip_init_driver_grad (GF_Raster2D *driver)
 
GF_FontReadergdip_new_font_driver ()
 
void gdip_delete_font_driver (GF_FontReader *dr)
 
GF_Raster2Dgdip_LoadRenderer ()
 
void gdip_ShutdownRenderer (GF_Raster2D *driver)
 

Data Structure Documentation

struct _gdip_context
+ Collaboration diagram for _gdip_context:
Data Fields
ULONG_PTR gdiToken
struct _stencil
+ Collaboration diagram for _stencil:
Data Fields
GF_StencilType type
GF_GradientMode spread
GF_TextureTiling tiling
GpSolidFill * pSolid
GpMatrix * pMat
GpLineGradient * pLinear
GpMatrix * pLinearMat
GpPointF start
GpPointF end
GpPathGradient * pRadial
GpPointF center
GpPointF radius
GpPointF focal
GpPath * circle
REAL * pos
ARGB * cols
u32 num_pos
Bool needs_rebuild
GpTexture * pTexture
GpBitmap * pBitmap
u32 width
u32 height
ColorMatrix cmat
Bool has_cmat
PixelFormat format
Bool invert_br
GF_TextureFilter tFilter
Bool texture_invalid
GF_Rect wnd
u8 alpha
unsigned char * conv_buf
u32 conv_size
unsigned char * orig_buf
u32 orig_stride
u32 orig_format
Bool is_converted
u32 destination_format
struct FontPriv
+ Collaboration diagram for FontPriv:
Data Fields
ULONG_PTR gdiToken
Float em_size
Float descent
Float ascent
s32 font_style
Float whitespace_width
Float underscore_width
GpFontFamily * font
char font_serif[1024]
char font_sans[1024]
char font_fixed[1024]

Macro Definition Documentation

#define SAFEALLOC (   __ptr,
  __struc 
)    __ptr = (__struc*)gf_malloc(sizeof(__struc)); if (__ptr) memset(__ptr, 0, sizeof(__struc));
#define GD_PI   3.1415926536f
#define GDIP_DEFAULT_RESOLUTION   64
#define GPMATRIX ( )    GpMatrix * _mat = mat_gpac_to_gdip(mat);
#define GPSTEN ( )    struct _stencil *_sten = (struct _stencil *) _this; assert(_this);
#define CHECK (   _type)    if (_sten->type!=_type) return;
#define CHECK_RET (   _type)    if (_sten->type!=_type) return GF_BAD_PARAM;
#define CHECK2 (   _t1,
  _t2 
)    if ((_sten->type!=_t1) && (_sten->type!=_t2)) return;
#define CHECK2_RET (   _t1,
  _t2 
)    if ((_sten->type!=_t1) && (_sten->type!=_t2)) return GF_BAD_PARAM;

Function Documentation

GpMatrix* mat_gpac_to_gdip ( GF_Matrix2D mat)

+ Here is the caller graph for this function:

void cmat_gpac_to_gdip ( GF_ColorMatrix mat,
ColorMatrix *  matrix 
)

+ Here is the caller graph for this function:

void gdip_cmat_reset ( ColorMatrix *  matrix)

+ Here is the caller graph for this function:

GpPath* gdip_create_path ( GF_Path _this)

+ Here is the caller graph for this function:

void gdip_recompute_line_gradient ( GF_STENCIL  _this)

+ Here is the caller graph for this function:

void gdip_recompute_radial_gradient ( GF_STENCIL  _this)

+ Here is the caller graph for this function:

void gdip_load_texture ( struct _stencil sten)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gdip_init_driver_texture ( GF_Raster2D driver)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gdip_init_driver_common ( GF_Raster2D driver)
void gdip_init_driver_grad ( GF_Raster2D driver)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_FontReader* gdip_new_font_driver ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gdip_delete_font_driver ( GF_FontReader dr)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Raster2D* gdip_LoadRenderer ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gdip_ShutdownRenderer ( GF_Raster2D driver)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: