summaryrefslogtreecommitdiff
path: root/vcl/inc/octree.hxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-25 22:09:39 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-25 22:17:02 +1100
commit05cf6acb96415219481ee57e7545555287ae2422 (patch)
tree69feae809e80a9d5df30a1e96d5981d40d7c3988 /vcl/inc/octree.hxx
parent33cb676e582a57a469a0ea1ce7bdb2d57575992e (diff)
vcl: reformat tabs in vcl/inc/octree.hxx
Change-Id: Ibff8fee74605bc1570b409ddd42c4834a67e2fbd
Diffstat (limited to 'vcl/inc/octree.hxx')
-rw-r--r--vcl/inc/octree.hxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/vcl/inc/octree.hxx b/vcl/inc/octree.hxx
index 5210387967bc..803f592918db 100644
--- a/vcl/inc/octree.hxx
+++ b/vcl/inc/octree.hxx
@@ -32,11 +32,11 @@ typedef struct OctreeNode
sal_uLong nRed;
sal_uLong nGreen;
sal_uLong nBlue;
- OctreeNode* pChild[ 8 ];
- OctreeNode* pNext;
- OctreeNode* pNextInCache;
+ OctreeNode* pChild[ 8 ];
+ OctreeNode* pNext;
+ OctreeNode* pNextInCache;
sal_uInt16 nPalIndex;
- bool bLeaf;
+ bool bLeaf;
} NODE;
class ImpNodeCache;
@@ -45,6 +45,16 @@ class BitmapReadAccess;
class VCL_PLUGIN_PUBLIC Octree
{
private:
+ Octree() {}
+
+ void CreatePalette( NODE* pNode );
+ void GetPalIndex( NODE* pNode );
+
+ SAL_DLLPRIVATE void ImplCreateOctree();
+ SAL_DLLPRIVATE void ImplDeleteOctree( NODE** ppNode );
+ SAL_DLLPRIVATE void ImplAdd( NODE** ppNode );
+ SAL_DLLPRIVATE void ImplReduce();
+
BitmapPalette aPal;
sal_uLong nMax;
@@ -55,17 +65,7 @@ private:
BitmapColor* pColor;
ImpNodeCache* pNodeCache;
const BitmapReadAccess* pAcc;
- sal_uInt16 nPalIndex;
-
- Octree() {}
-
- void CreatePalette( NODE* pNode );
- void GetPalIndex( NODE* pNode );
-
- SAL_DLLPRIVATE void ImplCreateOctree();
- SAL_DLLPRIVATE void ImplDeleteOctree( NODE** ppNode );
- SAL_DLLPRIVATE void ImplAdd( NODE** ppNode );
- SAL_DLLPRIVATE void ImplReduce();
+ sal_uInt16 nPalIndex;
public:
@@ -73,7 +73,7 @@ public:
~Octree();
inline const BitmapPalette& GetPalette();
- inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
+ inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
};
inline const BitmapPalette& Octree::GetPalette()
@@ -97,18 +97,18 @@ class VCL_PLUGIN_PUBLIC InverseColorMap
{
private:
- sal_uInt8* pBuffer;
- sal_uInt8* pMap;
- const sal_uLong nBits;
+ sal_uInt8* pBuffer;
+ sal_uInt8* pMap;
+ const sal_uLong nBits;
SAL_DLLPRIVATE void ImplCreateBuffers( const sal_uLong nMax );
public:
- explicit InverseColorMap( const BitmapPalette& rPal );
- ~InverseColorMap();
+ explicit InverseColorMap( const BitmapPalette& rPal );
+ ~InverseColorMap();
- inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
+ inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor );
};
inline sal_uInt16 InverseColorMap::GetBestPaletteIndex( const BitmapColor& rColor )