Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAnimationRenderingOptions.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#ifndef KISANIMATIONRENDERINGOPTIONS_H
8#define KISANIMATIONRENDERINGOPTIONS_H
9
10#include <QString>
12
13#include "kritaui_export.h"
14
15class KRITAUI_EXPORT KisAnimationRenderingOptions
16{
17public:
19
23
24 QString basename;
25 QString directory;
26 int firstFrame = 0;
27 int lastFrame = 0;
28 int sequenceStart = 0;
29
30 bool shouldEncodeVideo = false;
31 bool shouldDeleteSequence = false;
32 bool includeAudio = false;
33 bool wantsOnlyUniqueFrameSequence = false;
34
35 QString ffmpegPath;
36 int frameRate = 25;
37 int width = 0;
38 int height = 0;
39 QString scaleFilter;
41
44
45 QString resolveAbsoluteDocumentFilePath(const QString &documentPath) const;
46 QString resolveAbsoluteVideoFilePath(const QString &documentPath) const;
47 QString resolveAbsoluteFramesDirectory(const QString &documentPath) const;
48
49 QString resolveAbsoluteVideoFilePath() const;
50 QString resolveAbsoluteFramesDirectory() const;
51
52
56 RENDER_FRAMES_AND_VIDEO
57 };
58
59 RenderMode renderMode() const;
60
61
62 KisPropertiesConfigurationSP toProperties() const;
63 void fromProperties(KisPropertiesConfigurationSP config);
64
65};
66
67#endif // KISANIMATIONRENDERINGOPTIONS_H
KisPropertiesConfigurationSP frameExportConfig