|
LibreOffice Module vcl (master) 1
|
#include <BitmapPalette.hxx>
Public Types | |
| typedef o3tl::cow_wrapper< ImplBitmapPalette > | ImplType |
Public Member Functions | |
| SAL_DLLPRIVATE const BitmapColor * | ImplGetColorBuffer () const |
| SAL_DLLPRIVATE BitmapColor * | ImplGetColorBuffer () |
| BitmapChecksum | GetChecksum () const |
| BitmapPalette () | |
| BitmapPalette (const BitmapPalette &) | |
| BitmapPalette (BitmapPalette &&) noexcept | |
| BitmapPalette (std::initializer_list< BitmapColor > aBitmapColor) | |
| template<size_t N> | |
| BitmapPalette (const std::array< BitmapColor, N > &colors) | |
| BitmapPalette (sal_uInt16 nCount) | |
| ~BitmapPalette () | |
| BitmapPalette & | operator= (const BitmapPalette &) |
| BitmapPalette & | operator= (BitmapPalette &&) noexcept |
| bool | operator== (const BitmapPalette &rBitmapPalette) const |
| bool | operator!= (const BitmapPalette &rBitmapPalette) const |
| bool | operator! () const |
| sal_uInt16 | GetEntryCount () const |
| void | SetEntryCount (sal_uInt16 nCount) |
| const BitmapColor & | operator[] (sal_uInt16 nIndex) const |
| BitmapColor & | operator[] (sal_uInt16 nIndex) |
| sal_uInt16 | GetBestIndex (const BitmapColor &rCol) const |
| bool | IsGreyPalette8Bit () const |
| Returns true if the palette is 8-bit grey palette. More... | |
| bool | IsGreyPaletteAny () const |
| Returns true if the palette is a grey palette (may not be 8-bit). More... | |
Private Member Functions | |
| BitmapPalette (const BitmapColor *first, const BitmapColor *last) | |
Private Attributes | |
| ImplType | mpImpl |
Friends | |
| class | SalBitmap |
| class | BitmapAccess |
Definition at line 31 of file BitmapPalette.hxx.
Definition at line 75 of file BitmapPalette.hxx.
| BitmapPalette::BitmapPalette | ( | ) |
Definition at line 69 of file bitmappalette.cxx.
| BitmapPalette::BitmapPalette | ( | const BitmapPalette & | rOther | ) |
Definition at line 74 of file bitmappalette.cxx.
|
noexcept |
Definition at line 79 of file bitmappalette.cxx.
| BitmapPalette::BitmapPalette | ( | std::initializer_list< BitmapColor > | aBitmapColor | ) |
Definition at line 84 of file bitmappalette.cxx.
| BitmapPalette::BitmapPalette | ( | const std::array< BitmapColor, N > & | colors | ) |
Definition at line 84 of file BitmapPalette.hxx.
References N.
|
explicit |
Definition at line 94 of file bitmappalette.cxx.
References nCount.
| BitmapPalette::~BitmapPalette | ( | ) |
Definition at line 99 of file bitmappalette.cxx.
|
private |
Definition at line 89 of file bitmappalette.cxx.
| sal_uInt16 BitmapPalette::GetBestIndex | ( | const BitmapColor & | rCol | ) | const |
Definition at line 149 of file bitmappalette.cxx.
References Color::GetColorError(), i, mpImpl, and SAL_MAX_UINT16.
Referenced by OutputDevice::EmulateDrawTransparent(), BitmapColorQuantizationFilter::execute(), BitmapInfoAccess::GetBestPaletteIndex(), ImplPALToPAL(), ImplTCToPAL(), vcl::bitmap::ScanlineTransformer_8BitPalette::writePixel(), vcl::bitmap::ScanlineTransformer_4BitPalette::writePixel(), vcl::bitmap::ScanlineTransformer_1BitPalette::writePixel(), and vcl::ScanlineWriter::writeRGB().
| BitmapChecksum BitmapPalette::GetChecksum | ( | ) | const |
Definition at line 120 of file bitmappalette.cxx.
References mpImpl, and vcl_get_checksum().
Referenced by SalBitmap::updateChecksum().
| sal_uInt16 BitmapPalette::GetEntryCount | ( | ) | const |
Definition at line 133 of file bitmappalette.cxx.
References mpImpl.
Referenced by SalBitmap::convertDataBitCount(), OutputDevice::EmulateDrawTransparent(), BitmapSolarizeFilter::execute(), BitmapInfoAccess::GetPaletteEntryCount(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplConvertUp(), Bitmap::ImplMakeGreyscales(), ImplPALToPAL(), InverseColorMap::InverseColorMap(), Bitmap::Invert(), IsGreyPalette8Bit(), IsGreyPaletteAny(), vcl::pngWrite(), vcl::bitmap::ScanlineTransformer_8BitPalette::readPixel(), vcl::bitmap::ScanlineTransformer_4BitPalette::readPixel(), and vcl::bitmap::ScanlineTransformer_1BitPalette::readPixel().
| BitmapColor * BitmapPalette::ImplGetColorBuffer | ( | ) |
Definition at line 118 of file bitmappalette.cxx.
References mpImpl.
| const BitmapColor * BitmapPalette::ImplGetColorBuffer | ( | ) | const |
Definition at line 113 of file bitmappalette.cxx.
References mpImpl.
Referenced by ImplPALToPAL(), and ImplPALToTC().
| bool BitmapPalette::IsGreyPalette8Bit | ( | ) | const |
Returns true if the palette is 8-bit grey palette.
Definition at line 205 of file bitmappalette.cxx.
References GetEntryCount(), i, and mpImpl.
Referenced by SalBitmap::convertDataBitCount(), Bitmap::HasGreyPalette8Bit(), ImplFastBitmapBlending(), and ImplFastBitmapConversion().
| bool BitmapPalette::IsGreyPaletteAny | ( | ) | const |
Returns true if the palette is a grey palette (may not be 8-bit).
Definition at line 179 of file bitmappalette.cxx.
References Color::GetBlue(), GetEntryCount(), Color::GetGreen(), Bitmap::GetGreyPalette(), Color::GetRed(), and mpImpl.
Referenced by Bitmap::HasGreyPaletteAny().
| bool BitmapPalette::operator! | ( | ) | const |
Definition at line 131 of file bitmappalette.cxx.
References o3tl::cow_wrapper< typename T, class MTPolicy >::empty(), and mpImpl.
|
inline |
Definition at line 56 of file BitmapPalette.hxx.
|
noexcept |
Definition at line 107 of file bitmappalette.cxx.
| BitmapPalette & BitmapPalette::operator= | ( | const BitmapPalette & | rOther | ) |
Definition at line 101 of file bitmappalette.cxx.
References mpImpl.
| bool BitmapPalette::operator== | ( | const BitmapPalette & | rBitmapPalette | ) | const |
Definition at line 126 of file bitmappalette.cxx.
References mpImpl.
| BitmapColor & BitmapPalette::operator[] | ( | sal_uInt16 | nIndex | ) |
Definition at line 143 of file bitmappalette.cxx.
| const BitmapColor & BitmapPalette::operator[] | ( | sal_uInt16 | nIndex | ) | const |
Definition at line 137 of file bitmappalette.cxx.
| void BitmapPalette::SetEntryCount | ( | sal_uInt16 | nCount | ) |
Definition at line 135 of file bitmappalette.cxx.
References mpImpl, and nCount.
Referenced by vcl::unotools::bitmapExFromXBitmap(), Octree::GetPalette(), Bitmap::ImplConvertDown8BPP(), and Bitmap::ImplConvertUp().
|
friend |
Definition at line 34 of file BitmapPalette.hxx.
|
friend |
Definition at line 33 of file BitmapPalette.hxx.
|
private |
Definition at line 80 of file BitmapPalette.hxx.
Referenced by GetBestIndex(), GetChecksum(), GetEntryCount(), ImplGetColorBuffer(), IsGreyPalette8Bit(), IsGreyPaletteAny(), operator!(), operator=(), operator==(), operator[](), and SetEntryCount().