pfrsbit.c File Reference

#include "pfrsbit.h"
#include "pfrload.h"
#include "pfrerror.h"

Go to the source code of this file.

Classes

struct  PFR_BitWriter_

Defines

#define FT_COMPONENT   trace_pfr

Typedefs

typedef PFR_BitWriter_ PFR_BitWriterRec
typedef PFR_BitWriter_PFR_BitWriter

Functions

static void pfr_bitwriter_init (PFR_BitWriter writer, FT_Bitmap *target, FT_Bool decreasing)
static void pfr_bitwriter_decode_bytes (PFR_BitWriter writer, FT_Byte *p, FT_Byte *limit)
static void pfr_bitwriter_decode_rle1 (PFR_BitWriter writer, FT_Byte *p, FT_Byte *limit)
static void pfr_bitwriter_decode_rle2 (PFR_BitWriter writer, FT_Byte *p, FT_Byte *limit)
static void pfr_lookup_bitmap_data (FT_Byte *base, FT_Byte *limit, FT_UInt count, FT_UInt flags, FT_UInt char_code, FT_ULong *found_offset, FT_ULong *found_size)
static FT_Error pfr_load_bitmap_metrics (FT_Byte **pdata, FT_Byte *limit, FT_Long scaled_advance, FT_Long *axpos, FT_Long *aypos, FT_UInt *axsize, FT_UInt *aysize, FT_Long *aadvance, FT_UInt *aformat)
static FT_Error pfr_load_bitmap_bits (FT_Byte *p, FT_Byte *limit, FT_UInt format, FT_Bool decreasing, FT_Bitmap *target)
 pfr_slot_load_bitmap (PFR_Slot glyph, PFR_Size size, FT_UInt glyph_index)


Define Documentation

#define FT_COMPONENT   trace_pfr

Definition at line 27 of file pfrsbit.c.


Typedef Documentation

typedef struct PFR_BitWriter_ * PFR_BitWriter

typedef struct PFR_BitWriter_ PFR_BitWriterRec


Function Documentation

static void pfr_bitwriter_decode_bytes ( PFR_BitWriter  writer,
FT_Byte p,
FT_Byte limit 
) [static]

Definition at line 69 of file pfrsbit.c.

References c, PFR_BitWriter_::line, mask, n, PFR_BitWriter_::pitch, PFR_BitWriter_::total, val, PFR_BitWriter_::width, and x80.

Referenced by pfr_load_bitmap_bits().

static void pfr_bitwriter_decode_rle1 ( PFR_BitWriter  writer,
FT_Byte p,
FT_Byte limit 
) [static]

Definition at line 123 of file pfrsbit.c.

References c, PFR_BitWriter_::line, mask, n, PFR_BitWriter_::pitch, PFR_BitWriter_::total, PFR_BitWriter_::width, and x80.

Referenced by pfr_load_bitmap_bits().

static void pfr_bitwriter_decode_rle2 ( PFR_BitWriter  writer,
FT_Byte p,
FT_Byte limit 
) [static]

Definition at line 203 of file pfrsbit.c.

References c, PFR_BitWriter_::line, mask, n, PFR_BitWriter_::pitch, PFR_BitWriter_::total, PFR_BitWriter_::width, and x80.

Referenced by pfr_load_bitmap_bits().

static void pfr_bitwriter_init ( PFR_BitWriter  writer,
FT_Bitmap target,
FT_Bool  decreasing 
) [static]

Definition at line 50 of file pfrsbit.c.

References PFR_BitWriter_::line, PFR_BitWriter_::pitch, PFR_BitWriter_::rows, PFR_BitWriter_::total, and PFR_BitWriter_::width.

Referenced by pfr_load_bitmap_bits().

static FT_Error pfr_load_bitmap_bits ( FT_Byte p,
FT_Byte limit,
FT_UInt  format,
FT_Bool  decreasing,
FT_Bitmap target 
) [static]

Definition at line 481 of file pfrsbit.c.

References error, FT_ERROR, pfr_bitwriter_decode_bytes(), pfr_bitwriter_decode_rle1(), pfr_bitwriter_decode_rle2(), and pfr_bitwriter_init().

static FT_Error pfr_load_bitmap_metrics ( FT_Byte **  pdata,
FT_Byte limit,
FT_Long  scaled_advance,
FT_Long axpos,
FT_Long aypos,
FT_UInt axsize,
FT_UInt aysize,
FT_Long aadvance,
FT_UInt aformat 
) [static]

Definition at line 346 of file pfrsbit.c.

References b, error, flags, FT_ERROR, p, PFR_CHECK, PFR_NEXT_BYTE, PFR_NEXT_INT8, PFR_NEXT_LONG, PFR_NEXT_SHORT, and PFR_NEXT_USHORT.

static void pfr_lookup_bitmap_data ( FT_Byte base,
FT_Byte limit,
FT_UInt  count,
FT_UInt  flags,
FT_UInt  char_code,
FT_ULong found_offset,
FT_ULong found_size 
) [static]

Definition at line 275 of file pfrsbit.c.

References FT_Bool, FT_BOOL, PFR_NEXT_BYTE, PFR_NEXT_ULONG, and PFR_NEXT_USHORT.

pfr_slot_load_bitmap ( PFR_Slot  glyph,
PFR_Size  size,
FT_UInt  glyph_index 
)

Definition at line 528 of file pfrsbit.c.

References error, for(), n, and PC3::stream().

Referenced by pfr_slot_load().


Generated on Tue Jul 5 15:58:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1