SkBlitRow Class Reference

#include <SkBlitRow.h>

List of all members.

Public Types

enum  Flags16 { kGlobalAlpha_Flag = 0x01, kSrcPixelAlpha_Flag = 0x02, kDither_Flag = 0x04 }
enum  Flags32 { kGlobalAlpha_Flag32 = 1 << 0, kSrcPixelAlpha_Flag32 = 1 << 1 }
typedef void(* Proc )(uint16_t *SK_RESTRICT dst, const SkPMColor *SK_RESTRICT src, int count, U8CPU alpha, int x, int y)
typedef void(* Proc32 )(uint32_t *SK_RESTRICT dst, const SkPMColor *SK_RESTRICT src, int count, U8CPU alpha)

Static Public Member Functions

static Proc Factory (unsigned flags, SkBitmap::Config)
 Public entry-point to return a blit function ptr.
static Proc32 Factory32 (unsigned flags32)
static void Color32 (SkPMColor dst[], const SkPMColor src[], int count, SkPMColor color)
static void Color32 (SkPMColor row[], int count, SkPMColor color)

Detailed Description

Definition at line 7 of file SkBlitRow.h.


Member Typedef Documentation

typedef void(* SkBlitRow::Proc)(uint16_t *SK_RESTRICT dst, const SkPMColor *SK_RESTRICT src, int count, U8CPU alpha, int x, int y)

Function pointer that reads a scanline of src SkPMColors, and writes a corresponding scanline of 16bit colors (specific format based on the config passed to the Factory.

The x,y params are useful just for dithering

Parameters:
alpha A global alpha to be applied to all of the src colors
x The x coordinate of the beginning of the scanline
y THe y coordinate of the scanline

Definition at line 28 of file SkBlitRow.h.

typedef void(* SkBlitRow::Proc32)(uint32_t *SK_RESTRICT dst, const SkPMColor *SK_RESTRICT src, int count, U8CPU alpha)

Function pointer that blends 32bit colors onto a 32bit destination.

Parameters:
dst array of dst 32bit colors
src array of src 32bit colors (w/ or w/o alpha)
count number of colors to blend
alpha global alpha to be applied to all src colors

Definition at line 48 of file SkBlitRow.h.


Member Enumeration Documentation

Enumerator:
kGlobalAlpha_Flag 

If set, the alpha parameter will be != 255.

kSrcPixelAlpha_Flag 

If set, the src colors may have alpha != 255.

kDither_Flag 

If set, the resulting 16bit colors should be dithered.

Definition at line 9 of file SkBlitRow.h.

Enumerator:
kGlobalAlpha_Flag32 
kSrcPixelAlpha_Flag32 

Definition at line 37 of file SkBlitRow.h.


Member Function Documentation

static void SkBlitRow::Color32 ( SkPMColor  row[],
int  count,
SkPMColor  color 
) [inline, static]

Blend a single color onto a row of 32bit pixels, writing the result into the same row.

Definition at line 64 of file SkBlitRow.h.

static void SkBlitRow::Color32 ( SkPMColor  dst[],
const SkPMColor  src[],
int  count,
SkPMColor  color 
) [static]

Blend a single color onto a row of S32 pixels, writing the result into a row of D32 pixels. src and dst may be the same memory, but if they are not, they may not overlap.

static Proc SkBlitRow::Factory ( unsigned  flags,
SkBitmap::Config   
) [static]

Public entry-point to return a blit function ptr.

static Proc32 SkBlitRow::Factory32 ( unsigned  flags32  )  [static]

The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1