1 /*
2  *  This file is part of RawTherapee.
3  *
4  *  Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
5  *
6  *  RawTherapee is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation, either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  RawTherapee is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with RawTherapee.  If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #include "color.h"
21 #include "procparams.h"
22 #include "rtengine.h"
23 
24 const char rtengine::sImage8[] =     "Image8";
25 const char rtengine::sImage16[] =    "Image16";
26 const char rtengine::sImagefloat[] = "Imagefloat";
getCoarseBitMask(const procparams::CoarseTransformParams & coarse)27 int rtengine::getCoarseBitMask( const procparams::CoarseTransformParams &coarse)
28 {
29     int tr = TR_NONE;
30 
31     if (coarse.rotate == 90) {
32         tr |= TR_R90;
33     } else if (coarse.rotate == 180) {
34         tr |= TR_R180;
35     } else if (coarse.rotate == 270) {
36         tr |= TR_R270;
37     }
38 
39     if (coarse.hflip) {
40         tr |= TR_HFLIP;
41     }
42 
43     if (coarse.vflip) {
44         tr |= TR_VFLIP;
45     }
46 
47     return tr;
48 }
49 
getigammatab()50 const LUTf& rtengine::getigammatab() {
51     return Color::igammatab_srgb;
52 }
53