deprecated RGB intensity functions and definitions. These coefficients do

2005-08-03  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb.[ch]: deprecated RGB intensity functions
	and definitions. These coefficients do not accurately compute
	luminance for contemporary monitors. Instead the coefficients from
	the sRGB spec should be used which have now been added.

	* libgimpcolor/gimpcolor.def: updated.

	* libgimp/gimpdrawable.c
	* libgimp/gimppixelfetcher.c
	* app/base/colorize.c
	* app/base/levels.c
	* app/base/temp-buf.c
	* app/core/gimpdrawable-blend.c
	* app/core/gimpdrawable-convert.c
	* app/core/gimpdrawable-desaturate.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage.c
	* app/gui/splash.c
	* app/widgets/gimpgradienteditor.c
	* modules/colorsel_triangle.c
	* plug-ins/common/aa.c
	* plug-ins/common/bumpmap.c
	* plug-ins/common/colorify.c
	* plug-ins/common/despeckle.c
	* plug-ins/common/displace.c
	* plug-ins/common/engrave.c
	* plug-ins/common/gradmap.c
	* plug-ins/common/grid.c
	* plug-ins/common/mng.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/png.c
	* plug-ins/common/whirlpinch.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gfli/gfli.c
	* plug-ins/maze/handy.c
	* plug-ins/pagecurl/pagecurl.c: use gimp_rgb_luminance() and
	friends instead of the deprecated intensity functions.
This commit is contained in:
Sven Neumann
2005-08-03 00:36:41 +00:00
committed by Sven Neumann
parent 79d2bb6a1e
commit 4f870bc132
39 changed files with 321 additions and 113 deletions

View File

@ -63,6 +63,8 @@ gimp_rgb_max
gimp_rgb_min
gimp_rgb_clamp
gimp_rgb_gamma
gimp_rgb_luminance
gimp_rgb_luminance_uchar
gimp_rgb_intensity
gimp_rgb_intensity_uchar
gimp_rgb_composite
@ -74,6 +76,10 @@ gimp_rgba_add
gimp_rgba_subtract
gimp_rgba_multiply
gimp_rgba_distance
GIMP_RGB_LUMINANCE
GIMP_RGB_LUMINANCE_RED
GIMP_RGB_LUMINANCE_GREEN
GIMP_RGB_LUMINANCE_BLUE
GIMP_RGB_INTENSITY
GIMP_RGB_INTENSITY_RED
GIMP_RGB_INTENSITY_GREEN

View File

@ -193,6 +193,24 @@ Definitions and Functions relating to RGB colors.
@gamma:
<!-- ##### FUNCTION gimp_rgb_luminance ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_luminance_uchar ##### -->
<para>
</para>
@rgb:
@Returns:
<!-- ##### FUNCTION gimp_rgb_intensity ##### -->
<para>
@ -305,6 +323,37 @@ Definitions and Functions relating to RGB colors.
@Returns:
<!-- ##### MACRO GIMP_RGB_LUMINANCE ##### -->
<para>
</para>
@r:
@g:
@b:
<!-- ##### MACRO GIMP_RGB_LUMINANCE_RED ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_RGB_LUMINANCE_GREEN ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_RGB_LUMINANCE_BLUE ##### -->
<para>
</para>
<!-- ##### MACRO GIMP_RGB_INTENSITY ##### -->
<para>
This macro calculates the intensity of an RGB value based on