gifutil.cpp File Reference

(r1785/r1354)

#include "camtypes.h"
#include "ensure.h"
#include "fixmem.h"
#include "errors.h"
#include "progress.h"
#include "gifutil.h"
#include "camfiltr.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define BitSet(byte, bit)   (((byte) & (bit)) == (bit))

Functions

static BOOL ReadColourMap (CCLexFile *fd, Palette &NewPalette)


Define Documentation

#define BitSet byte,
bit   )     (((byte) & (bit)) == (bit))
 

Definition at line 54 of file gifutil.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 23 of file gifutil.cpp.


Function Documentation

static BOOL ReadColourMap CCLexFile fd,
Palette NewPalette
[static]
 

Definition at line 1098 of file gifutil.cpp.

01099 {
01100     GIFRGBTRIPLE rgb;
01101     PaletteIterator PalColour;
01102     for (PalColour = NewPalette.Start(); PalColour < NewPalette.End(); ++PalColour)
01103     {
01104         fd->read(&rgb, sizeof(GIFRGBTRIPLE));
01105 
01106         PalColour.SetBlue(rgb.grgbtBlue);
01107         PalColour.SetGreen(rgb.grgbtGreen);
01108         PalColour.SetRed(rgb.grgbtRed);
01109         PalColour.SetTransparent(0);
01110     }
01111     
01112     return TRUE;
01113 }


Generated on Sat Nov 10 03:49:32 2007 for Camelot by  doxygen 1.4.4