LibreOffice Module vcl (master) 1
|
#include <Octree.hxx>
Public Member Functions | |
Octree (const BitmapReadAccess &rReadAcc, sal_uLong nColors) | |
~Octree () | |
const BitmapPalette & | GetPalette () |
sal_uInt16 | GetBestPaletteIndex (const BitmapColor &rColor) |
Private Member Functions | |
void | CreatePalette (OctreeNode *pNode) |
void | GetPalIndex (const OctreeNode *pNode, BitmapColor const &color) |
SAL_DLLPRIVATE void | add (std::unique_ptr< OctreeNode > &rpNode, BitmapColor const &color) |
SAL_DLLPRIVATE void | reduce () |
Private Attributes | |
BitmapPalette | maPalette |
sal_uLong | mnLeafCount |
sal_uLong | mnLevel |
std::unique_ptr< OctreeNode > | pTree |
std::vector< OctreeNode * > | mpReduce |
sal_uInt16 | mnPalIndex |
Definition at line 41 of file Octree.hxx.
Octree::Octree | ( | const BitmapReadAccess & | rReadAcc, |
sal_uLong | nColors | ||
) |
Definition at line 33 of file Octree.cxx.
References add(), BitmapReadAccess::GetIndexFromData(), BitmapInfoAccess::GetPaletteColor(), BitmapReadAccess::GetPixelFromData(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::HasPalette(), BitmapInfoAccess::Height(), mnLeafCount, mnLevel, mnLevel, pTree, reduce(), and BitmapInfoAccess::Width().
Octree::~Octree | ( | ) |
Definition at line 80 of file Octree.cxx.
|
private |
Definition at line 82 of file Octree.cxx.
References add(), mnLeafCount, mnLevel, mpReduce, and nIndex.
|
private |
Definition at line 159 of file Octree.cxx.
References OctreeNode::bLeaf, CreatePalette(), i, maPalette, mnPalIndex, OctreeNode::nBlue, OctreeNode::nCount, OctreeNode::nGreen, OctreeNode::nPalIndex, OctreeNode::nRed, and OctreeNode::pChild.
Referenced by CreatePalette(), and GetPalette().
sal_uInt16 Octree::GetBestPaletteIndex | ( | const BitmapColor & | rColor | ) |
Definition at line 205 of file Octree.cxx.
References GetPalIndex(), mnLevel, mnPalIndex, and pTree.
Referenced by BitmapSimpleColorQuantizationFilter::execute().
const BitmapPalette & Octree::GetPalette | ( | ) |
Definition at line 197 of file Octree.cxx.
References CreatePalette(), maPalette, mnLeafCount, mnPalIndex, pTree, and BitmapPalette::SetEntryCount().
Referenced by BitmapSimpleColorQuantizationFilter::execute(), and Bitmap::ImplConvertDown8BPP().
|
private |
Definition at line 180 of file Octree.cxx.
References OctreeNode::bLeaf, GetPalIndex(), mnLevel, mnPalIndex, nIndex, OctreeNode::nPalIndex, and OctreeNode::pChild.
Referenced by GetBestPaletteIndex(), and GetPalIndex().
|
private |
Definition at line 119 of file Octree.cxx.
References OctreeNode::bLeaf, i, mnLeafCount, mpReduce, OctreeNode::nBlue, OctreeNode::nCount, OctreeNode::nGreen, nIndex, OctreeNode::nRed, OctreeNode::pChild, and OctreeNode::pNext.
Referenced by Octree().
|
private |
Definition at line 50 of file Octree.hxx.
Referenced by CreatePalette(), and GetPalette().
|
private |
Definition at line 51 of file Octree.hxx.
Referenced by add(), GetPalette(), Octree(), and reduce().
|
private |
Definition at line 52 of file Octree.hxx.
Referenced by add(), GetBestPaletteIndex(), GetPalIndex(), and Octree().
|
private |
Definition at line 55 of file Octree.hxx.
Referenced by CreatePalette(), GetBestPaletteIndex(), GetPalette(), and GetPalIndex().
|
private |
Definition at line 54 of file Octree.hxx.
|
private |
Definition at line 53 of file Octree.hxx.
Referenced by GetBestPaletteIndex(), GetPalette(), and Octree().