Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RageSurface_Load_GIF.cpp File Reference

#include "global.h"
#include "RageSurface_Load_GIF.h"
#include "RageFile.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "RageSurface.h"

Classes

struct  LWZState
struct  LWZState::Code

Defines

#define MAXCOLORMAPSIZE   256
#define MAX_LWZ_BITS   12
#define INTERLACE   0x40
#define LOCALCOLORMAP   0x80
#define BitSet(byte, bit)   (((byte) & (bit)) == (bit))
#define ReadOK(file, buffer, len)   (file.Read( buffer, len, 1) != 0)
#define LM_to_uint(a, b)   (((b)<<8)|(a))

Functions

RageSurfaceReadImage (RageFile &f, int len, int height, const RageSurfaceColor localColorMap[MAXCOLORMAPSIZE], int interlace, int ignore)
bool ReadPalette (RageFile &f, int number, RageSurfaceColor buffer[MAXCOLORMAPSIZE])
int GetDataBlock (RageFile &f, unsigned char *buf)
RageSurfaceUtils::OpenResult RageSurface_Load_GIF (const CString &sPath, RageSurface *&ret, bool bHeaderOnly, CString &error)

Define Documentation

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

#define INTERLACE   0x40
 

#define LM_to_uint a,
 )     (((b)<<8)|(a))
 

#define LOCALCOLORMAP   0x80
 

#define MAX_LWZ_BITS   12
 

#define MAXCOLORMAPSIZE   256
 

#define ReadOK file,
buffer,
len   )     (file.Read( buffer, len, 1) != 0)
 


Function Documentation

int GetDataBlock RageFile f,
unsigned char *  buf
[static]
 

RageSurfaceUtils::OpenResult RageSurface_Load_GIF const CString &  sPath,
RageSurface *&  ret,
bool  bHeaderOnly,
CString &  error
 

RageSurface * ReadImage RageFile f,
int  len,
int  height,
const RageSurfaceColor  localColorMap[MAXCOLORMAPSIZE],
int  interlace,
int  ignore
[static]
 

bool ReadPalette RageFile f,
int  number,
RageSurfaceColor  buffer[MAXCOLORMAPSIZE]
[static]
 


Generated on Thu Jan 27 20:57:57 2005 for StepMania by doxygen 1.3.7