Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
758 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2020 Dmitrii Utkin <[email protected]>
 *
 *  SPDX-License-Identifier: LGPL-2.1-only
 */

#ifndef RECORDER_CONST_H
#define RECORDER_CONST_H

#include <QThread>

class QString;
class QRegularExpression;

namespace RecorderConst
{

constexpr int waitThreadTimeoutMs = 30000;
const QString recorderMetaDataName = "krita-timelapse-metadata.txt";

QRegularExpression snapshotFilePatternFor(const QString &extension);

}

namespace ThreadSystemValue
{
const unsigned int MaxThreadCount = QThread::idealThreadCount();
const unsigned int MaxRecordThreadCount = qMax(static_cast<int>(MaxThreadCount) - 1, 1);
const unsigned int IdealRecordThreadCount = qMax(static_cast<int>(MaxRecordThreadCount) - 2, 1);
}

#endif // RECORDER_CONST_H