~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to src/rs-histogram.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-18 17:58:00 UTC
  • mfrom: (2.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081018175800-r1s7ke1xwy9wxv5b
Tags: 1.1.1-1
MergingĀ upstreamĀ versionĀ 1.1.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <gtk/gtk.h>
21
21
#include "rs-histogram.h"
22
22
#include "rs-color-transform.h"
 
23
#include "rs-math.h"
23
24
 
24
25
struct _RSHistogramWidget
25
26
{
28
29
        gint height;
29
30
        GdkPixmap *blitter;
30
31
        RS_IMAGE16 *image;
31
 
        RS_COLOR_TRANSFORM *rct;
 
32
        RSColorTransform *rct;
32
33
        guint input_samples[4][256];
33
34
        guint *output_samples[4];
34
35
};
136
137
/**
137
138
 * Set color transform to be used when rendering histogram
138
139
 * @param histogram A RSHistogramWidget
139
 
 * @param rct A RS_COLOR_TRANSFORM
 
140
 * @param rct A RSColorTransform
140
141
 */
141
142
void
142
 
rs_histogram_set_color_transform(RSHistogramWidget *histogram, RS_COLOR_TRANSFORM *rct)
 
143
rs_histogram_set_color_transform(RSHistogramWidget *histogram, RSColorTransform *rct)
143
144
{
144
145
        g_return_if_fail (RS_IS_HISTOGRAM_WIDGET(histogram));
145
146
        g_return_if_fail (rct);