Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
c32685e9
Commit
c32685e9
authored
Feb 15, 1999
by
Tor Lillqvist
Browse files
Oops. Actually use the rgb_to_l function from previous commit. This should
speed up the color balance operation a bit.
parent
51b9bd70
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c32685e9
Mon Feb 15 05:23:18 1999 Tor Lillqvist <tml@iki.fi>
* app/color_balance.c (color_balance): Use the rgb_to_l function.
Sun Feb 14 22:16:16 1999 Tor Lillqvist <tml@iki.fi>
* app/paint_funcs.c app/paint_funcs.h : New function rgb_to_l for
...
...
app/base/color-balance.c
View file @
c32685e9
...
...
@@ -152,9 +152,8 @@ color_balance (PixelRegion *srcPR,
if
(
cbd
->
preserve_luminosity
)
{
rgb_to_hls
(
&
r
,
&
g
,
&
b
);
rgb_to_hls
(
&
r_n
,
&
g_n
,
&
b_n
);
g_n
=
g
;
g_n
=
rgb_to_l
(
r
,
g
,
b
)
;
hls_to_rgb
(
&
r_n
,
&
g_n
,
&
b_n
);
}
...
...
app/color_balance.c
View file @
c32685e9
...
...
@@ -152,9 +152,8 @@ color_balance (PixelRegion *srcPR,
if
(
cbd
->
preserve_luminosity
)
{
rgb_to_hls
(
&
r
,
&
g
,
&
b
);
rgb_to_hls
(
&
r_n
,
&
g_n
,
&
b_n
);
g_n
=
g
;
g_n
=
rgb_to_l
(
r
,
g
,
b
)
;
hls_to_rgb
(
&
r_n
,
&
g_n
,
&
b_n
);
}
...
...
app/tools/color_balance.c
View file @
c32685e9
...
...
@@ -152,9 +152,8 @@ color_balance (PixelRegion *srcPR,
if
(
cbd
->
preserve_luminosity
)
{
rgb_to_hls
(
&
r
,
&
g
,
&
b
);
rgb_to_hls
(
&
r_n
,
&
g_n
,
&
b_n
);
g_n
=
g
;
g_n
=
rgb_to_l
(
r
,
g
,
b
)
;
hls_to_rgb
(
&
r_n
,
&
g_n
,
&
b_n
);
}
...
...
app/tools/gimpcolorbalancetool.c
View file @
c32685e9
...
...
@@ -152,9 +152,8 @@ color_balance (PixelRegion *srcPR,
if
(
cbd
->
preserve_luminosity
)
{
rgb_to_hls
(
&
r
,
&
g
,
&
b
);
rgb_to_hls
(
&
r_n
,
&
g_n
,
&
b_n
);
g_n
=
g
;
g_n
=
rgb_to_l
(
r
,
g
,
b
)
;
hls_to_rgb
(
&
r_n
,
&
g_n
,
&
b_n
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment