libzmf::BMIHeader Class Reference

#include <BMIHeader.h>

Public Member Functions

 BMIHeader ()
 
bool load (const RVNGInputStreamPtr &input)
 
bool isSupported () const
 
unsigned size () const
 
unsigned startOffset () const
 
unsigned width () const
 
unsigned height () const
 
bool isPaletteMode () const
 
unsigned colorDepth () const
 
unsigned paletteColorCount () const
 
const std::vector< BMIOffset > & offsets () const
 
bool reconcileWidth (unsigned &colorWidth, unsigned &transparencyWidth)
 
bool reconcileHeight (unsigned &colorHeight, unsigned &transparencyHeight)
 

Private Member Functions

void readOffsets (const RVNGInputStreamPtr &input, uint16_t offsetCount)
 

Private Attributes

std::string m_signature
 
unsigned m_size
 
unsigned m_startOffset
 
unsigned m_width
 
unsigned m_height
 
bool m_isPaletteMode
 
unsigned m_colorDepth
 
std::vector< BMIOffsetm_offsets
 

Constructor & Destructor Documentation

libzmf::BMIHeader::BMIHeader ( )

Member Function Documentation

unsigned libzmf::BMIHeader::colorDepth ( ) const

Referenced by paletteColorCount().

unsigned libzmf::BMIHeader::height ( ) const
bool libzmf::BMIHeader::isPaletteMode ( ) const

Referenced by paletteColorCount().

bool libzmf::BMIHeader::isSupported ( ) const
bool libzmf::BMIHeader::load ( const RVNGInputStreamPtr input)
const std::vector< BMIOffset > & libzmf::BMIHeader::offsets ( ) const
unsigned libzmf::BMIHeader::paletteColorCount ( ) const

Referenced by load().

void libzmf::BMIHeader::readOffsets ( const RVNGInputStreamPtr input,
uint16_t  offsetCount 
)
private

Referenced by load().

bool libzmf::BMIHeader::reconcileHeight ( unsigned &  colorHeight,
unsigned &  transparencyHeight 
)
bool libzmf::BMIHeader::reconcileWidth ( unsigned &  colorWidth,
unsigned &  transparencyWidth 
)
unsigned libzmf::BMIHeader::size ( ) const
unsigned libzmf::BMIHeader::startOffset ( ) const
unsigned libzmf::BMIHeader::width ( ) const

Member Data Documentation

unsigned libzmf::BMIHeader::m_colorDepth
private

Referenced by colorDepth(), and load().

unsigned libzmf::BMIHeader::m_height
private

Referenced by height(), load(), and reconcileHeight().

bool libzmf::BMIHeader::m_isPaletteMode
private

Referenced by isPaletteMode(), and load().

std::vector<BMIOffset> libzmf::BMIHeader::m_offsets
private

Referenced by offsets(), and readOffsets().

std::string libzmf::BMIHeader::m_signature
private

Referenced by isSupported(), and load().

unsigned libzmf::BMIHeader::m_size
private

Referenced by readOffsets(), and size().

unsigned libzmf::BMIHeader::m_startOffset
private

Referenced by load(), and startOffset().

unsigned libzmf::BMIHeader::m_width
private

Referenced by load(), reconcileWidth(), and width().


The documentation for this class was generated from the following files:

Generated for libzmf by doxygen 1.8.6