~ubuntu-branches/ubuntu/saucy/darktable/saucy

« back to all changes in this revision

Viewing changes to src/iop/exposure.h

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2011-04-14 23:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20110414234212-kuffcz5wiu18v6ra
Tags: upstream-0.8
ImportĀ upstreamĀ versionĀ 0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of darktable,
 
3
    copyright (c) 2009--2010 johannes hanika.
 
4
 
 
5
    darktable is free software: you can redistribute it and/or modify
 
6
    it under the terms of the GNU General Public License as published by
 
7
    the Free Software Foundation, either version 3 of the License, or
 
8
    (at your option) any later version.
 
9
 
 
10
    darktable is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
    GNU General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU General Public License
 
16
    along with darktable.  If not, see <http://www.gnu.org/licenses/>.
 
17
*/
 
18
#ifndef DARKTABLE_IOP_EXPOSURE_H
 
19
#define DARKTABLE_IOP_EXPOSURE_H
 
20
 
 
21
#include "develop/imageop.h"
 
22
#include <gtk/gtk.h>
 
23
#include <inttypes.h>
 
24
#include "dtgtk/slider.h"
 
25
 
 
26
typedef struct dt_iop_exposure_params_t
 
27
{
 
28
  float black, exposure, gain;
 
29
}
 
30
dt_iop_exposure_params_t;
 
31
 
 
32
typedef struct dt_iop_exposure_gui_data_t
 
33
{
 
34
  GtkVBox *vbox1, *vbox2;
 
35
  GtkCheckButton *autoexp;
 
36
  GtkDarktableSlider *scale1, *scale2, *autoexpp;
 
37
}
 
38
dt_iop_exposure_gui_data_t;
 
39
 
 
40
typedef struct dt_iop_exposure_data_t
 
41
{
 
42
  float black, exposure, gain;
 
43
}
 
44
dt_iop_exposure_data_t;
 
45
 
 
46
typedef struct dt_iop_exposure_global_data_t
 
47
{
 
48
  int kernel_exposure;
 
49
}
 
50
dt_iop_exposure_global_data_t;
 
51
 
 
52
void init(dt_iop_module_t *module);
 
53
void cleanup(dt_iop_module_t *module);
 
54
 
 
55
void gui_update    (struct dt_iop_module_t *self);
 
56
void commit_params (struct dt_iop_module_t *self, dt_iop_params_t *params, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece);
 
57
void init_pipe     (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece);
 
58
void reset_params  (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece);
 
59
void cleanup_pipe  (struct dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece);
 
60
 
 
61
void gui_init     (struct dt_iop_module_t *self);
 
62
void gui_cleanup  (struct dt_iop_module_t *self);
 
63
 
 
64
void process (struct dt_iop_module_t *self, dt_dev_pixelpipe_iop_t *piece, void *i, void *o, const dt_iop_roi_t *roi_in, const dt_iop_roi_t *roi_out);
 
65
 
 
66
#endif