summaryrefslogtreecommitdiff
path: root/basegfx/source/color/bcolortools.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-01-19 19:14:49 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-01-19 19:15:08 +0100
commitd93536e52943c910936504e531956f04d9c0503f (patch)
treec3f8265e2544c8fac4f35abd59ded537e1aaa704 /basegfx/source/color/bcolortools.cxx
parent3e7151db8d6ffe1688f2b3c68dbc0741fe953cdc (diff)
remove unused methods
Diffstat (limited to 'basegfx/source/color/bcolortools.cxx')
-rw-r--r--basegfx/source/color/bcolortools.cxx38
1 files changed, 0 insertions, 38 deletions
diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx
index fb225e980ca2..f89a47574486 100644
--- a/basegfx/source/color/bcolortools.cxx
+++ b/basegfx/source/color/bcolortools.cxx
@@ -200,26 +200,6 @@ namespace basegfx { namespace tools
}
}
- BColor rgb2yiq(const BColor& rRGBColor)
- {
- // from Foley, van Dam, Computer Graphics
- const double r=rRGBColor.getRed(), g=rRGBColor.getGreen(), b=rRGBColor.getBlue();
- return BColor(
- 0.299*r + 0.587*g + 0.114*b,
- 0.596*r - 0.274*g - 0.322*b,
- 0.211*r - 0.522*g + 0.311*b);
- }
-
- BColor yiq2rgb(const BColor& rYIQColor)
- {
- // from Foley, van Dam, Computer Graphics
- const double y=rYIQColor.getRed(), i=rYIQColor.getGreen(), q=rYIQColor.getBlue();
- return BColor(
- y + 0.956*i + 0.623*q,
- y - 0.272*i - 0.648*q,
- y - 1.105*i + 1.705*q );
- }
-
BColor ciexyz2rgb( const BColor& rXYZColor )
{
// from Poynton color faq, and SMPTE RP 177-1993, Derivation
@@ -242,24 +222,6 @@ namespace basegfx { namespace tools
0.019334*r + 0.119193*g + 0.950227*b);
}
- BColor rgb2ypbpr(const BColor& rRGBColor)
- {
- const double r=rRGBColor.getRed(), g=rRGBColor.getGreen(), b=rRGBColor.getBlue();
- return BColor(
- 0.299*r + 0.587*g + 0.114*b,
- -0.168736*r - 0.331264*g + 0.5*b,
- 0.5*r - 0.418688*g - 0.081312*b);
- }
-
- BColor ypbpr2rgb(const BColor& rYPbPrColor)
- {
- const double y=rYPbPrColor.getRed(), pb=rYPbPrColor.getGreen(), pr=rYPbPrColor.getBlue();
- return BColor(
- 1.*y + 0.*pb + 1.402*pr,
- 1.*y - 0.344136*pb - 0.714136*pr,
- 1.*y + 1.772*pb + 0.*pr);
- }
-
} } // end of namespace basegfx
//////////////////////////////////////////////////////////////////////////////