Use Image16 instead of Imagefloat for CLUT

Gain speed and reduce memory by using Image16 instead of Imagefloat for
the CLUT.
This commit is contained in:
Flössie
2016-04-18 20:38:23 +02:00
parent e495093b18
commit f639cd6b82
3 changed files with 23 additions and 16 deletions

View File

@@ -4,12 +4,13 @@
#include <gtkmm.h>
#include "imagefloat.h"
#include "cache.h"
namespace rtengine
{
class Image16;
class CLUT
{
public:
@@ -50,8 +51,10 @@ public:
void getRGB(float r, float g, float b, float& out_r, float& out_g, float& out_b) const;
private:
std::unique_ptr<Imagefloat> clut_image;
std::unique_ptr<Image16> clut_image;
unsigned int clut_level;
float flevel_minus_one;
float flevel_minus_two;
Glib::ustring clut_filename;
Glib::ustring clut_profile;
};