#include <BmpFile.h>
◆ BITMAPCOREHEADER
◆ BITMAPFILEHEADER
◆ BITMAPINFOHEADER
◆ SUBFORMAT
◆ BmpFile() [1/2]
BmpFile::BmpFile |
( |
void |
| ) |
|
◆ BmpFile() [2/2]
◆ ~BmpFile()
BmpFile::~BmpFile |
( |
void |
| ) |
|
◆ bmpos2_readheaders()
void BmpFile::bmpos2_readheaders |
( |
| ) |
|
|
private |
◆ bmpos2_writeheaders()
void BmpFile::bmpos2_writeheaders |
( |
| ) |
|
|
private |
◆ bmpwin_readheaders()
void BmpFile::bmpwin_readheaders |
( |
| ) |
|
|
private |
◆ bmpwin_writeheaders()
void BmpFile::bmpwin_writeheaders |
( |
| ) |
|
|
private |
◆ calcIndex()
void BmpFile::calcIndex |
( |
SamplePos |
pos, |
|
|
unsigned long * |
index, |
|
|
unsigned short * |
firstbit |
|
) |
| const |
|
private |
translate a sample position into a <index,firstbit> pair "pointing" into the BitmapData array
- Parameters
-
pos | a sample position |
index | a pointer to a variable that will contain the array index used to access the pos-th sample |
firstbit | the firstbit in BitmapData[index] that belongs to the sample with the given position |
◆ calcLinelength()
unsigned long BmpFile::calcLinelength |
( |
| ) |
|
|
private |
◆ calcSVAdjacencyLists()
calculate a vector a SampleValueAdjacencyLists
- Parameters
-
svs | a vector of unique(!) sample values where svs[i]->getLabel() == i holds for all i |
- Returns
- a vector of SampleValueAdjacencyLists where retval[i] only contains sample values with getEmbValue() == i
Every row in the adjacency lists must be sorted in the following order: The first sample value has the least distance to the source sample value, the last has the largest distance. If two sample values in one row have the same distance to the source sample value, the order does not matter.
May be overridden in derived class to provide a faster version.
Reimplemented from CvrStgFile.
◆ getBitCount()
unsigned short BmpFile::getBitCount |
( |
void |
| ) |
const |
◆ getHeight()
unsigned long BmpFile::getHeight |
( |
void |
| ) |
const |
◆ getMatchingAlgorithms()
get recommended list of matching algorithms
- Parameters
-
The MatchingAlgorithm objects returned by this function should be deleted by the caller if they are no longer needed.
Reimplemented from CvrStgFile.
◆ getNumSamples()
unsigned long BmpFile::getNumSamples |
( |
void |
| ) |
const |
|
virtual |
◆ getPalette()
◆ getProperties()
◆ getSampleValue()
get the sample at position pos
- Parameters
-
- Returns
- the sample at the given position
The sample object is created in this function and should be deleted by the caller. The derived class should check the condition(s) given above in its Implementation of this function.
Implements CvrStgObject.
◆ getSubformat()
◆ getWidth()
unsigned long BmpFile::getWidth |
( |
void |
| ) |
const |
◆ read()
◆ readdata()
void BmpFile::readdata |
( |
| ) |
|
|
private |
◆ readheaders()
void BmpFile::readheaders |
( |
| ) |
|
|
private |
◆ replaceSample()
replace a sample thus (possibly) altering the value of the bit returned by SampleValue->getBit()
- Parameters
-
pos | the position of the sample (must be in 0...getNumSamples()-1) |
s | the sample value that should replace the current sample value (must be of correct type for this CvrStgObject) |
The derived class should check the condition(s) given above in its Implementation of this function.
Implements CvrStgObject.
◆ write()
void BmpFile::write |
( |
void |
| ) |
|
|
virtual |
◆ writedata()
void BmpFile::writedata |
( |
| ) |
|
|
private |
◆ writeheaders()
void BmpFile::writeheaders |
( |
| ) |
|
|
private |
◆ atend
std::vector<BYTE> BmpFile::atend |
|
private |
◆ bitmap
std::vector<std::vector <unsigned char> > BmpFile::bitmap |
|
private |
contains the bitmap in the following format bitmap[i] is the pixel data of the i-th row of the bitmap bitmap[i][j] is the j-th byte of the pixel data of the i-th row of the bitmap if bitcount is < 8 then bitmap[i][j] contains the pixels as read in from the file (i.e. in the "wrong" direction) this is taken care of in the calcRCB function
◆ BitmapData
std::vector<BYTE> BmpFile::BitmapData |
|
private |
contains the bitmap data in the same order as read from file (but without padding bytes)
◆ bmch
◆ bmfh
◆ bmih
◆ COMPRESSION_BI_RGB
const unsigned int BmpFile::COMPRESSION_BI_RGB = 0 |
|
staticprivate |
◆ EmbValueModulus_LargePalette
const EmbValue BmpFile::EmbValueModulus_LargePalette = 4 |
|
staticprivate |
◆ EmbValueModulus_RGB
const EmbValue BmpFile::EmbValueModulus_RGB = 4 |
|
staticprivate |
◆ EmbValueModulus_SmallPalette
const EmbValue BmpFile::EmbValueModulus_SmallPalette = 2 |
|
staticprivate |
◆ IdBm
const unsigned int BmpFile::IdBm = 19778 |
|
staticprivate |
◆ Palette
◆ Radius_Palette
const UWORD32 BmpFile::Radius_Palette = 400 |
|
staticprivate |
◆ Radius_RGB
const UWORD32 BmpFile::Radius_RGB = 100 |
|
staticprivate |
◆ SamplesPerVertex_LargePalette
const unsigned short BmpFile::SamplesPerVertex_LargePalette = 3 |
|
staticprivate |
◆ SamplesPerVertex_RGB
const unsigned short BmpFile::SamplesPerVertex_RGB = 2 |
|
staticprivate |
◆ SamplesPerVertex_SmallPalette
const unsigned short BmpFile::SamplesPerVertex_SmallPalette = 2 |
|
staticprivate |
◆ SizeBMCOREHEADER
const unsigned short BmpFile::SizeBMCOREHEADER = 12 |
|
staticprivate |
◆ SizeBMFILEHEADER
const unsigned short BmpFile::SizeBMFILEHEADER = 14 |
|
staticprivate |
◆ SizeBMINFOHEADER
const unsigned short BmpFile::SizeBMINFOHEADER = 40 |
|
staticprivate |
◆ subformat
The documentation for this class was generated from the following files: