Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_const.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_CONST_H
8#define RECORDER_CONST_H
9
10#include <QThread>
11
12class QString;
13class QRegularExpression;
14
15namespace RecorderConst
16{
17
18constexpr int waitThreadTimeoutMs = 30000;
19const QString recorderMetaDataName = "krita-timelapse-metadata.txt";
20
21QRegularExpression snapshotFilePatternFor(const QString &extension);
22
23}
24
26{
27const unsigned int MaxThreadCount = QThread::idealThreadCount();
28const unsigned int MaxRecordThreadCount = qMax(static_cast<int>(MaxThreadCount) - 1, 1);
29const unsigned int IdealRecordThreadCount = qMax(static_cast<int>(MaxRecordThreadCount) - 2, 1);
30}
31
32#endif // RECORDER_CONST_H
const QString recorderMetaDataName
QRegularExpression snapshotFilePatternFor(const QString &extension)
constexpr int waitThreadTimeoutMs
const unsigned int IdealRecordThreadCount
const unsigned int MaxThreadCount
const unsigned int MaxRecordThreadCount