Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Bitmap Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/bitmap.h>

Inheritance diagram for Bitmap:

Inheritance graph
[legend]
Collaboration diagram for Bitmap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Bitmap (long id, int level=1)
 ~Bitmap ()
int buildFromJpegInterchangeData (unsigned char *stream, int alpha, long offset)
int buildFromJpegAbbreviatedData (unsigned char *stream)
int buildFromZlibData (unsigned char *buffer, int width, int height, int format, int tableSize, int tableHasAlpha)
long getWidth ()
long getHeight ()
ColorgetColormap (long *n)
unsigned char * getPixels ()

Static Public Member Functions

static int readJpegTables (unsigned char *stream)

Public Attributes

long width
long height
long bpl
long depth
unsigned char * pixels
Colorcolormap
long nbColors
unsigned char * alpha_buf
int defLevel

Static Public Attributes

static int haveTables = 0
static struct jpeg_decompress_struct jpegObject
static struct jpeg_source_mgr jpegSourceManager
static MyErrorHandler jpegErrorMgr

Constructor & Destructor Documentation

Bitmap::Bitmap long  id,
int  level = 1
 

Definition at line 41 of file bitmap.cc.

References jpeg_decompress_struct::colormap, and NULL.

Bitmap::~Bitmap  ) 
 

Definition at line 50 of file bitmap.cc.

References alpha_buf, colormap, haveTables, jpegObject, and pixels.


Member Function Documentation

int Bitmap::buildFromJpegAbbreviatedData unsigned char *  stream  ) 
 

Definition at line 283 of file bitmap.cc.

References Color::blue, bpl, colormap, Color::green, height, inputData, jpegErrorMgr, jpegObject, nbColors, NULL, pixels, printf, Color::red, MyErrorHandler::setjmp_buffer, TRUE, and width.

Referenced by CInputScript::ParseDefineBits().

int Bitmap::buildFromJpegInterchangeData unsigned char *  stream,
int  alpha,
long  offset
 

Definition at line 169 of file bitmap.cc.

References Color::blue, bpl, buildJpegAlpha(), colormap, errorExit(), FALSE, fillInputBuffer(), Color::green, height, initSource(), inputData, jpeg_create_decompress, nbColors, NULL, pixels, printf, Color::red, resyncToRestart(), skipInputData(), termSource(), TRUE, and width.

Referenced by CInputScript::ParseDefineBitsJPEG2(), and CInputScript::ParseDefineBitsJPEG3().

int Bitmap::buildFromZlibData unsigned char *  buffer,
int  width,
int  height,
int  format,
int  tableSize,
int  tableHasAlpha
 

Definition at line 406 of file bitmap.cc.

References alpha, Color::alpha, alpha_buf, Character::b, Color::blue, bpl, Character::c, colormap, colorTable, data, depth, g, Color::green, nbColors, NULL, pixels, printf, Character::r, and Color::red.

Referenced by CInputScript::ParseDefineBitsLossless().

Color * Bitmap::getColormap long *  n  ) 
 

Definition at line 115 of file bitmap.cc.

References colormap, and nbColors.

long Bitmap::getHeight  ) 
 

Definition at line 109 of file bitmap.cc.

References height.

unsigned char * Bitmap::getPixels  ) 
 

Definition at line 121 of file bitmap.cc.

References pixels.

long Bitmap::getWidth  ) 
 

Definition at line 104 of file bitmap.cc.

References width.

int Bitmap::readJpegTables unsigned char *  stream  )  [static]
 

Definition at line 364 of file bitmap.cc.

References errorExit(), FALSE, fillInputBuffer(), haveTables, initSource(), inputData, jpeg_create_decompress, jpegErrorMgr, jpegObject, jpegSourceManager, MyErrorHandler::pub, resyncToRestart(), MyErrorHandler::setjmp_buffer, skipInputData(), jpeg_decompress_struct::src, and termSource().

Referenced by CInputScript::ParseJPEGTables().


Member Data Documentation

unsigned char* Bitmap::alpha_buf
 

Definition at line 39 of file bitmap.h.

Referenced by buildFromZlibData(), buildJpegAlpha(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), GraphicDevice16::fillLineBitmap(), prepareStyles(), and ~Bitmap().

long Bitmap::bpl
 

Definition at line 32 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildFromZlibData(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), and GraphicDevice16::fillLineBitmap().

Color* Bitmap::colormap
 

Definition at line 36 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildFromZlibData(), clearStyles(), getColormap(), prepareStyles(), and ~Bitmap().

int Bitmap::defLevel
 

Definition at line 41 of file bitmap.h.

long Bitmap::depth
 

Definition at line 33 of file bitmap.h.

Referenced by buildFromZlibData().

int Bitmap::haveTables = 0 [static]
 

Definition at line 33 of file bitmap.cc.

Referenced by readJpegTables(), and ~Bitmap().

long Bitmap::height
 

Definition at line 31 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildJpegAlpha(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), GraphicDevice16::fillLineBitmap(), and getHeight().

MyErrorHandler Bitmap::jpegErrorMgr [static]
 

Definition at line 37 of file bitmap.cc.

Referenced by buildFromJpegAbbreviatedData(), and readJpegTables().

struct jpeg_decompress_struct Bitmap::jpegObject [static]
 

Definition at line 46 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), readJpegTables(), and ~Bitmap().

struct jpeg_source_mgr Bitmap::jpegSourceManager [static]
 

Definition at line 47 of file bitmap.h.

Referenced by readJpegTables().

long Bitmap::nbColors
 

Definition at line 37 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildFromZlibData(), getColormap(), and prepareStyles().

unsigned char* Bitmap::pixels
 

Definition at line 35 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildFromZlibData(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), GraphicDevice16::fillLineBitmap(), getPixels(), and ~Bitmap().

long Bitmap::width
 

Definition at line 30 of file bitmap.h.

Referenced by buildFromJpegAbbreviatedData(), buildFromJpegInterchangeData(), buildJpegAlpha(), GraphicDevice32::fillLineBitmap(), GraphicDevice24::fillLineBitmap(), GraphicDevice16::fillLineBitmap(), and getWidth().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:27:14 2005 for OPIE by  doxygen 1.4.2