KWin
Loading...
Searching...
No Matches
colorlut3d.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: 2023 Xaver Hugl <xaver.hugl@gmail.com>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include <QVector>
12#include <memory>
13
14#include "kwin_export.h"
15
16class QVector3D;
17
18namespace KWin
19{
20
21class ColorTransformation;
22
23class KWIN_EXPORT ColorLUT3D
24{
25public:
26 ColorLUT3D(std::unique_ptr<ColorTransformation> &&transformation, size_t xSize, size_t ySize, size_t zSize);
27
28 size_t xSize() const;
29 size_t ySize() const;
30 size_t zSize() const;
31
32 QVector3D sample(size_t x, size_t y, size_t z);
33
34private:
35 const std::unique_ptr<ColorTransformation> m_transformation;
36 const size_t m_xSize;
37 const size_t m_ySize;
38 const size_t m_zSize;
39};
40
41}