2022-01-05 11:41:07 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2022-05-17 10:36:34 +00:00
|
|
|
#include <QVector>
|
|
|
|
#include <memory>
|
2022-01-05 11:41:07 +00:00
|
|
|
|
|
|
|
#include "kwin_export.h"
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2022-04-26 10:32:20 +00:00
|
|
|
class ColorTransformation;
|
2022-01-05 11:41:07 +00:00
|
|
|
|
|
|
|
class KWIN_EXPORT ColorLUT
|
|
|
|
{
|
|
|
|
public:
|
2022-05-17 10:36:34 +00:00
|
|
|
ColorLUT(const std::shared_ptr<ColorTransformation> &transformation, size_t size);
|
2022-01-05 11:41:07 +00:00
|
|
|
|
|
|
|
uint16_t *red() const;
|
|
|
|
uint16_t *green() const;
|
|
|
|
uint16_t *blue() const;
|
|
|
|
size_t size() const;
|
2022-05-17 10:36:34 +00:00
|
|
|
std::shared_ptr<ColorTransformation> transformation() const;
|
2022-01-05 11:41:07 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QVector<uint16_t> m_data;
|
2022-05-17 10:36:34 +00:00
|
|
|
const std::shared_ptr<ColorTransformation> m_transformation;
|
2022-01-05 11:41:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|