GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#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"
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_FontReader * | gdip_new_font_driver () |
void | gdip_delete_font_driver (GF_FontReader *dr) |
GF_Raster2D * | gdip_LoadRenderer () |
void | gdip_ShutdownRenderer (GF_Raster2D *driver) |
struct _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 |
#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 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; |
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_FontReader* gdip_new_font_driver | ( | ) |
void gdip_delete_font_driver | ( | GF_FontReader * | dr | ) |
GF_Raster2D* gdip_LoadRenderer | ( | ) |
void gdip_ShutdownRenderer | ( | GF_Raster2D * | driver | ) |