~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/dimg/filters/lc/localcontrastcontainer.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2009-08-09
 
7
 * Description : Local Contrast settings container
 
8
 *               LDR ToneMapper <http://zynaddsubfx.sourceforge.net/other/tonemapping>
 
9
 *
 
10
 * Copyright (C) 2009 by Nasca Octavian Paul <zynaddsubfx at yahoo dot com>
 
11
 * Copyright (C) 2009-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
12
 *
 
13
 * This program is free software; you can redistribute it
 
14
 * and/or modify it under the terms of the GNU General
 
15
 * Public License as published by the Free Software Foundation;
 
16
 * either version 2, or (at your option)
 
17
 * any later version.
 
18
 *
 
19
 * This program is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
22
 * GNU General Public License for more details.
 
23
 *
 
24
 * ============================================================ */
 
25
 
 
26
#ifndef LOCALCONTRASTCONTAINER_H
 
27
#define LOCALCONTRASTCONTAINER_H
 
28
 
 
29
#define TONEMAPPING_MAX_STAGES 4
 
30
 
 
31
// Local includes
 
32
 
 
33
#include "digikam_export.h"
 
34
 
 
35
namespace Digikam
 
36
{
 
37
 
 
38
class ToneMappingParametersPriv;
 
39
 
 
40
class DIGIKAM_EXPORT LocalContrastContainer
 
41
{
 
42
 
 
43
public:
 
44
 
 
45
    LocalContrastContainer();
 
46
    ~LocalContrastContainer();
 
47
 
 
48
    float get_power(int nstage);
 
49
    float get_blur(int nstage);
 
50
 
 
51
    float get_unsharp_mask_power();
 
52
    float get_unsharp_mask_blur();
 
53
 
 
54
public:
 
55
 
 
56
    bool stretch_contrast;
 
57
 
 
58
    int  low_saturation;
 
59
    int  high_saturation;
 
60
    int  function_id;
 
61
 
 
62
    struct
 
63
    {
 
64
        bool  enabled;
 
65
        float power;
 
66
        float blur;
 
67
    }
 
68
    stage[TONEMAPPING_MAX_STAGES];
 
69
 
 
70
    struct
 
71
    {
 
72
        bool  enabled;       // digiKam Unsharp Mask settings:
 
73
        float blur;          // Radius    : 0.00 - 120.00
 
74
        float power;         // Amount    : 0.0  - 5.0
 
75
        int   threshold;     // threshold : 0.00 - 1.00
 
76
    }
 
77
    unsharp_mask;
 
78
};
 
79
 
 
80
} // namespace Digikam
 
81
 
 
82
#endif // LOCALCONTRASTCONTAINER_H