libmwaw_applepict1::Pixmap Struct Reference

Internal and low level: a class used to read pack/unpack color pixmap (version 2) More...

List of all members.

Public Member Functions

 Pixmap ()
bool read (MWAWInputStream &input, bool packed, bool colorTable, bool hasRectsMode, bool hasRegion)
 tries to read a pixmap
bool savePixmap () const
 saves the pixmap in file (debugging function)
bool unpackedData (unsigned char const *pData, int sz, int byteSz, int nSize, std::vector< unsigned char > &res) const
 creates the pixmap from the packdata
bool readPixmapData (MWAWInputStream &input)
 parses the pixmap data zone

Public Attributes

int m_rowBytes
 the num of bytes used to store a row
Box2i m_rect
 the pixmap rectangle
int m_version
 the pixmap version
int m_packType
 the packing format
long m_packSize
 size of data in the packed state
int m_Res [2]
 horizontal/vertical definition
int m_pixelType
 format of pixel image
int m_pixelSize
 physical bit by image
int m_compCount
 logical components per pixels
int m_compSize
 logical bits by components
long m_planeBytes
 offset to the next plane
shared_ptr< ColorTablem_colorTable
 the color table
Box2i m_src
 the initial dimension
Box2i m_dst
 another final dimension
shared_ptr< Regionm_region
 the region
std::vector< int > m_indices
 the pixmap indices
std::vector< MWAWColorm_colors
 the colors
int m_mode
 the encoding mode ?

Friends

std::ostream & operator<< (std::ostream &o, Pixmap const &f)
 operator<< for Pixmap

Detailed Description

Internal and low level: a class used to read pack/unpack color pixmap (version 2)


Constructor & Destructor Documentation


Member Function Documentation

bool libmwaw_applepict1::Pixmap::read ( MWAWInputStream input,
bool  packed,
bool  colorTable,
bool  hasRectsMode,
bool  hasRegion 
) [inline]

tries to read a pixmap

parses the pixmap data zone

Referenced by read().

bool libmwaw_applepict1::Pixmap::savePixmap ( ) const [inline]

saves the pixmap in file (debugging function)

bool libmwaw_applepict1::Pixmap::unpackedData ( unsigned char const *  pData,
int  sz,
int  byteSz,
int  nSize,
std::vector< unsigned char > &  res 
) const [inline]

creates the pixmap from the packdata

Referenced by readPixmapData().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Pixmap const &  f 
) [friend]

operator<< for Pixmap


Member Data Documentation

the colors

Referenced by readPixmapData(), and savePixmap().

logical components per pixels

Referenced by read(), and readPixmapData().

logical bits by components

Referenced by read().

another final dimension

Referenced by read().

the pixmap indices

Referenced by readPixmapData(), and savePixmap().

the encoding mode ?

Referenced by read().

size of data in the packed state

Referenced by read().

the packing format

Referenced by read(), and readPixmapData().

physical bit by image

Referenced by read(), and readPixmapData().

format of pixel image

Referenced by read().

offset to the next plane

Referenced by read().

the region

Referenced by read().

horizontal/vertical definition

Referenced by Pixmap(), and read().

the num of bytes used to store a row

Referenced by read(), readPixmapData(), and unpackedData().

the initial dimension

Referenced by read().

the pixmap version

Referenced by read().


The documentation for this struct was generated from the following file: