Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_export_settings.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Florian Reiser <reiserfm@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 * The sourcecode of this file was moved from recorder_export.cpp
7 */
8
9#ifndef KRITA_RECORDER_EXPORT_SETTINGS_H
10#define KRITA_RECORDER_EXPORT_SETTINGS_H
11
12#include <QString>
13#include <QList>
14#include <QSize>
15#include "recorder_format.h"
16
17#ifdef Q_OS_ANDROID
18#include <QVariantMap>
19#else
21{
22 QString name;
23 QString extension;
24 QString arguments;
25};
26#endif
27
29
30 // The following settings are stored in the RecorderExportConfiguration
31 bool resize = false;
32 bool lockRatio = false;
33 bool lockFps = false;
34 bool resultPreview = true;
35 bool extendResult = true;
36 int inputFps = 30;
37 int fps = 30;
39 int lastFrameSec = 5;
40 QSize size;
41#ifdef Q_OS_ANDROID
42 QString selectedFormat;
43 QVariantMap formatPreferences;
44#else
45 int profileIndex = 0;
46 QString ffmpegPath;
48 QString h264Encoder;
51#endif
52
53
54 // The following are additional settings, which will not be serialized in
55 // the RecorderExportConfiguration
58 QSize imageSize;
59
60#ifdef Q_OS_ANDROID
61 QStringList inputFilePaths;
62#else
64#endif
66 int framesCount = 0;
67
68 bool realTimeCaptureMode = false;
70};
71
72
73#endif // KRITA_RECORDER_EXPORT_SETTINGS_H
RecorderFormat
QList< RecorderProfile > profiles
QList< RecorderProfile > defaultProfiles