Merge pull request #5611 from Beep6581/reduce_include_dependencies
reduce some include dependencies
This commit is contained in:
commit
f7fd7e578b
@ -638,7 +638,7 @@ CameraConst::update_globalGreenEquilibration(bool other)
|
||||
}
|
||||
|
||||
bool
|
||||
CameraConstantsStore::parse_camera_constants_file(Glib::ustring filename_)
|
||||
CameraConstantsStore::parse_camera_constants_file(const Glib::ustring& filename_)
|
||||
{
|
||||
// read the file into a single long string
|
||||
const char *filename = filename_.c_str();
|
||||
@ -809,7 +809,7 @@ CameraConstantsStore::~CameraConstantsStore()
|
||||
}
|
||||
}
|
||||
|
||||
void CameraConstantsStore::init(Glib::ustring baseDir, Glib::ustring userSettingsDir)
|
||||
void CameraConstantsStore::init(const Glib::ustring& baseDir, const Glib::ustring& userSettingsDir)
|
||||
{
|
||||
parse_camera_constants_file(Glib::build_filename(baseDir, "camconst.json"));
|
||||
|
||||
|
@ -3,10 +3,17 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
@ -62,11 +69,11 @@ private:
|
||||
std::map<std::string, CameraConst *> mCameraConstants;
|
||||
|
||||
CameraConstantsStore();
|
||||
bool parse_camera_constants_file(Glib::ustring filename);
|
||||
bool parse_camera_constants_file(const Glib::ustring& filename);
|
||||
|
||||
public:
|
||||
~CameraConstantsStore();
|
||||
void init(Glib::ustring baseDir, Glib::ustring userSettingsDir);
|
||||
void init(const Glib::ustring& baseDir, const Glib::ustring& userSettingsDir);
|
||||
static CameraConstantsStore *getInstance(void);
|
||||
CameraConst *get(const char make[], const char model[]);
|
||||
};
|
||||
|
@ -20,7 +20,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include "rt_math.h"
|
||||
#include "LUT.h"
|
||||
@ -30,6 +29,13 @@
|
||||
|
||||
#define SAT(a,b,c) ((float)max(a,b,c)-(float)min(a,b,c))/(float)max(a,b,c)
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -21,8 +21,7 @@
|
||||
#include <memory>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include "rt_math.h"
|
||||
|
||||
@ -2186,7 +2185,7 @@ void PerceptualToneCurve::init()
|
||||
}
|
||||
}
|
||||
|
||||
void PerceptualToneCurve::initApplyState(PerceptualToneCurveState & state, Glib::ustring workingSpace) const
|
||||
void PerceptualToneCurve::initApplyState(PerceptualToneCurveState & state, const Glib::ustring &workingSpace) const
|
||||
{
|
||||
|
||||
// Get the curve's contrast value, and convert to a chroma scaling
|
||||
|
@ -22,21 +22,23 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include "rt_math.h"
|
||||
#include "flatcurvetypes.h"
|
||||
#include "diagonalcurvetypes.h"
|
||||
#include "pipettebuffer.h"
|
||||
#include "noncopyable.h"
|
||||
#include "LUT.h"
|
||||
#include "sleef.h"
|
||||
#define CURVES_MIN_POLY_POINTS 1000
|
||||
|
||||
#include "rt_math.h"
|
||||
|
||||
#define CLIPI(a) ((a)>0?((a)<65534?(a):65534):0)
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace rtengine
|
||||
@ -940,7 +942,7 @@ private:
|
||||
float calculateToneCurveContrastValue() const;
|
||||
public:
|
||||
static void init();
|
||||
void initApplyState(PerceptualToneCurveState & state, Glib::ustring workingSpace) const;
|
||||
void initApplyState(PerceptualToneCurveState & state, const Glib::ustring& workingSpace) const;
|
||||
void BatchApply(const size_t start, const size_t end, float *r, float *g, float *b, const PerceptualToneCurveState &state) const;
|
||||
};
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "dcrop.h"
|
||||
#include "image8.h"
|
||||
#include "imagefloat.h"
|
||||
#include "improccoordinator.h"
|
||||
#include "labimage.h"
|
||||
#include "mytime.h"
|
||||
#include "procparams.h"
|
||||
|
@ -18,11 +18,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "improccoordinator.h"
|
||||
#include "rtengine.h"
|
||||
#include "improcfun.h"
|
||||
#include "imagesource.h"
|
||||
#include "procevents.h"
|
||||
#include "pipettebuffer.h"
|
||||
#include "../rtgui/threadutils.h"
|
||||
|
||||
@ -30,6 +26,7 @@ namespace rtengine
|
||||
{
|
||||
|
||||
class Image8;
|
||||
class CieImage;
|
||||
|
||||
using namespace procparams;
|
||||
|
||||
|
@ -16,8 +16,6 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
#include "curves.h"
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
@ -29,6 +29,7 @@
|
||||
* available at https://arxiv.org/abs/1505.00996
|
||||
*/
|
||||
|
||||
#include "array2D.h"
|
||||
#include "boxblur.h"
|
||||
#include "guidedfilter.h"
|
||||
#include "imagefloat.h"
|
||||
|
@ -20,7 +20,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <lcms2.h>
|
||||
|
||||
#include "alignedbuffer.h"
|
||||
@ -41,6 +40,13 @@
|
||||
|
||||
#define CHECK_BOUNDS 0
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -23,12 +23,18 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <libiptcdata/iptc-data.h>
|
||||
|
||||
#include "imageio.h"
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtexif
|
||||
{
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
#include "coord2d.h"
|
||||
#include "imagedata.h"
|
||||
#include "LUT.h"
|
||||
#include "rtengine.h"
|
||||
|
||||
template<typename T>
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "imagesource.h"
|
||||
#include "improcfun.h"
|
||||
#include "LUT.h"
|
||||
#include "procevents.h"
|
||||
#include "rtengine.h"
|
||||
|
||||
#include "../rtgui/threadutils.h"
|
||||
|
@ -31,15 +31,16 @@
|
||||
#include "cieimage.h"
|
||||
#include "clutstore.h"
|
||||
#include "color.h"
|
||||
#include "colortemp.h"
|
||||
#include "curves.h"
|
||||
#include "dcp.h"
|
||||
#include "EdgePreservingDecomposition.h"
|
||||
#include "iccmatrices.h"
|
||||
#include "iccstore.h"
|
||||
#include "imagesource.h"
|
||||
#include "improccoordinator.h"
|
||||
#include "improcfun.h"
|
||||
#include "labimage.h"
|
||||
#include "pipettebuffer.h"
|
||||
#include "procparams.h"
|
||||
#include "rt_math.h"
|
||||
#include "rtengine.h"
|
||||
|
@ -19,11 +19,17 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "coord2d.h"
|
||||
#include "gamutwarning.h"
|
||||
#include "pipettebuffer.h"
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
template<typename T>
|
||||
class LUT;
|
||||
|
||||
@ -44,6 +50,7 @@ class FramesMetaData;
|
||||
class LensCorrection;
|
||||
class NoiseCurve;
|
||||
class OpacityCurve;
|
||||
class PipetteBuffer;
|
||||
class ToneCurve;
|
||||
class WavCurve;
|
||||
class WavOpacityCurveBY;
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include "array2D.h"
|
||||
#include "color.h"
|
||||
#include "guidedfilter.h"
|
||||
#include "iccstore.h"
|
||||
|
@ -18,27 +18,24 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////
|
||||
#pragma once
|
||||
|
||||
#ifndef OPTHELPER_H
|
||||
#define OPTHELPER_H
|
||||
#define pow_F(a,b) (xexpf(b*xlogf(a)))
|
||||
|
||||
#define pow_F(a,b) (xexpf(b*xlogf(a)))
|
||||
|
||||
#ifdef __SSE2__
|
||||
#include "sleefsseavx.c"
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define RESTRICT __restrict__
|
||||
#define LIKELY(x) __builtin_expect (!!(x), 1)
|
||||
#define UNLIKELY(x) __builtin_expect (!!(x), 0)
|
||||
#define ALIGNED64 __attribute__ ((aligned (64)))
|
||||
#define ALIGNED16 __attribute__ ((aligned (16)))
|
||||
#else
|
||||
#define RESTRICT
|
||||
#define LIKELY(x) (x)
|
||||
#define UNLIKELY(x) (x)
|
||||
#define ALIGNED64
|
||||
#define ALIGNED16
|
||||
#endif
|
||||
#ifdef __SSE2__
|
||||
#include "sleefsseavx.h"
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define RESTRICT __restrict__
|
||||
#define LIKELY(x) __builtin_expect (!!(x), 1)
|
||||
#define UNLIKELY(x) __builtin_expect (!!(x), 0)
|
||||
#define ALIGNED64 __attribute__ ((aligned (64)))
|
||||
#define ALIGNED16 __attribute__ ((aligned (16)))
|
||||
#else
|
||||
#define RESTRICT
|
||||
#define LIKELY(x) (x)
|
||||
#define UNLIKELY(x) (x)
|
||||
#define ALIGNED64
|
||||
#define ALIGNED16
|
||||
#endif
|
||||
|
@ -18,10 +18,16 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <cairomm/cairomm.h>
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -20,9 +20,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "array2D.h"
|
||||
#include "rt_math.h"
|
||||
|
||||
template<typename T>
|
||||
class array2D;
|
||||
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "imageformat.h"
|
||||
#include "procevents.h"
|
||||
#include "rawmetadatalocation.h"
|
||||
#include "rt_math.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "../rtgui/threadutils.h"
|
||||
|
@ -18,8 +18,6 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include <lcms2.h>
|
||||
|
||||
#include "image16.h"
|
||||
@ -30,6 +28,13 @@
|
||||
|
||||
#include "../rtgui/threadutils.h"
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,6 @@
|
||||
#include "rt_math.h"
|
||||
|
||||
#include "utils.h"
|
||||
#include "rt_math.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "rtsurface.h"
|
||||
|
||||
#include "../rtengine/dcrop.h"
|
||||
#include "../rtengine/imagesource.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "../rtengine/rt_math.h"
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "coloredbar.h"
|
||||
#include "editcallbacks.h"
|
||||
#include "guiutils.h"
|
||||
|
||||
#include "../rtengine/diagonalcurvetypes.h"
|
||||
#include "../rtengine/flatcurvetypes.h"
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
class CurveEditorGroup;
|
||||
class CurveEditorSubGroup;
|
||||
class ColorProvider;
|
||||
class PopUpToggleButton;
|
||||
|
||||
/*
|
||||
|
@ -20,7 +20,6 @@
|
||||
|
||||
#include "guiutils.h"
|
||||
#include "options.h"
|
||||
#include "../rtengine/rt_math.h"
|
||||
#include "../rtengine/utils.h"
|
||||
#include "../rtengine/procparams.h"
|
||||
#include "rtimage.h"
|
||||
|
@ -20,10 +20,15 @@
|
||||
|
||||
#include <set>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
class FileBrowserEntry;
|
||||
|
||||
class PreviewLoaderListener
|
||||
|
Loading…
x
Reference in New Issue
Block a user