summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-26 20:38:31 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-26 21:01:25 +0200
commit376927e48c0d6da2933e9cf3eb8b8a2b92bf843a (patch)
tree2e19055894070f963d41280bc706203a46fcc67e /vcl
parent46f61ff87098dad62e32aa162c4ccfa71850550a (diff)
Remove useless code separaion comments in bitmap3.cpp
Change-Id: I402835cf2bcdab48065eed251ba193dda6c27ad4
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bitmap3.cxx64
1 files changed, 0 insertions, 64 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index edae9e1c715a..66198e3d367d 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -82,8 +82,6 @@ const extern sal_uLong nVCLRLut[ 6 ] = { 16, 17, 18, 19, 20, 21 };
const extern sal_uLong nVCLGLut[ 6 ] = { 0, 6, 12, 18, 24, 30 };
const extern sal_uLong nVCLBLut[ 6 ] = { 0, 36, 72, 108, 144, 180 };
-// ------------------------------------------------------------------------
-
const extern sal_uLong nVCLDitherLut[ 256 ] =
{
0, 49152, 12288, 61440, 3072, 52224, 15360, 64512, 768, 49920, 13056,
@@ -112,8 +110,6 @@ const extern sal_uLong nVCLDitherLut[ 256 ] =
25856, 38144, 21760
};
-// ------------------------------------------------------------------------
-
const extern sal_uLong nVCLLut[ 256 ] =
{
0, 1286, 2572, 3858, 5144, 6430, 7716, 9002,
@@ -150,8 +146,6 @@ const extern sal_uLong nVCLLut[ 256 ] =
318928,320214,321500,322786,324072,325358,326644,327930
};
-// ------------------------------------------------------------------------
-
const long FloydMap[256] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -172,8 +166,6 @@ const long FloydMap[256] =
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
};
-// ------------------------------------------------------------------------
-
const long FloydError1[61] =
{
-7680, -7424, -7168, -6912, -6656, -6400, -6144,
@@ -186,8 +178,6 @@ const long FloydError1[61] =
5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680
};
-// ------------------------------------------------------------------------
-
const long FloydError3[61] =
{
-23040, -22272, -21504, -20736, -19968, -19200,
@@ -201,8 +191,6 @@ const long FloydError3[61] =
19200, 19968, 20736, 21504, 22272, 23040
};
-// ------------------------------------------------------------------------
-
const long FloydError5[61] =
{
-38400, -37120, -35840, -34560, -33280, -32000,
@@ -217,8 +205,6 @@ const long FloydError5[61] =
38400
};
-// ------------------------------------------------------------------------
-
const long FloydError7[61] =
{
-53760, -51968, -50176, -48384, -46592, -44800,
@@ -233,8 +219,6 @@ const long FloydError7[61] =
53760
};
-// ------------------------------------------------------------------------
-
const long FloydIndexMap[6] =
{
-30, 21, 72, 123, 174, 225
@@ -362,8 +346,6 @@ sal_Bool Bitmap::Convert( BmpConversion eConversion )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold )
{
BitmapReadAccess* pReadAcc = AcquireReadAccess();
@@ -435,8 +417,6 @@ sal_Bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplMakeMonoDither()
{
BitmapReadAccess* pReadAcc = AcquireReadAccess();
@@ -511,8 +491,6 @@ sal_Bool Bitmap::ImplMakeMonoDither()
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys )
{
DBG_ASSERT( nGreys == 16 || nGreys == 256, "Only 16 or 256 greyscales are supported!" );
@@ -625,8 +603,6 @@ sal_Bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplConvertUp( sal_uInt16 nBitCount, Color* pExtColor )
{
DBG_ASSERT( nBitCount > GetBitCount(), "New BitCount must be greater!" );
@@ -701,8 +677,6 @@ sal_Bool Bitmap::ImplConvertUp( sal_uInt16 nBitCount, Color* pExtColor )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplConvertDown( sal_uInt16 nBitCount, Color* pExtColor )
{
DBG_ASSERT( nBitCount <= GetBitCount(), "New BitCount must be lower ( or equal when pExtColor is set )!" );
@@ -827,8 +801,6 @@ sal_Bool Bitmap::ImplConvertDown( sal_uInt16 nBitCount, Color* pExtColor )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplConvertGhosted()
{
Bitmap aNewBmp;
@@ -903,8 +875,6 @@ sal_Bool Bitmap::ImplConvertGhosted()
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uLong nScaleFlag )
{
bool bRet;
@@ -950,8 +920,6 @@ sal_Bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, sal_uLong
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Scale( const Size& rNewSize, sal_uLong nScaleFlag )
{
const Size aSize( GetSizePixel() );
@@ -969,8 +937,6 @@ sal_Bool Bitmap::Scale( const Size& rNewSize, sal_uLong nScaleFlag )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplScaleFast( const double& rScaleX, const double& rScaleY )
{
const Size aSizePix( GetSizePixel() );
@@ -1040,8 +1006,6 @@ sal_Bool Bitmap::ImplScaleFast( const double& rScaleX, const double& rScaleY )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rScaleY )
{
const Size aSizePix( GetSizePixel() );
@@ -1276,8 +1240,6 @@ sal_Bool Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rSca
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Dither( sal_uLong nDitherFlags )
{
sal_Bool bRet = sal_False;
@@ -1296,8 +1258,6 @@ sal_Bool Bitmap::Dither( sal_uLong nDitherFlags )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplDitherMatrix()
{
BitmapReadAccess* pReadAcc = AcquireReadAccess();
@@ -1366,8 +1326,6 @@ sal_Bool Bitmap::ImplDitherMatrix()
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplDitherFloyd()
{
const Size aSize( GetSizePixel() );
@@ -1507,8 +1465,6 @@ sal_Bool Bitmap::ImplDitherFloyd()
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplDitherFloyd16()
{
BitmapReadAccess* pReadAcc = AcquireReadAccess();
@@ -1598,8 +1554,6 @@ sal_Bool Bitmap::ImplDitherFloyd16()
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ReduceColors( sal_uInt16 nColorCount, BmpReduce eReduce )
{
sal_Bool bRet;
@@ -1621,8 +1575,6 @@ sal_Bool Bitmap::ReduceColors( sal_uInt16 nColorCount, BmpReduce eReduce )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplReduceSimple( sal_uInt16 nColorCount )
{
Bitmap aNewBmp;
@@ -1685,16 +1637,12 @@ sal_Bool Bitmap::ImplReduceSimple( sal_uInt16 nColorCount )
return bRet;
}
-// ------------------------------------------------------------------------
-
struct PopularColorCount
{
sal_uInt32 mnIndex;
sal_uInt32 mnCount;
};
-// ------------------------------------------------------------------------
-
extern "C" int __LOADONCALLAPI ImplPopularCmpFnc( const void* p1, const void* p2 )
{
int nRet;
@@ -1709,8 +1657,6 @@ extern "C" int __LOADONCALLAPI ImplPopularCmpFnc( const void* p1, const void* p2
return nRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplReducePopular( sal_uInt16 nColCount )
{
BitmapReadAccess* pRAcc = AcquireReadAccess();
@@ -1856,8 +1802,6 @@ sal_Bool Bitmap::ImplReducePopular( sal_uInt16 nColCount )
return bRet;
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::ImplReduceMedian( sal_uInt16 nColCount )
{
BitmapReadAccess* pRAcc = AcquireReadAccess();
@@ -1947,8 +1891,6 @@ sal_Bool Bitmap::ImplReduceMedian( sal_uInt16 nColCount )
return bRet;
}
-// ------------------------------------------------------------------------
-
void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
long nR1, long nR2, long nG1, long nG2, long nB1, long nB2,
long nColors, long nPixels, long& rIndex )
@@ -2080,22 +2022,16 @@ void Bitmap::ImplMedianCut( sal_uLong* pColBuf, BitmapPalette& rPal,
}
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Vectorize( PolyPolygon& rPolyPoly, sal_uLong nFlags, const Link* pProgress )
{
return ImplVectorizer().ImplVectorize( *this, rPolyPoly, nFlags, pProgress );
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Vectorize( GDIMetaFile& rMtf, sal_uInt8 cReduce, sal_uLong nFlags, const Link* pProgress )
{
return ImplVectorizer().ImplVectorize( *this, rMtf, cReduce, nFlags, pProgress );
}
-// ------------------------------------------------------------------------
-
sal_Bool Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
short nChannelRPercent, short nChannelGPercent, short nChannelBPercent,
double fGamma, sal_Bool bInvert )