Cleanup curves.h includes

This commit is contained in:
Ingo Weyrich 2019-10-29 14:15:45 +01:00
parent 3aa84c48da
commit c11087c28d
10 changed files with 19 additions and 14 deletions

View File

@ -22,7 +22,6 @@
#include "rtengine.h"
#include "rawimagesource.h"
#include "rt_math.h"
#include "improcfun.h"
#include "procparams.h"
#include "color.h"
#include "gauss.h"
@ -605,13 +604,13 @@ BENCHFUN
// special handling for small tiles at end of row or column
for (int k = border, ii = endOfCol ? H - fullTileSize - border : i - border; k < fullTileSize - border; ++k) {
for (int l = border, jj = endOfRow ? W - fullTileSize - border : j - border; l < fullTileSize - border; ++l) {
luminance[ii + k][jj + l] = rtengine::intp(blend[ii + k][jj + l], max(tmpIThr[k][l], 0.0f), luminance[ii + k][jj + l]);
luminance[ii + k][jj + l] = rtengine::intp(blend[ii + k][jj + l], std::max(tmpIThr[k][l], 0.0f), luminance[ii + k][jj + l]);
}
}
} else {
for (int ii = border; ii < fullTileSize - border; ++ii) {
for (int jj = border; jj < fullTileSize - border; ++jj) {
luminance[i + ii - border][j + jj - border] = rtengine::intp(blend[i + ii - border][j + jj - border], max(tmpIThr[ii][jj], 0.0f), luminance[i + ii - border][j + jj - border]);
luminance[i + ii - border][j + jj - border] = rtengine::intp(blend[i + ii - border][j + jj - border], std::max(tmpIThr[ii][jj], 0.0f), luminance[i + ii - border][j + jj - border]);
}
}
}

View File

@ -16,8 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __CURVES_H__
#define __CURVES_H__
#pragma once
#include <map>
#include <string>
@ -1311,5 +1310,3 @@ inline void SatAndValueBlendingToneCurve::Apply (float& ir, float& ig, float& ib
}
#undef CLIPI
#endif

View File

@ -28,7 +28,6 @@
#include "iccmatrices.h"
#include "iccstore.h"
#include "imagefloat.h"
#include "improcfun.h"
#include "rawimagesource.h"
#include "rt_math.h"

View File

@ -33,6 +33,8 @@ namespace rtengine
{
class ColorTemp;
class Imagefloat;
class RetinextransmissionCurve;
class RetinexgaintransmissionCurve;
namespace procparams
{

View File

@ -29,6 +29,7 @@
#include "rtengine.h"
#include "improcfun.h"
#include "curves.h"
#include "dcp.h"
#include "mytime.h"
#include "iccstore.h"
#include "imagesource.h"

View File

@ -25,12 +25,20 @@
#include "LUT.h"
#include "lcp.h"
#include "dcp.h"
#include "curves.h"
#include "pipettebuffer.h"
#include "gamutwarning.h"
namespace rtengine
{
class ColorGradientCurve;
class OpacityCurve;
class ToneCurve;
class WavCurve;
class WavOpacityCurveRG;
class WavOpacityCurveBY;
class WavOpacityCurveW;
class WavOpacityCurveWL;
class CieImage;
class Image8;
class Imagefloat;

View File

@ -26,7 +26,6 @@
#include "iccmatrices.h"
#include "../rtgui/options.h"
#include "settings.h"
#include "curves.h"
#include "alignedbuffer.h"
#include "color.h"
#include "procparams.h"

View File

@ -25,8 +25,6 @@
#include "array2D.h"
#include "color.h"
#include "colortemp.h"
#include "curves.h"
#include "dcp.h"
#include "iimage.h"
#include "imagesource.h"
#include "pixelsmap.h"
@ -36,6 +34,10 @@
namespace rtengine
{
class DiagonalCurve;
class RetinextransmissionCurve;
class RetinexgaintransmissionCurve;
class RawImageSource : public ImageSource
{
private:

View File

@ -19,7 +19,6 @@
#include "stdimagesource.h"
#include "color.h"
#include "curves.h"
#include "iccstore.h"
#include "image8.h"
#include "image16.h"

View File

@ -21,7 +21,6 @@
#include "toolpanel.h"
#include "../rtengine/iccmatrices.h"
#include "../rtengine/iccstore.h"
#include "../rtengine/curves.h"
#include "../rtengine/color.h"
#include "../rtengine/rt_math.h"
#include "options.h"