Apply HaldCLUT::getRGB() per tile line

`getRGB()` now takes a whole tile line instead of a single pixel.
This commit is contained in:
Flössie
2016-04-26 21:57:58 +02:00
parent 78c08e9e5c
commit bf499055e1
3 changed files with 75 additions and 61 deletions

View File

@@ -24,7 +24,7 @@ public:
virtual Glib::ustring getFilename() const = 0;
virtual Glib::ustring getProfile() const = 0;
virtual void getRGB(float r, float g, float b, float out_rgbx[4]) const = 0;
virtual void getRGB(std::size_t line_size, const float* r, const float* g, const float* b, float* out_rgbx) const = 0;
static void splitClutFilename(
const Glib::ustring& filename,
@@ -48,7 +48,7 @@ public:
Glib::ustring getFilename() const override;
Glib::ustring getProfile() const override;
void getRGB(float r, float g, float b, float out_rgbx[4]) const override;
void getRGB(std::size_t line_size, const float* r, const float* g, const float* b, float* out_rgbx) const override;
private:
AlignedBuffer<std::uint16_t> clut_image;