plug-ins/common/color_enhance.c plug-ins/common/c_astretch.c removed

2003-11-17 Henrik Brix Andersen <brix@gimp.org>

* plug-ins/common/color_enhance.c
* plug-ins/common/c_astretch.c
* plug-ins/common/gtm.c: removed potentionally offensive words +
removed trailing whitespace. This fixes bug #125668.
This commit is contained in:
Henrik Brix Andersen
2003-11-17 18:02:45 +00:00
committed by Henrik Brix Andersen
parent 54cd9cd777
commit 75d4de0123
4 changed files with 26 additions and 20 deletions

View File

@ -1,3 +1,10 @@
2003-11-17 Henrik Brix Andersen <brix@gimp.org>
* plug-ins/common/color_enhance.c
* plug-ins/common/c_astretch.c
* plug-ins/common/gtm.c: removed potentionally offensive words +
trailing whitespace. This fixes bug #125668.
2003-11-17 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimprgb.h (GIMP_RGB_INTENSITY): removed the

View File

@ -25,7 +25,7 @@
channel in the image, it finds the minimum and maximum values... it
uses those values to stretch the individual histograms to the full
contrast range. For some images it may do just what you want; for
others it may be total crap :) */
others it may not work that well */
#include "config.h"
@ -80,8 +80,8 @@ query (void)
"the minimum and maximum values... it uses those "
"values to stretch the individual histograms to the "
"full contrast range. For some images it may do "
"just what you want; for others it may be total "
"crap :)",
"just what you want; for others it may not work "
"that well.",
"Federico Mena Quintero",
"Federico Mena Quintero",
"1996",
@ -192,7 +192,7 @@ typedef struct {
gboolean has_alpha;
} AutoStretchParam_t;
static void
static void
find_min_max (const guchar *src,
gint bpp,
gpointer data)
@ -223,7 +223,7 @@ c_astretch_func (const guchar *src,
for (b = 0; b < param->alpha; b++)
dest[b] = param->lut[src[b]][b];
if (param->has_alpha)
dest[param->alpha] = src[param->alpha];
}

View File

@ -26,7 +26,7 @@
channel in the image, it finds the minimum and maximum values... it
uses those values to stretch the individual histograms to the full
range. For some images it may do just what you want; for others
it may be total crap :) This version operates in HSV space
it may not work that well. This version operates in HSV space
and preserves hue. Most code is taken from autostretch_hsv */
@ -83,12 +83,12 @@ query (void)
"the minimum and maximum values... it uses those "
"values to stretch the individual histograms to the "
"full range. For some images it may do just what "
"you want; for others it may be total crap :). "
"you want; for others it may not work that well. "
"This version differs from Contrast Autostretch in "
"that it works in HSV space, and preserves hue.",
"Martin Weber",
"Martin Weber",
"1997",
"Martin Weber",
"1997",
N_("<Image>/Layer/Colors/Auto/_Color Enhance"),
"RGB*, INDEXED*",
GIMP_PLUGIN,
@ -156,15 +156,15 @@ get_v (const guchar *src)
gint c, m, y;
gint k;
guchar map[3];
c = 255 - src[0];
m = 255 - src[1];
y = 255 - src[2];
k = c;
if (m < k) k = m;
if (y < k) k = y;
map[0] = c - k;
map[1] = m - k;
map[2] = y - k;
@ -181,15 +181,15 @@ enhance_it (const guchar *src, guchar *dest, gdouble vlo, gdouble vhi)
gint c, m, y;
gint k;
guchar map[3];
c = 255 - src[0];
m = 255 - src[1];
y = 255 - src[2];
k = c;
if (m < k) k = m;
if (y < k) k = y;
map[0] = c - k;
map[1] = m - k;
map[2] = y - k;
@ -200,7 +200,7 @@ enhance_it (const guchar *src, guchar *dest, gdouble vlo, gdouble vhi)
v = (v - vlo) / (vhi - vlo);
gimp_hsv_to_rgb4(map, h, z, v);
c = map[0];
m = map[1];
y = map[2];
@ -254,7 +254,7 @@ typedef struct {
gboolean has_alpha;
} ColorEnhanceParam_t;
static void
static void
find_vhi_vlo (const guchar *src,
gint bpp,
gpointer data)
@ -270,7 +270,7 @@ find_vhi_vlo (const guchar *src,
}
}
static void
static void
color_enhance_func (const guchar *src,
guchar *dest,
gint bpp,

View File

@ -428,8 +428,7 @@ save_dialog (gint32 image_ID)
GTK_ICON_SIZE_DIALOG);
gtk_box_pack_start (GTK_BOX (hbox), eek, FALSE, FALSE, 4);
label = gtk_label_new (_("Are you crazy?\n\n"
"You are about to create a huge\n"
label = gtk_label_new (_("You are about to create a huge\n"
"HTML file which will most likely\n"
"crash your browser."));
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);