Fix for declared near() function, backport from ART. Various other minor changes.
This commit is contained in:
@@ -103,6 +103,9 @@ using namespace std;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// RT: BEGIN COMMENT
|
||||
#ifdef near
|
||||
# undef near
|
||||
#endif
|
||||
#if 0
|
||||
DT_MODULE_INTROSPECTION(4, dt_iop_ashift_params_t)
|
||||
|
||||
|
@@ -1059,7 +1059,7 @@ DCPProfile::DCPProfile(const Glib::ustring& filename) :
|
||||
|
||||
DCPMetadata md(file);
|
||||
if (!md.parse()) {
|
||||
//printf ("Unable to load DCP profile '%s'.", filename.c_str());
|
||||
//printf ("Unable to load DCP profile '%s' !", filename.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1331,8 +1331,7 @@ void DCPProfile::apply(
|
||||
const ColorTemp& white_balance,
|
||||
const Triple& pre_mul,
|
||||
const Matrix& cam_wb_matrix,
|
||||
bool apply_hue_sat_map,
|
||||
bool apply_look_table
|
||||
bool apply_hue_sat_map
|
||||
) const
|
||||
{
|
||||
|
||||
@@ -1344,7 +1343,7 @@ void DCPProfile::apply(
|
||||
apply_hue_sat_map = false;
|
||||
}
|
||||
|
||||
const Matrix xyz_cam = makeXyzCam(white_balance, pre_mul, cam_wb_matrix, preferred_illuminant, apply_hue_sat_map || apply_look_table); // Camera RGB to XYZ D50 matrix
|
||||
const Matrix xyz_cam = makeXyzCam(white_balance, pre_mul, cam_wb_matrix, preferred_illuminant); // Camera RGB to XYZ D50 matrix
|
||||
|
||||
if (!apply_hue_sat_map) {
|
||||
// The fast path: No LUT --> Calculate matrix for direct conversion raw -> working space
|
||||
|
@@ -85,8 +85,7 @@ public:
|
||||
const ColorTemp& white_balance,
|
||||
const Triple& pre_mul,
|
||||
const Matrix& cam_wb_matrix,
|
||||
bool apply_hue_sat_map,
|
||||
bool apply_look_table
|
||||
bool apply_hue_sat_map
|
||||
) const;
|
||||
void setStep2ApplyState(const Glib::ustring& working_space, bool use_tone_curve, bool apply_look_table, bool apply_baseline_exposure, ApplyState& as_out);
|
||||
void step2ApplyTile(float* r, float* g, float* b, int width, int height, int tile_width, const ApplyState& as_in) const;
|
||||
|
@@ -68,11 +68,9 @@ const std::string& validateUft8(const std::string& str, const std::string& on_er
|
||||
return on_error;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
FramesMetaData* FramesMetaData::fromFile(const Glib::ustring& fname, std::unique_ptr<RawMetaDataLocation> rml, bool firstFrameOnly)
|
||||
FramesMetaData* FramesMetaData::fromFile(const Glib::ustring& fname)
|
||||
{
|
||||
return new FramesData(fname, std::move(rml), firstFrameOnly);
|
||||
return new FramesData(fname);
|
||||
}
|
||||
|
||||
FramesData::FramesData(const Glib::ustring &fname) :
|
||||
|
@@ -28,6 +28,7 @@
|
||||
#include "rtengine.h"
|
||||
#include "colortemp.h"
|
||||
#include "array2D.h"
|
||||
#include "dcp.h"
|
||||
|
||||
template<typename T>
|
||||
class LUT;
|
||||
@@ -41,9 +42,8 @@ namespace rtengine
|
||||
{
|
||||
|
||||
class ColorTemp;
|
||||
class DCPProfile;
|
||||
class DCPProfile::ApplyState;
|
||||
class Imagefloat;
|
||||
class DCPProfile;
|
||||
class RetinexgaintransmissionCurve;
|
||||
class RetinextransmissionCurve;
|
||||
|
||||
|
@@ -49,7 +49,6 @@ namespace rtengine
|
||||
class ColorAppearance;
|
||||
class ColorGradientCurve;
|
||||
class DCPProfile;
|
||||
class DCPProfile::ApplyState;
|
||||
class FlatCurve;
|
||||
class FramesMetaData;
|
||||
class LensCorrection;
|
||||
|
Reference in New Issue
Block a user