app: rename gimp_histogram_get_channel() to get_component()
Because that's what it is. It also takes a "gint component" (0..4) and not a "GimpHistogramChannel channel".
This commit is contained in:
@ -558,16 +558,16 @@ gimp_histogram_get_value (GimpHistogram *histogram,
|
||||
}
|
||||
|
||||
gdouble
|
||||
gimp_histogram_get_channel (GimpHistogram *histogram,
|
||||
GimpHistogramChannel channel,
|
||||
gint bin)
|
||||
gimp_histogram_get_component (GimpHistogram *histogram,
|
||||
gint component,
|
||||
gint bin)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_HISTOGRAM (histogram), 0.0);
|
||||
|
||||
if (histogram->priv->n_channels > 3)
|
||||
channel++;
|
||||
component++;
|
||||
|
||||
return gimp_histogram_get_value (histogram, channel, bin);
|
||||
return gimp_histogram_get_value (histogram, component, bin);
|
||||
}
|
||||
|
||||
gint
|
||||
|
||||
@ -87,8 +87,8 @@ gdouble gimp_histogram_get_threshold (GimpHistogram *histogram,
|
||||
gdouble gimp_histogram_get_value (GimpHistogram *histogram,
|
||||
GimpHistogramChannel channel,
|
||||
gint bin);
|
||||
gdouble gimp_histogram_get_channel (GimpHistogram *histogram,
|
||||
GimpHistogramChannel channel,
|
||||
gdouble gimp_histogram_get_component (GimpHistogram *histogram,
|
||||
gint component,
|
||||
gint bin);
|
||||
gint gimp_histogram_n_channels (GimpHistogram *histogram);
|
||||
gint gimp_histogram_n_bins (GimpHistogram *histogram);
|
||||
|
||||
@ -168,7 +168,7 @@ gimp_operation_equalize_set_property (GObject *object,
|
||||
{
|
||||
gdouble histi;
|
||||
|
||||
histi = gimp_histogram_get_channel (self->histogram, k, i);
|
||||
histi = gimp_histogram_get_component (self->histogram, k, i);
|
||||
|
||||
sum += histi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user