Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsImageXlib.cpp File Reference
#include "nsImageXlib.h"
#include "nsDrawingSurfaceXlib.h"
#include "nsRenderingContextXlib.h"
#include "xlibrgb.h"
#include "prlog.h"
#include "nsRect.h"
#include "drawers.h"
#include "imgScaler.h"

Go to the source code of this file.

Defines

#define IsFlagSet(a, b)   ((a) & (b))

Functions

static unsigned findIndex32 (unsigned mask)
static unsigned findIndex24 (unsigned mask)

Variables

static GC s1bitGC = 0
static GC sXbitGC = 0

Define Documentation

#define IsFlagSet (   a,
  b 
)    ((a) & (b))

Definition at line 50 of file nsImageXlib.cpp.


Function Documentation

static unsigned findIndex24 ( unsigned  mask) [static]

Definition at line 693 of file nsImageXlib.cpp.

{
  switch(mask)
  {
    case 0xff:
      return 2;
    case 0xff00:
      return 1;
    default:
      return 0;
  }
}

Here is the caller graph for this function:

static unsigned findIndex32 ( unsigned  mask) [static]

Definition at line 677 of file nsImageXlib.cpp.

{
  switch (mask)
  {
    case 0xff:
      return 3;
    case 0xff00:
      return 2;
    case 0xff0000:
      return 1;
    default:
      return 0;
  }
}

Here is the caller graph for this function:


Variable Documentation

GC s1bitGC = 0 [static]

Definition at line 61 of file nsImageXlib.cpp.

GC sXbitGC = 0 [static]

Definition at line 62 of file nsImageXlib.cpp.