KWin
Loading...
Searching...
No Matches
colorlut.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include <QList>
12#include <memory>
13
14#include "kwin_export.h"
15
16namespace KWin
17{
18
19class ColorTransformation;
20
21class KWIN_EXPORT ColorLUT
22{
23public:
24 ColorLUT(const std::shared_ptr<ColorTransformation> &transformation, size_t size);
25
26 uint16_t *red() const;
27 uint16_t *green() const;
28 uint16_t *blue() const;
29 size_t size() const;
30 std::shared_ptr<ColorTransformation> transformation() const;
31
32private:
33 QList<uint16_t> m_data;
34 const std::shared_ptr<ColorTransformation> m_transformation;
35};
36
37}