Merge branch 'dev' into spot-removal-tool
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <lcms2.h>
|
||||
|
||||
#include "alignedbuffer.h"
|
||||
@@ -28,7 +27,7 @@
|
||||
#include "imagedimensions.h"
|
||||
#include "LUT.h"
|
||||
#include "rt_math.h"
|
||||
|
||||
#include "procparams.h"
|
||||
#include "../rtgui/threadutils.h"
|
||||
|
||||
#define TR_NONE 0
|
||||
@@ -41,6 +40,13 @@
|
||||
|
||||
#define CHECK_BOUNDS 0
|
||||
|
||||
namespace Glib
|
||||
{
|
||||
|
||||
class ustring;
|
||||
|
||||
}
|
||||
|
||||
namespace rtengine
|
||||
{
|
||||
|
||||
@@ -105,6 +111,10 @@ public:
|
||||
{
|
||||
rm = gm = bm = 1.0;
|
||||
}
|
||||
virtual void getAutoWBMultipliersitc(double &tempref, double &greenref, double &tempitc, double &greenitc, float &studgood, int begx, int begy, int yEn, int xEn, int cx, int cy, int bf_h, int bf_w, double &rm, double &gm, double &bm, const procparams::WBParams & wbpar, const procparams::ColorManagementParams &cmp, const procparams::RAWParams &raw)
|
||||
{
|
||||
rm = gm = bm = 1.0;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -675,7 +685,7 @@ public:
|
||||
|
||||
/* If any of the required allocation fails, "width" and "height" are set to -1, and all remaining buffer are freed
|
||||
* Can be safely used to reallocate an existing image */
|
||||
void allocate (int W, int H) override
|
||||
void allocate (int W, int H) final
|
||||
{
|
||||
|
||||
if (W == width && H == height) {
|
||||
@@ -782,7 +792,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void rotate (int deg) override
|
||||
void rotate (int deg) final
|
||||
{
|
||||
|
||||
if (deg == 90) {
|
||||
@@ -909,7 +919,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void hflip () override
|
||||
void hflip () final
|
||||
{
|
||||
int width2 = width / 2;
|
||||
|
||||
@@ -941,7 +951,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
void vflip () override
|
||||
void vflip () final
|
||||
{
|
||||
|
||||
int height2 = height / 2;
|
||||
@@ -1025,7 +1035,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const override
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const final
|
||||
{
|
||||
histogram.clear();
|
||||
avg_r = avg_g = avg_b = 0.;
|
||||
@@ -1364,7 +1374,7 @@ public:
|
||||
* If any of the required allocation fails, "width" and "height" are set to -1, and all remaining buffer are freed
|
||||
* Can be safely used to reallocate an existing image or to free up it's memory with "allocate (0,0);"
|
||||
*/
|
||||
void allocate (int W, int H) override
|
||||
void allocate (int W, int H) final
|
||||
{
|
||||
|
||||
if (W == width && H == height) {
|
||||
@@ -1435,7 +1445,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void rotate (int deg) override
|
||||
void rotate (int deg) final
|
||||
{
|
||||
|
||||
if (deg == 90) {
|
||||
@@ -1569,7 +1579,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void hflip () override
|
||||
void hflip () final
|
||||
{
|
||||
int width2 = width / 2;
|
||||
|
||||
@@ -1605,7 +1615,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void vflip () override
|
||||
void vflip () final
|
||||
{
|
||||
|
||||
AlignedBuffer<T> lBuffer(3 * width);
|
||||
@@ -1672,7 +1682,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const override
|
||||
void computeHistogramAutoWB (double &avg_r, double &avg_g, double &avg_b, int &n, LUTu &histogram, const int compression) const final
|
||||
{
|
||||
histogram.clear();
|
||||
avg_r = avg_g = avg_b = 0.;
|
||||
|
Reference in New Issue
Block a user