Qt 4.8
|
#include <string.h>
#include <setjmp.h>
#include <limits.h>
#include <private/qrasterdefs_p.h>
#include <private/qgrayraster_p.h>
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
Classes | |
struct | TBand_ |
struct | TCell_ |
struct | TRaster_ |
struct | TWorker_ |
Macros | |
#define | CEILING(x) ( ( (x) + ONE_PIXEL - 1 ) & -ONE_PIXEL ) |
#define | DOWNSCALE(x) ( (x) >> ( PIXEL_BITS - 6 ) ) |
#define | ErrRaster_Invalid_Argument -3 |
#define | ErrRaster_Invalid_Mode -2 |
#define | ErrRaster_Invalid_Outline -1 |
#define | ErrRaster_Memory_Overflow -4 |
#define | ErrRaster_MemoryOverflow -4 |
#define | ErrRaster_OutOfMemory -6 |
#define | FLOOR(x) ( (x) & -ONE_PIXEL ) |
#define | ONE_PIXEL ( 1L << PIXEL_BITS ) |
#define | PIXEL_BITS 8 |
#define | PIXEL_MASK ( -1L << PIXEL_BITS ) |
#define | QT_FT_BEGIN_HEADER |
#define | QT_FT_COMPONENT trace_smooth |
#define | QT_FT_END_HEADER |
#define | QT_FT_ERROR(x) do ; while ( 0 ) /* nothing */ |
#define | qt_ft_jmp_buf jmp_buf |
#define | qt_ft_longjmp longjmp |
#define | QT_FT_MAX_GRAY_SPANS 256 |
#define | QT_FT_MEM_SET(d, s, c) qt_ft_memset( d, s, c ) |
#define | QT_FT_MEM_ZERO(dest, count) QT_FT_MEM_SET( dest, 0, count ) |
#define | qt_ft_memset memset |
#define | qt_ft_setjmp setjmp |
#define | QT_FT_TRACE(x) do ; while ( 0 ) /* nothing */ |
#define | QT_FT_UINT_MAX UINT_MAX |
#define | QT_FT_UNUSED(x) (x) = (x) |
#define | ras (*worker) |
#define | RAS_ARG PWorker worker |
#define | RAS_ARG_ PWorker worker, |
#define | RAS_VAR worker |
#define | RAS_VAR_ worker, |
#define | ROUND(x) ( ( (x) + ONE_PIXEL / 2 ) & -ONE_PIXEL ) |
#define | SCALED(x) (x) |
#define | SUBPIXELS(x) ( (TPos)(x) << PIXEL_BITS ) |
#define | TRUNC(x) ( (TCoord)( (x) >> PIXEL_BITS ) ) |
#define | UPSCALE(x) ( (x) << ( PIXEL_BITS - 6 ) ) |
#define | xxxDEBUG_GRAYS |
#define | xxxGRAYS_USE_GAMMA |
Typedefs | |
typedef struct TCell_ * | PCell |
typedef struct TRaster_ * | PRaster |
typedef struct TWorker_ * | PWorker |
typedef int | TArea |
typedef struct TBand_ | TBand |
typedef struct TCell_ | TCell |
typedef int | TCoord |
typedef int | TPos |
typedef struct TRaster_ | TRaster |
typedef struct TWorker_ | TWorker |
Variables | |
const QT_FT_Raster_Funcs | qt_ft_grays_raster |
Definition at line 215 of file qgrayraster.c.
#define DOWNSCALE | ( | x | ) | ( (x) >> ( PIXEL_BITS - 6 ) ) |
Definition at line 220 of file qgrayraster.c.
Referenced by gray_render_conic(), and gray_render_cubic().
#define ErrRaster_Invalid_Argument -3 |
Definition at line 157 of file qgrayraster.c.
Referenced by gray_raster_render().
#define ErrRaster_Invalid_Mode -2 |
Definition at line 155 of file qgrayraster.c.
Referenced by gray_raster_render().
#define ErrRaster_Invalid_Outline -1 |
Definition at line 156 of file qgrayraster.c.
Referenced by gray_raster_render(), and QT_FT_Outline_Decompose().
#define ErrRaster_Memory_Overflow -4 |
Definition at line 158 of file qgrayraster.c.
Referenced by gray_convert_glyph(), gray_convert_glyph_inner(), and gray_raster_new().
#define ErrRaster_MemoryOverflow -4 |
Definition at line 138 of file qgrayraster.c.
#define ErrRaster_OutOfMemory -6 |
Definition at line 159 of file qgrayraster.c.
Referenced by gray_convert_glyph(), and gray_raster_render().
#define FLOOR | ( | x | ) | ( (x) & -ONE_PIXEL ) |
Definition at line 214 of file qgrayraster.c.
#define ONE_PIXEL ( 1L << PIXEL_BITS ) |
Definition at line 210 of file qgrayraster.c.
Referenced by gray_render_line(), gray_render_scanline(), and gray_sweep().
#define PIXEL_BITS 8 |
Definition at line 208 of file qgrayraster.c.
Referenced by gray_hline().
#define PIXEL_MASK ( -1L << PIXEL_BITS ) |
Definition at line 211 of file qgrayraster.c.
#define QT_FT_BEGIN_HEADER |
Definition at line 161 of file qgrayraster.c.
#define QT_FT_COMPONENT trace_smooth |
Definition at line 135 of file qgrayraster.c.
#define QT_FT_END_HEADER |
Definition at line 162 of file qgrayraster.c.
#define QT_FT_ERROR | ( | x | ) | do ; while ( 0 ) /* nothing */ |
Definition at line 179 of file qgrayraster.c.
#define qt_ft_jmp_buf jmp_buf |
Definition at line 153 of file qgrayraster.c.
#define qt_ft_longjmp longjmp |
Definition at line 152 of file qgrayraster.c.
Referenced by gray_record_cell().
#define QT_FT_MAX_GRAY_SPANS 256 |
Definition at line 259 of file qgrayraster.c.
Referenced by gray_hline().
#define QT_FT_MEM_SET | ( | d, | |
s, | |||
c | |||
) | qt_ft_memset( d, s, c ) |
Definition at line 187 of file qgrayraster.c.
Referenced by gray_render_span().
#define QT_FT_MEM_ZERO | ( | dest, | |
count | |||
) | QT_FT_MEM_SET( dest, 0, count ) |
Definition at line 191 of file qgrayraster.c.
Referenced by gray_raster_new().
#define qt_ft_memset memset |
Definition at line 149 of file qgrayraster.c.
#define qt_ft_setjmp setjmp |
Definition at line 151 of file qgrayraster.c.
Referenced by gray_convert_glyph_inner().
#define QT_FT_TRACE | ( | x | ) | do ; while ( 0 ) /* nothing */ |
Definition at line 183 of file qgrayraster.c.
#define QT_FT_UINT_MAX UINT_MAX |
Definition at line 147 of file qgrayraster.c.
#define QT_FT_UNUSED | ( | x | ) | (x) = (x) |
Definition at line 174 of file qgrayraster.c.
Referenced by gray_sweep().
#define ras (*worker) |
Definition at line 204 of file qgrayraster.c.
Referenced by gray_compute_cbox(), gray_convert_glyph(), gray_convert_glyph_inner(), gray_hline(), gray_init_cells(), gray_raster_render(), gray_record_cell(), gray_render_conic(), gray_render_cubic(), gray_render_line(), gray_render_scanline(), gray_set_cell(), gray_start_cell(), and gray_sweep().
#define RAS_ARG PWorker worker |
Definition at line 198 of file qgrayraster.c.
Referenced by gray_hline().
#define RAS_ARG_ PWorker worker, |
Definition at line 199 of file qgrayraster.c.
#define RAS_VAR worker |
Definition at line 201 of file qgrayraster.c.
Referenced by gray_convert_glyph(), gray_convert_glyph_inner(), and gray_set_cell().
#define RAS_VAR_ worker, |
Definition at line 202 of file qgrayraster.c.
Referenced by gray_convert_glyph(), gray_render_conic(), gray_render_cubic(), gray_render_line(), gray_render_scanline(), gray_start_cell(), and gray_sweep().
Definition at line 216 of file qgrayraster.c.
#define SCALED | ( | x | ) | (x) |
Referenced by QT_FT_Outline_Decompose().
#define SUBPIXELS | ( | x | ) | ( (TPos)(x) << PIXEL_BITS ) |
Definition at line 213 of file qgrayraster.c.
Referenced by gray_render_line(), gray_render_scanline(), and gray_start_cell().
#define TRUNC | ( | x | ) | ( (TCoord)( (x) >> PIXEL_BITS ) ) |
Definition at line 212 of file qgrayraster.c.
Referenced by gray_move_to(), gray_render_conic(), gray_render_cubic(), gray_render_line(), and gray_render_scanline().
#define UPSCALE | ( | x | ) | ( (x) << ( PIXEL_BITS - 6 ) ) |
Definition at line 219 of file qgrayraster.c.
Referenced by gray_line_to(), gray_move_to(), gray_render_conic(), and gray_render_cubic().
#define xxxDEBUG_GRAYS |
Definition at line 195 of file qgrayraster.c.
#define xxxGRAYS_USE_GAMMA |
Definition at line 125 of file qgrayraster.c.
Definition at line 262 of file qgrayraster.c.
typedef int TArea |
Definition at line 252 of file qgrayraster.c.
typedef int TCoord |
Definition at line 235 of file qgrayraster.c.
typedef int TPos |
Definition at line 236 of file qgrayraster.c.
|
static |
Definition at line 368 of file qgrayraster.c.
Referenced by gray_convert_glyph().
|
static |
Definition at line 1104 of file qgrayraster.c.
Referenced by QT_FT_Outline_Decompose().
|
static |
Definition at line 1605 of file qgrayraster.c.
Referenced by gray_raster_render().
|
static |
Definition at line 1586 of file qgrayraster.c.
Referenced by gray_convert_glyph().
|
static |
Definition at line 1114 of file qgrayraster.c.
Referenced by QT_FT_Outline_Decompose().
Definition at line 1174 of file qgrayraster.c.
Referenced by gray_sweep().
|
static |
Definition at line 347 of file qgrayraster.c.
Referenced by gray_raster_render().
|
static |
Definition at line 1095 of file qgrayraster.c.
Referenced by QT_FT_Outline_Decompose().
|
static |
Definition at line 1073 of file qgrayraster.c.
Referenced by QT_FT_Outline_Decompose().
|
static |
Definition at line 1884 of file qgrayraster.c.
|
static |
Definition at line 1870 of file qgrayraster.c.
|
static |
Definition at line 1771 of file qgrayraster.c.
|
static |
Definition at line 1891 of file qgrayraster.c.
|
static |
Definition at line 412 of file qgrayraster.c.
Referenced by gray_convert_glyph_inner(), gray_move_to(), and gray_set_cell().
|
static |
Definition at line 814 of file qgrayraster.c.
Referenced by gray_conic_to().
|
static |
Definition at line 951 of file qgrayraster.c.
Referenced by gray_cubic_to().
Definition at line 637 of file qgrayraster.c.
Referenced by gray_line_to(), gray_render_conic(), and gray_render_cubic().
|
static |
|
static |
Definition at line 1125 of file qgrayraster.c.
Referenced by gray_raster_render().
Definition at line 458 of file qgrayraster.c.
Referenced by gray_render_line(), gray_render_scanline(), and gray_start_cell().
|
static |
|
static |
|
static |
Definition at line 1304 of file qgrayraster.c.
Referenced by gray_convert_glyph().
int q_gray_rendered_spans | ( | TRaster * | raster | ) |
Definition at line 335 of file qgrayraster.c.
|
static |
Definition at line 1375 of file qgrayraster.c.
Referenced by gray_convert_glyph_inner().
const QT_FT_Raster_Funcs qt_ft_grays_raster |
Definition at line 1931 of file qgrayraster.c.
Referenced by QRasterPaintEngine::init(), QRasterPaintEnginePrivate::rasterize(), and QRasterPaintEngine::~QRasterPaintEngine().