diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2018-04-17 22:06:20 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-04-20 08:35:58 +0200 |
commit | 900b1109a94c1d72c17ab429da1b6c6c2bf79ac6 (patch) | |
tree | cd9db8e494a2ae93460c29609eff4b7dba15f583 /include/vcl/bitmap.hxx | |
parent | f9473a8d2ea6740d325ac35da74fec16476820f0 (diff) |
vcl: move Bitmap{Ex}::ReduceColors() to BitmapColorQuantizationFilter class
Change-Id: I32b58e8d451e7303e94788a546a5b5f9a5bb4590
Reviewed-on: https://gerrit.libreoffice.org/53037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl/bitmap.hxx')
-rw-r--r-- | include/vcl/bitmap.hxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 6370a63d116f..ad1efb8bb862 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -89,12 +89,6 @@ enum class BmpCombine Or, And }; -enum BmpReduce -{ - BMP_REDUCE_SIMPLE = 0, - BMP_REDUCE_POPULAR = 1 -}; - enum class BmpFilter { Smooth = 0, @@ -285,20 +279,6 @@ public: */ bool MakeMonochrome(sal_uInt8 cThreshold); - /** Reduce number of colors for the bitmap - - @param nNewColorCount - Maximal number of bitmap colors after the reduce operation - - @param eReduce - Algorithm to use for color reduction - - @return true the color reduction operation was completed successfully. - */ - bool ReduceColors( - sal_uInt16 nNewColorCount, - BmpReduce eReduce = BMP_REDUCE_SIMPLE ); - /** Apply a dither algorithm to the bitmap This method dithers the bitmap inplace, i.e. a true color @@ -680,14 +660,6 @@ public: SAL_DLLPRIVATE bool ImplDitherMatrix(); SAL_DLLPRIVATE bool ImplDitherFloyd(); SAL_DLLPRIVATE bool ImplDitherFloyd16(); - SAL_DLLPRIVATE bool ImplReduceSimple( sal_uInt16 nColorCount ); - SAL_DLLPRIVATE bool ImplReducePopular( sal_uInt16 nColorCount ); - SAL_DLLPRIVATE bool ImplReduceMedian( sal_uInt16 nColorCount ); - SAL_DLLPRIVATE void ImplMedianCut( - sal_uLong* pColBuf, - BitmapPalette& rPal, - long nR1, long nR2, long nG1, long nG2, long nB1, long nB2, - long nColors, long nPixels, long& rIndex ); SAL_DLLPRIVATE bool ImplConvolute3( const long* pMatrix ); |