Fix Clang warnings plus some cleanups
This commit is contained in:
@@ -29,7 +29,8 @@
|
||||
#include "iccstore.h"
|
||||
#include "image8.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
GamutWarning::GamutWarning(cmsHPROFILE iprof, cmsHPROFILE gamutprof, RenderingIntent intent, bool gamutbpc):
|
||||
lab2ref(nullptr),
|
||||
@@ -129,5 +130,4 @@ inline void GamutWarning::mark(Image8 *image, int y, int x)
|
||||
image->b(y, x) = 255;
|
||||
}
|
||||
|
||||
|
||||
} // namespace rtengine
|
||||
|
@@ -29,7 +29,8 @@
|
||||
|
||||
#include "noncopyable.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
class Image8;
|
||||
|
||||
|
@@ -29,15 +29,19 @@
|
||||
* available at https://arxiv.org/abs/1505.00996
|
||||
*/
|
||||
|
||||
#include "guidedfilter.h"
|
||||
#include "boxblur.h"
|
||||
#include "rescale.h"
|
||||
#include "guidedfilter.h"
|
||||
#include "imagefloat.h"
|
||||
#include "rescale.h"
|
||||
|
||||
#define BENCHMARK
|
||||
#include "StopWatch.h"
|
||||
namespace rtengine {
|
||||
|
||||
namespace {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
int calculate_subsampling(int w, int h, int r)
|
||||
{
|
||||
@@ -60,7 +64,6 @@ int calculate_subsampling(int w, int h, int r)
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void guidedFilter(const array2D<float> &guide, const array2D<float> &src, array2D<float> &dst, int r, float epsilon, bool multithread, int subsampling)
|
||||
{
|
||||
enum Op {MUL, DIVEPSILON, SUBMUL};
|
||||
|
@@ -22,7 +22,8 @@
|
||||
|
||||
#include "array2D.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
void guidedFilter(const array2D<float> &guide, const array2D<float> &src, array2D<float> &dst, int r, float epsilon, bool multithread, int subsampling=0);
|
||||
|
||||
|
@@ -18,22 +18,24 @@
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "rawimagesource.h"
|
||||
#include "rtthumbnail.h"
|
||||
#include "curves.h"
|
||||
#include "color.h"
|
||||
#include "rt_math.h"
|
||||
#include "procparams.h"
|
||||
#include "../rtgui/mydiagonalcurve.h"
|
||||
#include "improcfun.h"
|
||||
//#define BENCHMARK
|
||||
#include "StopWatch.h"
|
||||
#include <iostream>
|
||||
|
||||
#include "color.h"
|
||||
#include "curves.h"
|
||||
#include "improcfun.h"
|
||||
#include "procparams.h"
|
||||
#include "rawimagesource.h"
|
||||
#include "rt_math.h"
|
||||
#include "rtthumbnail.h"
|
||||
#include "settings.h"
|
||||
|
||||
namespace rtengine {
|
||||
//#define BENCHMARK
|
||||
#include "StopWatch.h"
|
||||
|
||||
extern const Settings *settings;
|
||||
#include "../rtgui/mydiagonalcurve.h"
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
namespace {
|
||||
|
||||
|
@@ -42,9 +42,11 @@
|
||||
|
||||
#include "../rtgui/options.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
namespace {
|
||||
namespace
|
||||
{
|
||||
|
||||
float normalize(Imagefloat *rgb, bool multithread)
|
||||
{
|
||||
@@ -271,7 +273,6 @@ void extract_channels(Imagefloat *img, array2D<float> &r, array2D<float> &g, arr
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
{
|
||||
if (!params->dehaze.enabled || params->dehaze.strength == 0.0) {
|
||||
@@ -431,5 +432,4 @@ void ImProcFunctions::dehaze(Imagefloat *img)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace rtengine
|
||||
|
@@ -56,7 +56,8 @@ void fastlin2log(float *x, float factor, float base, int w)
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
void ImProcFunctions::labColorCorrectionRegions(LabImage *lab)
|
||||
{
|
||||
|
@@ -32,7 +32,8 @@
|
||||
#include "improcfun.h"
|
||||
#include "procparams.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
void ImProcFunctions::localContrast(LabImage *lab)
|
||||
{
|
||||
|
@@ -30,7 +30,8 @@
|
||||
|
||||
#include "sleef.c"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
void ImProcFunctions::shadowsHighlights(LabImage *lab)
|
||||
{
|
||||
|
@@ -18,18 +18,18 @@
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "camconst.h"
|
||||
#include "pdaflinesfilter.h"
|
||||
#include "rawimage.h"
|
||||
#include "settings.h"
|
||||
#include <iostream>
|
||||
#include "camconst.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
extern const Settings *settings;
|
||||
|
||||
|
||||
namespace {
|
||||
namespace
|
||||
{
|
||||
|
||||
class PDAFGreenEqulibrateThreshold: public RawImageSource::GreenEqulibrateThreshold {
|
||||
static constexpr float BASE_THRESHOLD = 0.5f;
|
||||
@@ -167,8 +167,6 @@ private:
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
|
||||
PDAFLinesFilter::PDAFLinesFilter(RawImage *ri):
|
||||
ri_(ri),
|
||||
W_(ri->get_width()),
|
||||
|
@@ -21,10 +21,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "rawimagesource.h"
|
||||
#include "noncopyable.h"
|
||||
|
||||
namespace rtengine {
|
||||
#include "noncopyable.h"
|
||||
#include "rawimagesource.h"
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
class RawImage;
|
||||
|
||||
|
@@ -526,7 +526,8 @@ int refreshmap[rtengine::NUMOFEVENTS] = {
|
||||
};
|
||||
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
RefreshMapper::RefreshMapper():
|
||||
next_event_(rtengine::NUMOFEVENTS)
|
||||
|
@@ -16,10 +16,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef __REFRESHMAP__
|
||||
#define __REFRESHMAP__
|
||||
#pragma once
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "procevents.h"
|
||||
|
||||
// Use M_VOID if you wish to update the proc params without updating the preview at all !
|
||||
@@ -80,7 +80,8 @@
|
||||
|
||||
extern int refreshmap[];
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
class RefreshMapper {
|
||||
public:
|
||||
@@ -97,5 +98,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace rtengine
|
||||
|
||||
#endif
|
||||
|
@@ -23,7 +23,8 @@
|
||||
#include "array2D.h"
|
||||
#include "rt_math.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
inline float getBilinearValue(const array2D<float> &src, float x, float y)
|
||||
{
|
||||
@@ -96,5 +97,4 @@ inline void rescaleNearest(const array2D<float> &src, array2D<float> &dst, bool
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace rtengine
|
||||
|
@@ -18,15 +18,15 @@
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "rtlensfun.h"
|
||||
#include "imagedata.h"
|
||||
#include "procparams.h"
|
||||
#include "settings.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace rtengine {
|
||||
#include "imagedata.h"
|
||||
#include "procparams.h"
|
||||
#include "rtlensfun.h"
|
||||
#include "settings.h"
|
||||
|
||||
extern const Settings *settings;
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LFModifier
|
||||
|
@@ -30,7 +30,8 @@
|
||||
#include "lcp.h"
|
||||
#include "noncopyable.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
class FramesMetaData;
|
||||
|
||||
@@ -39,6 +40,7 @@ namespace procparams
|
||||
|
||||
struct CoarseTransformParams;
|
||||
struct LensProfParams;
|
||||
|
||||
}
|
||||
|
||||
class LFModifier final :
|
||||
|
@@ -50,32 +50,32 @@
|
||||
* $Id: tmo_fattal02.cpp,v 1.3 2008/11/04 23:43:08 rafm Exp $
|
||||
*/
|
||||
|
||||
|
||||
#ifdef _OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
#include <fftw3.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "array2D.h"
|
||||
#include "iccstore.h"
|
||||
#include "imagefloat.h"
|
||||
#include "improcfun.h"
|
||||
#include "settings.h"
|
||||
#include "iccstore.h"
|
||||
#include "StopWatch.h"
|
||||
#include "sleef.c"
|
||||
#include "opthelper.h"
|
||||
#include "rt_algo.h"
|
||||
#include "rescale.h"
|
||||
#include "procparams.h"
|
||||
#include "rescale.h"
|
||||
#include "rt_algo.h"
|
||||
#include "settings.h"
|
||||
#include "sleef.c"
|
||||
#include "StopWatch.h"
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
@@ -84,7 +84,6 @@ namespace rtengine
|
||||
* RT code
|
||||
******************************************************************************/
|
||||
|
||||
extern const Settings *settings;
|
||||
extern MyMutex *fftwMutex;
|
||||
|
||||
using namespace std;
|
||||
|
@@ -16,27 +16,31 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef _CROPWINDOW_
|
||||
#define _CROPWINDOW_
|
||||
#pragma once
|
||||
|
||||
#include <list>
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include "lwbutton.h"
|
||||
#include "lwbuttonset.h"
|
||||
#include "editenums.h"
|
||||
#include "crophandler.h"
|
||||
#include <list>
|
||||
|
||||
#include "cropguilistener.h"
|
||||
#include "pointermotionlistener.h"
|
||||
#include "crophandler.h"
|
||||
#include "cursormanager.h"
|
||||
#include "editbuffer.h"
|
||||
#include "editcoordsys.h"
|
||||
#include "editenums.h"
|
||||
#include "lwbutton.h"
|
||||
#include "lwbuttonset.h"
|
||||
#include "pointermotionlistener.h"
|
||||
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
class Coord;
|
||||
struct Coord;
|
||||
|
||||
}
|
||||
|
||||
class CropWindow;
|
||||
|
||||
class CropWindowListener
|
||||
@@ -243,5 +247,3 @@ public:
|
||||
|
||||
ImageArea* getImageArea();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -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 __GUI_UTILS_
|
||||
#define __GUI_UTILS_
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <map>
|
||||
@@ -26,22 +25,24 @@
|
||||
|
||||
#include <cairomm/cairomm.h>
|
||||
|
||||
#include "pathutils.h"
|
||||
#include "threadutils.h"
|
||||
|
||||
#include "../rtengine/coord.h"
|
||||
#include "../rtengine/noncopyable.h"
|
||||
|
||||
#include "threadutils.h"
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
// for convenience...
|
||||
#include "pathutils.h"
|
||||
|
||||
namespace rtengine {
|
||||
namespace procparams
|
||||
{
|
||||
|
||||
class ProcParams;
|
||||
|
||||
struct CropParams;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class RTImage;
|
||||
@@ -654,5 +655,3 @@ inline Gtk::Window& getToplevelWindow (Gtk::Widget* widget)
|
||||
{
|
||||
return *static_cast<Gtk::Window*> (widget->get_toplevel ());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user