Kaydet (Commit) 4029a580 authored tarafından Emanuele Fia's avatar Emanuele Fia Kaydeden (comit) Michael Meeks

Removed IsGreyPalette

üst 266defb7
......@@ -4,57 +4,11 @@ AtomDocument::AtomDocument(AtomPubSession*, std::basic_string<char, std::char_tr
AtomFolder::AtomFolder(AtomPubSession*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)
AtomPubSession::getCollectionUrl(Collection::Type)
AtomPubSession::~AtomPubSession()
BitmapPalette::IsGreyPalette() const
BufferNode::childAt(int) const
ByteString::Assign(char const*, unsigned short)
ByteString::Assign(char)
CAT::Inverse() const
CAT::makeChromaticAdaptationTag() const
CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned char*, float const*)
CIccCmm::FromInternalEncoding(icColorSpaceSignature, unsigned short*, float const*)
CIccCmm::GetFloatColorEncoding(char const*)
CIccCmm::GetFloatColorEncoding(icFloatColorEncoding)
CIccCmm::IsInGamut(float*)
CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned char const*)
CIccCmm::ToInternalEncoding(icColorSpaceSignature, float*, unsigned short const*)
CIccFormulaCurveSegment::SetFunction(unsigned short, unsigned char, float*)
CIccIO::ReadLine(void*, int)
CIccInfo::GetSpotShapeName(icSpotShape)
CIccMBB::NewCLUT(unsigned char*, unsigned char)
CIccMemIO::Alloc(unsigned int, bool)
CIccMpeCLUT::SetCLUT(CIccCLUT*)
CIccMpeCreator::DoGetElementSigName(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, icElemTypeSignature)
CIccMpeCurveSet::SetCurve(int, CIccCurveSetCurve*)
CIccMruCmm::Attach(CIccCmm*, unsigned char)
CIccNamedColorCmm::CIccNamedColorCmm(icColorSpaceSignature, icColorSpaceSignature, bool)
CIccNamedColorCmm::SetLastXformDest(icColorSpaceSignature)
CIccProfile::DeleteTag(unsigned int)
CIccProfile::GetSpaceSamples() const
CIccProfileIdDesc::CIccProfileIdDesc(CIccProfile&)
CIccProfileIdDesc::CIccProfileIdDesc(icProfileID, CIccTagMultiLocalizedUnicode)
CIccSegmentedCurve::Insert(CIccCurveSegment*)
CIccTagCurve::SetGamma(float)
CIccTagFixedNum<int, (icTagTypeSignature)1936077618>::GetSize() const
CIccTagFixedNum<unsigned int, (icTagTypeSignature)1969632050>::GetSize() const
CIccTagMultiLocalizedUnicode::SetText(unsigned short const*, unsigned short, unsigned short)
CIccTagMultiProcessElement::GetElement(int)
CIccTagNamedColor2::FindRootColor(char const*)
CIccTagNamedColor2::Lab4ToLab2(float*, float const*)
CIccTagNamedColor2::NegClip(float)
CIccTagNum<unsigned char, (icTagTypeSignature)1969827896>::GetSize() const
CIccTagNum<unsigned int, (icTagTypeSignature)1969828658>::GetSize() const
CIccTagNum<unsigned long, (icTagTypeSignature)1969829428>::GetSize() const
CIccTagNum<unsigned short, (icTagTypeSignature)1969828150>::GetSize() const
CIccTagProfileSequenceId::AddProfileDescription(CIccProfileIdDesc const&)
CIccTagProfileSequenceId::GetFirst()
CIccTagProfileSequenceId::GetLast()
CIccTagProfileSequenceId::ParseMem(unsigned char*, unsigned int)
CIccTagResponseCurveSet16::GetFirstCurves()
CIccTagResponseCurveSet16::GetNextCurves()
CIccTagResponseCurveSet16::NewResponseCurves(icMeasurementUnitSig)
CIccTagResponseCurveSet16::SetNumChannels(unsigned short)
CIccXform::Create(CIccProfile&, bool, icRenderingIntent, icXformInterp, icXformLutType, bool)
CIccXformMpe::Create(CIccProfile*, bool, icRenderingIntent, icXformInterp, icXformLutType)
CLUT::Iterate(IIccCLUTExec*)
CLUT::adaptedXYZToMeasuredXYZ(float*, float const*, float const*, float, CAT const*)
CLUT::makeAToBxTag(unsigned int, float const*, float const*, float const*, CAT const*, float, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float const*, bool)
......
......@@ -230,26 +230,6 @@ const BitmapPalette& Bitmap::GetGreyPalette( int nEntries )
// ------------------------------------------------------------------
bool BitmapPalette::IsGreyPalette() const
{
// TODO: add an IsGreyPalette flag to BitmapPalette
// TODO: unless this causes problems binary compatibility
const int nEntryCount = GetEntryCount();
if( !nEntryCount ) // NOTE: an empty palette means 1:1 mapping
return true;
// see above: only certain entry values will result in a valid call to GetGreyPalette
if( nEntryCount == 2 || nEntryCount == 4 || nEntryCount == 16 || nEntryCount == 256 )
{
const BitmapPalette& rGreyPalette = Bitmap::GetGreyPalette( nEntryCount );
if( rGreyPalette == *this )
return true;
}
// TODO: is it worth to compare the entries?
return false;
}
// ------------------------------------------------------------------
Bitmap& Bitmap::operator=( const Bitmap& rBitmap )
{
maPrefSize = rBitmap.maPrefSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment