KWin
Loading...
Searching...
No Matches
outputscreencastsource.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "screencastsource.h"
10
11#include <QPointer>
12
13namespace KWin
14{
15
16class Output;
17
19{
20 Q_OBJECT
21
22public:
23 explicit OutputScreenCastSource(Output *output, QObject *parent = nullptr);
24
25 uint refreshRate() const override;
26 bool hasAlphaChannel() const override;
27 QSize textureSize() const override;
28 quint32 drmFormat() const override;
29
30 void render(GLFramebuffer *target) override;
31 void render(spa_data *spa, spa_video_format format) override;
32 std::chrono::nanoseconds clock() const override;
33
34private:
35 QPointer<Output> m_output;
36};
37
38} // namespace KWin
OpenGL framebuffer object.
void render(GLFramebuffer *target) override
std::chrono::nanoseconds clock() const override
OutputScreenCastSource(Output *output, QObject *parent=nullptr)
GLenum format
Definition gltexture.cpp:49