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
20
struct
RecorderProfile
21
{
22
QString
name
;
23
QString
extension
;
24
QString
arguments
;
25
};
26
#endif
27
28
struct
RecorderExportSettings
{
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;
38
int
firstFrameSec
= 2;
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
;
47
QString
videoDirectory
;
48
QString
h264Encoder
;
49
QList<RecorderProfile>
profiles
;
50
QList<RecorderProfile>
defaultProfiles
;
51
#endif
52
53
54
// The following are additional settings, which will not be serialized in
55
// the RecorderExportConfiguration
56
QString
inputDirectory
;
57
RecorderFormat
format
;
58
QSize
imageSize
;
59
60
#ifdef Q_OS_ANDROID
61
QStringList
inputFilePaths;
62
#else
63
QString
videoFileName
;
64
#endif
65
QString
videoFilePath
;
66
int
framesCount
= 0;
67
68
bool
realTimeCaptureMode
=
false
;
69
bool
realTimeCaptureModeWasSet
=
false
;
70
};
71
72
73
#endif
// KRITA_RECORDER_EXPORT_SETTINGS_H
QList
Definition
KisQStringListFwd.h:16
recorder_format.h
RecorderFormat
RecorderFormat
Definition
recorder_format.h:13
RecorderExportSettings
Definition
recorder_export_settings.h:28
RecorderExportSettings::ffmpegPath
QString ffmpegPath
Definition
recorder_export_settings.h:46
RecorderExportSettings::realTimeCaptureModeWasSet
bool realTimeCaptureModeWasSet
Definition
recorder_export_settings.h:69
RecorderExportSettings::profiles
QList< RecorderProfile > profiles
Definition
recorder_export_settings.h:49
RecorderExportSettings::defaultProfiles
QList< RecorderProfile > defaultProfiles
Definition
recorder_export_settings.h:50
RecorderExportSettings::videoFileName
QString videoFileName
Definition
recorder_export_settings.h:63
RecorderExportSettings::lockFps
bool lockFps
Definition
recorder_export_settings.h:33
RecorderExportSettings::fps
int fps
Definition
recorder_export_settings.h:37
RecorderExportSettings::inputDirectory
QString inputDirectory
Definition
recorder_export_settings.h:56
RecorderExportSettings::firstFrameSec
int firstFrameSec
Definition
recorder_export_settings.h:38
RecorderExportSettings::lastFrameSec
int lastFrameSec
Definition
recorder_export_settings.h:39
RecorderExportSettings::h264Encoder
QString h264Encoder
Definition
recorder_export_settings.h:48
RecorderExportSettings::imageSize
QSize imageSize
Definition
recorder_export_settings.h:58
RecorderExportSettings::resize
bool resize
Definition
recorder_export_settings.h:31
RecorderExportSettings::extendResult
bool extendResult
Definition
recorder_export_settings.h:35
RecorderExportSettings::videoFilePath
QString videoFilePath
Definition
recorder_export_settings.h:65
RecorderExportSettings::lockRatio
bool lockRatio
Definition
recorder_export_settings.h:32
RecorderExportSettings::size
QSize size
Definition
recorder_export_settings.h:40
RecorderExportSettings::resultPreview
bool resultPreview
Definition
recorder_export_settings.h:34
RecorderExportSettings::format
RecorderFormat format
Definition
recorder_export_settings.h:57
RecorderExportSettings::realTimeCaptureMode
bool realTimeCaptureMode
Definition
recorder_export_settings.h:68
RecorderExportSettings::profileIndex
int profileIndex
Definition
recorder_export_settings.h:45
RecorderExportSettings::videoDirectory
QString videoDirectory
Definition
recorder_export_settings.h:47
RecorderExportSettings::framesCount
int framesCount
Definition
recorder_export_settings.h:66
RecorderExportSettings::inputFps
int inputFps
Definition
recorder_export_settings.h:36
RecorderProfile
Definition
recorder_export_settings.h:21
RecorderProfile::arguments
QString arguments
Definition
recorder_export_settings.h:24
RecorderProfile::extension
QString extension
Definition
recorder_export_settings.h:23
RecorderProfile::name
QString name
Definition
recorder_export_settings.h:22
plugins
dockers
recorder
recorder_export_settings.h
Generated at
2026-07-16 02:30:11+02:00
from
Krita
branch
master
, commit
a788c87613f94f0657ee6a3d88f6745bc44af899