Forward declare CieImage

This commit is contained in:
Ingo Weyrich 2019-10-28 15:43:58 +01:00
parent 66191609d6
commit eaf0eeff4e
11 changed files with 15 additions and 12 deletions

View File

@ -29,6 +29,7 @@
#include "gauss.h" #include "gauss.h"
#include "improcfun.h" #include "improcfun.h"
#include "cieimage.h"
#include "sleef.c" #include "sleef.c"
#include "../rtgui/myflatcurve.h" #include "../rtgui/myflatcurve.h"
#include "rt_math.h" #include "rt_math.h"

View File

@ -1,5 +1,7 @@
#include "cieimage.h" #include "cieimage.h"
#include <memory.h>
#include <new>
#include <cstring>
namespace rtengine namespace rtengine
{ {
@ -10,7 +12,6 @@ CieImage::CieImage (int w, int h) : fromImage(false), W(w), H(h)
M_p = new float*[H]; M_p = new float*[H];
C_p = new float*[H]; C_p = new float*[H];
sh_p = new float*[H]; sh_p = new float*[H];
// ch_p = new float*[H];
h_p = new float*[H]; h_p = new float*[H];
// Initialize the pointers to zero // Initialize the pointers to zero
@ -98,9 +99,6 @@ CieImage::CieImage (int w, int h) : fromImage(false), W(w), H(h)
++c; ++c;
// for (int i=0; i<H; i++)
// ch_p[i] = data[c] + i*W;
// ++c;
for (int i = 0; i < H; i++) { for (int i = 0; i < H; i++) {
h_p[i] = data[c] + i * W; h_p[i] = data[c] + i * W;
} }

View File

@ -16,10 +16,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifndef _CIEIMAGE_H_ #pragma once
#define _CIEIMAGE_H_
#include "image16.h"
#include "noncopyable.h" #include "noncopyable.h"
namespace rtengine namespace rtengine
@ -39,7 +37,6 @@ public:
float** M_p; float** M_p;
float** C_p; float** C_p;
float** sh_p; float** sh_p;
// float** ch_p;
float** h_p; float** h_p;
CieImage (int w, int h); CieImage (int w, int h);
@ -50,4 +47,3 @@ public:
}; };
} }
#endif

View File

@ -17,6 +17,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "cieimage.h"
#include "curves.h" #include "curves.h"
#include "dcrop.h" #include "dcrop.h"
#include "mytime.h" #include "mytime.h"

View File

@ -20,6 +20,8 @@
#include <cstddef> #include <cstddef>
#include <cmath> #include <cmath>
#include "cieimage.h"
#include "improcfun.h" #include "improcfun.h"
#include "array2D.h" #include "array2D.h"
#include "rt_math.h" #include "rt_math.h"

View File

@ -17,6 +17,7 @@
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "improccoordinator.h" #include "improccoordinator.h"
#include "cieimage.h"
#include "curves.h" #include "curves.h"
#include "mytime.h" #include "mytime.h"
#include "refreshmap.h" #include "refreshmap.h"

View File

@ -24,6 +24,7 @@
#endif #endif
#include "alignedbuffer.h" #include "alignedbuffer.h"
#include "cieimage.h"
#include "rtengine.h" #include "rtengine.h"
#include "improcfun.h" #include "improcfun.h"
#include "curves.h" #include "curves.h"

View File

@ -26,7 +26,6 @@
#include "coord2d.h" #include "coord2d.h"
#include "color.h" #include "color.h"
#include "labimage.h" #include "labimage.h"
#include "cieimage.h"
#include "LUT.h" #include "LUT.h"
#include "lcp.h" #include "lcp.h"
#include "dcp.h" #include "dcp.h"
@ -36,7 +35,7 @@
namespace rtengine namespace rtengine
{ {
class CieImage;
class wavelet_decomposition; class wavelet_decomposition;
namespace procparams namespace procparams

View File

@ -18,6 +18,7 @@
*/ */
#include "improcfun.h" #include "improcfun.h"
#include "cieimage.h"
#include "gauss.h" #include "gauss.h"
#include "bilateral2.h" #include "bilateral2.h"
#include "jaggedarray.h" #include "jaggedarray.h"

View File

@ -16,6 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "cieimage.h"
#include "rtengine.h" #include "rtengine.h"
#include "rtthumbnail.h" #include "rtthumbnail.h"
#include "../rtgui/options.h" #include "../rtgui/options.h"

View File

@ -16,6 +16,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>. * along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "cieimage.h"
#include "rtengine.h" #include "rtengine.h"
#include "colortemp.h" #include "colortemp.h"
#include "imagesource.h" #include "imagesource.h"