Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
icutil.c File Reference
#include "pixman-xserver-compat.h"

Go to the source code of this file.

Defines

#define O   0
#define I   FB_ALLONES
#define BitsMask(x, w)
#define Mask(x, w)   BitsMask((x)*(w),(w))
#define SelMask(b, n, w)   ((((b) >> n) & 1) * Mask(n,w))
#define C1(b, w)   (SelMask(b,0,w))
#define C2(b, w)
#define C4(b, w)
#define C8(b, w)
#define fbStipple16Bits   0

Functions

pixman_bits_t fbReplicatePixel (Pixel p, int bpp)
const pixman_bits_tfbStippleTable (int bits)

Variables

const FbMergeRopRec FbMergeRopBits [16]
static const pixman_bits_t fbStipple8Bits [256]
static const pixman_bits_t fbStipple4Bits [16]
static const pixman_bits_t fbStipple2Bits [4]
static const pixman_bits_t fbStipple1Bits [2]

Define Documentation

#define BitsMask (   x,
 
)
Value:
((FB_ALLONES << ((x) & FB_MASK)) & \
                      (FB_ALLONES >> ((FB_UNIT - ((x) + (w))) & FB_MASK)))

Definition at line 68 of file icutil.c.

#define C1 (   b,
 
)    (SelMask(b,0,w))

Definition at line 76 of file icutil.c.

#define C2 (   b,
 
)
Value:
(SelMask(b,0,w) | \
     SelMask(b,1,w))

Definition at line 79 of file icutil.c.

#define C4 (   b,
 
)
Value:
(SelMask(b,0,w) | \
     SelMask(b,1,w) | \
     SelMask(b,2,w) | \
     SelMask(b,3,w))

Definition at line 83 of file icutil.c.

#define C8 (   b,
 
)
Value:
(SelMask(b,0,w) | \
     SelMask(b,1,w) | \
     SelMask(b,2,w) | \
     SelMask(b,3,w) | \
     SelMask(b,4,w) | \
     SelMask(b,5,w) | \
     SelMask(b,6,w) | \
     SelMask(b,7,w))

Definition at line 89 of file icutil.c.

Definition at line 114 of file icutil.c.

Definition at line 42 of file icutil.c.

#define Mask (   x,
 
)    BitsMask((x)*(w),(w))

Definition at line 71 of file icutil.c.

#define O   0

Definition at line 41 of file icutil.c.

#define SelMask (   b,
  n,
 
)    ((((b) >> n) & 1) * Mask(n,w))

Definition at line 74 of file icutil.c.


Function Documentation

Definition at line 28 of file icutil.c.

{
    pixman_bits_t  b = p;
    
    b &= FbFullMask (bpp);
    while (bpp < FB_UNIT)
    {
       b |= b << bpp;
       bpp <<= 1;
    }
    return b;
}

Here is the caller graph for this function:

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

Initial value:
 {
    { O,O,O,O },   
    { I,O,O,O },   
    { I,O,I,O },   
    { O,O,I,O },   
    { I,I,O,O },   
    { O,I,O,O },   
    { O,I,I,O },   
    { I,I,I,O },   
    { I,I,I,I },   
    { O,I,I,I },   
    { O,I,O,I },   
    { I,I,O,I },   
    { O,O,I,I },   
    { I,O,I,I },   
    { I,O,O,I },   
    { O,O,O,I },   
}

Definition at line 44 of file icutil.c.

Initial value:
 {
    C1(  0,32), C1(  1,32),
}

Definition at line 167 of file icutil.c.

Initial value:
 {
    C2(  0,16), C2(  1,16), C2(  2,16), C2(  3,16),
}

Definition at line 164 of file icutil.c.

Initial value:
 {
    C4(  0,8), C4(  1,8), C4(  2,8), C4(  3,8), C4(  4,8), C4(  5,8),
    C4(  6,8), C4(  7,8), C4(  8,8), C4(  9,8), C4( 10,8), C4( 11,8),
    C4( 12,8), C4( 13,8), C4( 14,8), C4( 15,8),}

Definition at line 160 of file icutil.c.

Definition at line 115 of file icutil.c.