Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_config.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#ifndef RECORDER_CONFIG_H
8#define RECORDER_CONFIG_H
9
10#include "recorder_format.h"
11
12#include <QtGlobal>
13
14class KisConfig;
15
17{
18public:
19 RecorderConfig(bool readOnly);
21
22 QString snapshotDirectory() const;
23 void setSnapshotDirectory(const QString &value);
24
25 double captureInterval() const;
26 void setCaptureInterval(double value);
27
28 RecorderFormat format() const;
30
31 // for JPEG (0...100)
32 int quality() const;
33 void setQuality(int value);
34
35 // for PNG (0...10)
36 int compression() const;
37 void setCompression(int value);
38
39 int resolution() const;
40 void setResolution(int value);
41
42 int threads() const;
43 void setThreads(int value);
44
45 bool realTimeCaptureMode() const;
47
48 bool recordIsolateLayerMode() const;
50
51 bool recordAutomatically() const;
53
54private:
55 Q_DISABLE_COPY(RecorderConfig)
56 mutable KisConfig *config;
57};
58
59#endif // RECORDER_CONFIG_H
float value(const T *src, size_t ch)
double captureInterval() const
QString snapshotDirectory() const
void setFormat(RecorderFormat value)
void setRealTimeCaptureMode(bool value)
bool recordIsolateLayerMode() const
RecorderFormat format() const
RecorderConfig(bool readOnly)
int resolution() const
void setRecordAutomatically(bool value)
void setResolution(int value)
KisConfig * config
void setCaptureInterval(double value)
void setSnapshotDirectory(const QString &value)
void setRecordIsolateLayerMode(bool value)
void setCompression(int value)
bool recordAutomatically() const
void setQuality(int value)
bool realTimeCaptureMode() const
int compression() const
void setThreads(int value)
int quality() const
RecorderFormat