Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Functions | Variables
icrop.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _mergeRopBits

Defines

#define FbDeclareMergeRop()   FbBits _ca1, _cx1, _ca2, _cx2;
#define FbDeclarePrebuiltMergeRop()   FbBits _cca, _ccx;
#define FbInitializeMergeRop(alu, pm)
#define FbDestInvarientRop(alu, pm)
#define FbDestInvarientMergeRop()   (_ca1 == 0 && _cx1 == 0)
#define FbDoMergeRop(src, dst)   (((dst) & (((src) & _ca1) ^ _cx1)) ^ (((src) & _ca2) ^ _cx2))
#define FbDoDestInvarientMergeRop(src)   (((src) & _ca2) ^ _cx2)
#define FbDoMaskMergeRop(src, dst, mask)   (((dst) & ((((src) & _ca1) ^ _cx1) | ~(mask))) ^ ((((src) & _ca2) ^ _cx2) & (mask)))
#define FbDoLeftMaskByteMergeRop(dst, src, lb, l)
#define FbDoRightMaskByteMergeRop(dst, src, rb, r)
#define FbDoRRop(dst, and, xor)   (((dst) & (and)) ^ (xor))
#define FbDoMaskRRop(dst, and, xor, mask)   (((dst) & ((and) | ~(mask))) ^ (xor & mask))
#define fbFillFromBit(b, t)   (~((t) ((b) & 1)-1))
#define fbXorT(rop, fg, pm, t)
#define fbAndT(rop, fg, pm, t)
#define fbXor(rop, fg, pm)   fbXorT(rop,fg,pm,FbBits)
#define fbAnd(rop, fg, pm)   fbAndT(rop,fg,pm,FbBits)
#define fbXorStip(rop, fg, pm)   fbXorT(rop,fg,pm,FbStip)
#define fbAndStip(rop, fg, pm)   fbAndT(rop,fg,pm,FbStip)
#define FbStipple16Bits(b)   (fbStipple16Bits[(b)&0xff] | fbStipple16Bits[(b) >> 8] << FB_HALFUNIT)
#define FbStippleRRop(dst, b, fa, fx, ba, bx)   (FbDoRRop(dst, fa, fx) & b) | (FbDoRRop(dst, ba, bx) & ~b)
#define FbStippleRRopMask(dst, b, fa, fx, ba, bx, m)   (FbDoMaskRRop(dst, fa, fx, m) & (b)) | (FbDoMaskRRop(dst, ba, bx, m) & ~(b))
#define FbDoLeftMaskByteStippleRRop(dst, b, fa, fx, ba, bx, lb, l)
#define FbDoRightMaskByteStippleRRop(dst, b, fa, fx, ba, bx, rb, r)
#define FbOpaqueStipple(b, fg, bg)   (((fg) & (b)) | ((bg) & ~(b)))
#define FbStipple1RopPick(alu, b)   (((alu) >> (2 - (((b) & 1) << 1))) & 3)
#define FbOpaqueStipple1Rop(alu, fg, bg)
#define FbStipple1Rop(alu, fg)   (FbStipple1RopPick(alu,fg) | 4)

Typedefs

typedef struct _mergeRopBits FbMergeRopRec
typedef struct _mergeRopBitsFbMergeRopPtr

Functions

pixman_private const
pixman_bits_t
fbStippleTable (int bits)

Variables

const FbMergeRopRec
FbMergeRopBits[16] 
pixman_private

Class Documentation

struct _mergeRopBits

Definition at line 28 of file icrop.h.

Class Members
FbBits ca1
FbBits ca2
FbBits cx1
FbBits cx2

Define Documentation

#define fbAnd (   rop,
  fg,
  pm 
)    fbAndT(rop,fg,pm,FbBits)

Definition at line 90 of file icrop.h.

#define fbAndStip (   rop,
  fg,
  pm 
)    fbAndT(rop,fg,pm,FbStip)

Definition at line 94 of file icrop.h.

#define fbAndT (   rop,
  fg,
  pm,
  t 
)
Value:
((((fg) & fbFillFromBit (rop ^ (rop>>1),t)) | \
                           (~(fg) & fbFillFromBit((rop>>2) ^ (rop>>3),t))) | \
                          ~(pm))

Definition at line 84 of file icrop.h.

#define FbDeclareMergeRop ( )    FbBits _ca1, _cx1, _ca2, _cx2;

Definition at line 34 of file icrop.h.

#define FbDeclarePrebuiltMergeRop ( )    FbBits _cca, _ccx;

Definition at line 35 of file icrop.h.

#define FbDestInvarientMergeRop ( )    (_ca1 == 0 && _cx1 == 0)

Definition at line 49 of file icrop.h.

#define FbDestInvarientRop (   alu,
  pm 
)
Value:
((pm) == FB_ALLONES && \
                                 (((alu) >> 1 & 5) == ((alu) & 5)))

Definition at line 46 of file icrop.h.

#define FbDoDestInvarientMergeRop (   src)    (((src) & _ca2) ^ _cx2)

Definition at line 56 of file icrop.h.

#define FbDoLeftMaskByteMergeRop (   dst,
  src,
  lb,
  l 
)
Value:
{ \
    FbBits  __xor = ((src) & _ca2) ^ _cx2; \
    FbDoLeftMaskByteRRop(dst,lb,l,((src) & _ca1) ^ _cx1,__xor); \
}

Definition at line 61 of file icrop.h.

#define FbDoLeftMaskByteStippleRRop (   dst,
  b,
  fa,
  fx,
  ba,
  bx,
  lb,
  l 
)
Value:
{ \
    FbBits  __xor = ((fx) & (b)) | ((bx) & ~(b)); \
    FbDoLeftMaskByteRRop(dst, lb, l, ((fa) & (b)) | ((ba) & ~(b)), __xor); \
}

Definition at line 114 of file icrop.h.

#define FbDoMaskMergeRop (   src,
  dst,
  mask 
)    (((dst) & ((((src) & _ca1) ^ _cx1) | ~(mask))) ^ ((((src) & _ca2) ^ _cx2) & (mask)))

Definition at line 58 of file icrop.h.

#define FbDoMaskRRop (   dst,
  and,
  xor,
  mask 
)    (((dst) & ((and) | ~(mask))) ^ (xor & mask))

Definition at line 73 of file icrop.h.

#define FbDoMergeRop (   src,
  dst 
)    (((dst) & (((src) & _ca1) ^ _cx1)) ^ (((src) & _ca2) ^ _cx2))

Definition at line 53 of file icrop.h.

#define FbDoRightMaskByteMergeRop (   dst,
  src,
  rb,
  r 
)
Value:
{ \
    FbBits  __xor = ((src) & _ca2) ^ _cx2; \
    FbDoRightMaskByteRRop(dst,rb,r,((src) & _ca1) ^ _cx1,__xor); \
}

Definition at line 66 of file icrop.h.

#define FbDoRightMaskByteStippleRRop (   dst,
  b,
  fa,
  fx,
  ba,
  bx,
  rb,
  r 
)
Value:
{ \
    FbBits  __xor = ((fx) & (b)) | ((bx) & ~(b)); \
    FbDoRightMaskByteRRop(dst, rb, r, ((fa) & (b)) | ((ba) & ~(b)), __xor); \
}

Definition at line 119 of file icrop.h.

#define FbDoRRop (   dst,
  and,
  xor 
)    (((dst) & (and)) ^ (xor))

Definition at line 71 of file icrop.h.

#define fbFillFromBit (   b,
  t 
)    (~((t) ((b) & 1)-1))

Definition at line 79 of file icrop.h.

#define FbInitializeMergeRop (   alu,
  pm 
)
Value:
{\
    const FbMergeRopRec  *_bits; \
    _bits = &FbMergeRopBits[alu]; \
    _ca1 = _bits->ca1 &  pm; \
    _cx1 = _bits->cx1 | ~pm; \
    _ca2 = _bits->ca2 &  pm; \
    _cx2 = _bits->cx2 &  pm; \
}

Definition at line 37 of file icrop.h.

#define FbOpaqueStipple (   b,
  fg,
  bg 
)    (((fg) & (b)) | ((bg) & ~(b)))

Definition at line 124 of file icrop.h.

#define FbOpaqueStipple1Rop (   alu,
  fg,
  bg 
)
Value:
(FbStipple1RopPick(alu,fg) | \
                                      (FbStipple1RopPick(alu,bg) << 2))

Definition at line 132 of file icrop.h.

#define FbStipple16Bits (   b)    (fbStipple16Bits[(b)&0xff] | fbStipple16Bits[(b) >> 8] << FB_HALFUNIT)

Definition at line 102 of file icrop.h.

#define FbStipple1Rop (   alu,
  fg 
)    (FbStipple1RopPick(alu,fg) | 4)

Definition at line 135 of file icrop.h.

#define FbStipple1RopPick (   alu,
  b 
)    (((alu) >> (2 - (((b) & 1) << 1))) & 3)

Definition at line 130 of file icrop.h.

#define FbStippleRRop (   dst,
  b,
  fa,
  fx,
  ba,
  bx 
)    (FbDoRRop(dst, fa, fx) & b) | (FbDoRRop(dst, ba, bx) & ~b)

Definition at line 108 of file icrop.h.

#define FbStippleRRopMask (   dst,
  b,
  fa,
  fx,
  ba,
  bx,
  m 
)    (FbDoMaskRRop(dst, fa, fx, m) & (b)) | (FbDoMaskRRop(dst, ba, bx, m) & ~(b))

Definition at line 111 of file icrop.h.

#define fbXor (   rop,
  fg,
  pm 
)    fbXorT(rop,fg,pm,FbBits)

Definition at line 88 of file icrop.h.

#define fbXorStip (   rop,
  fg,
  pm 
)    fbXorT(rop,fg,pm,FbStip)

Definition at line 92 of file icrop.h.

#define fbXorT (   rop,
  fg,
  pm,
  t 
)
Value:
((((fg) & fbFillFromBit((rop) >> 1,t)) | \
                           (~(fg) & fbFillFromBit((rop) >> 3,t))) & (pm))

Definition at line 81 of file icrop.h.


Typedef Documentation

typedef struct _mergeRopBits * FbMergeRopPtr
typedef struct _mergeRopBits FbMergeRopRec

Function Documentation

Definition at line 273 of file icutil.c.

{
    switch (bits) {
    case 1:
       return fbStipple1Bits;
    case 2:
       return fbStipple2Bits;
    case 4:
       return fbStipple4Bits;
    case 8:
       return fbStipple8Bits;
    }
    return 0;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 101 of file icrop.h.