Internal and low level: a class used to read pack/unpack color pixmap (version 2) More...
Public Member Functions | |
Pixmap () | |
bool | unpackedData (unsigned char const *pData, int sz, int byteSz, int nSize, std::vector< unsigned char > &res) const |
creates the pixmap from the packdata More... | |
MWAWColor | extractColor (const std::vector< unsigned char > &data, size_t rIdx, size_t gIdx, size_t bIdx) |
int | computeHeight (MWAWInputStream &input, const int height, const int width, const bool packed, const int szRowSize) const |
computes the height based on available data More... | |
bool | readPixmapData (MWAWInputStream &input) |
parses the pixmap data zone More... | |
bool | get (MWAWEmbeddedObject &picture) const |
returns the pixmap More... | |
Public Attributes | |
int | m_rowBytes |
the num of bytes used to store a row More... | |
MWAWBox2i | m_rect |
the pixmap rectangle More... | |
int | m_version |
the pixmap version More... | |
int | m_packType |
the packing format More... | |
long | m_packSize |
size of data in the packed state More... | |
int | m_resolution [2] |
horizontal/vertical definition More... | |
int | m_pixelType |
format of pixel image More... | |
int | m_pixelSize |
physical bit by image More... | |
int | m_compCount |
logical components per pixels More... | |
int | m_compSize |
logical bits by components More... | |
long | m_planeBytes |
offset to the next plane More... | |
std::shared_ptr< ColorTable > | m_colorTable |
the color table More... | |
MWAWBox2i | m_src |
the initial dimension More... | |
MWAWBox2i | m_dst |
another final dimension More... | |
std::shared_ptr< Region > | m_region |
the region More... | |
std::vector< int > | m_indices |
the pixmap indices More... | |
std::vector< MWAWColor > | m_colors |
the colors More... | |
int | m_mode |
the encoding mode ? More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Pixmap const &f) |
operator<< for Pixmap More... | |
Internal and low level: a class used to read pack/unpack color pixmap (version 2)
|
inline |
|
inline |
computes the height based on available data
Referenced by readPixmapData().
|
inline |
Referenced by readPixmapData().
|
inline |
returns the pixmap
Referenced by ApplePictParser::drawPixmap().
|
inline |
parses the pixmap data zone
Referenced by ApplePictParser::readPixmap().
|
inline |
creates the pixmap from the packdata
Referenced by readPixmapData().
std::vector<MWAWColor> ApplePictParserInternal::Pixmap::m_colors |
the colors
Referenced by get(), and readPixmapData().
std::shared_ptr<ColorTable> ApplePictParserInternal::Pixmap::m_colorTable |
the color table
Referenced by get(), ApplePictParser::readPixmap(), and readPixmapData().
int ApplePictParserInternal::Pixmap::m_compCount |
logical components per pixels
Referenced by ApplePictParser::readPixmap(), and readPixmapData().
int ApplePictParserInternal::Pixmap::m_compSize |
logical bits by components
Referenced by ApplePictParser::readPixmap().
MWAWBox2i ApplePictParserInternal::Pixmap::m_dst |
another final dimension
Referenced by ApplePictParser::drawPixmap(), and ApplePictParser::readPixmap().
std::vector<int> ApplePictParserInternal::Pixmap::m_indices |
the pixmap indices
Referenced by get(), and readPixmapData().
int ApplePictParserInternal::Pixmap::m_mode |
the encoding mode ?
Referenced by ApplePictParser::readPixmap().
long ApplePictParserInternal::Pixmap::m_packSize |
size of data in the packed state
Referenced by ApplePictParser::readPixmap().
int ApplePictParserInternal::Pixmap::m_packType |
the packing format
Referenced by ApplePictParser::readPixmap(), and readPixmapData().
int ApplePictParserInternal::Pixmap::m_pixelSize |
physical bit by image
Referenced by ApplePictParser::readPixmap(), and readPixmapData().
int ApplePictParserInternal::Pixmap::m_pixelType |
format of pixel image
Referenced by ApplePictParser::readPixmap().
long ApplePictParserInternal::Pixmap::m_planeBytes |
offset to the next plane
Referenced by ApplePictParser::readPixmap().
MWAWBox2i ApplePictParserInternal::Pixmap::m_rect |
the pixmap rectangle
Referenced by get(), ApplePictParser::readPixmap(), and readPixmapData().
std::shared_ptr<Region> ApplePictParserInternal::Pixmap::m_region |
the region
Referenced by ApplePictParser::readPixmap().
int ApplePictParserInternal::Pixmap::m_resolution[2] |
horizontal/vertical definition
Referenced by Pixmap(), and ApplePictParser::readPixmap().
int ApplePictParserInternal::Pixmap::m_rowBytes |
the num of bytes used to store a row
Referenced by ApplePictParser::readPixmap(), readPixmapData(), and unpackedData().
MWAWBox2i ApplePictParserInternal::Pixmap::m_src |
the initial dimension
Referenced by ApplePictParser::readPixmap().
int ApplePictParserInternal::Pixmap::m_version |
the pixmap version
Referenced by ApplePictParser::readPixmap().