Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDlgImportVideoAnimation.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Know Zero
3 * SPDX-FileCopyrightText: 2021 Eoin O'Neill <eoinoneill1991@gmail.com>
4 * SPDX-FileCopyrightText: 2021 Emmet O'Neill <emmetoneill.pdx@gmail.com>
5 * SPDX-FileCopyrightText: 2021 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#ifndef KISDLGIMPORTVIDEOANIMATION_H
11#define KISDLGIMPORTVIDEOANIMATION_H
12
13#include <QObject>
14#include <QDir>
15#include <QJsonObject>
16#include "KoDialog.h"
18#include "KisView.h"
20#include "ui_VideoImportDialog.h"
21
22class KisDocument;
23class KisMainWindow;
24
42
44public:
47 inline bool framesNeedRelocation() const { return !renderedFrameTargetTimes.empty(); }
48 inline bool isEmpty() const { return renderedFrameFiles.isEmpty(); }
49 inline size_t size() const { return renderedFrameFiles.size(); }
50};
51
53{
54 Q_OBJECT
55
56public:
59 RenderedFrames renderFrames(const QDir& directory);
61
62protected Q_SLOTS:
63 void loadVideoFile(const QString &filename);
64 void slotNextFrame();
65 void slotPrevFrame();
66 void slotFrameNumberChanged(int frame);
69 void slotImportDurationChanged(qreal time);
70
71 void slotDocumentHandlerChanged(int selectedIndex);
72
73 void slotFFProbeFile();
74 void slotFFMpegFile();
75
76private:
77 void toggleInputControls(bool toggleBool);
78 void CurrentFrameChanged(int frame);
79 void updateVideoPreview();
81 KisBasicVideoInfo loadVideoInfo(const QString &inputFile);
83 void saveLastUsedConfiguration(QString configurationID, KisPropertiesConfigurationSP config);
84
85private:
86 Ui_VideoImportDialog m_ui;
89
93
95
96
97};
98
99#endif // KISDLGIMPORTVIDEOANIMATION_H
100
ColorPrimaries
The colorPrimaries enum Enum of colorants, follows ITU H.273 for values 0 to 255, and has extra known...
@ PRIMARIES_UNSPECIFIED
TransferCharacteristics
The transferCharacteristics enum Enum of transfer characteristics, follows ITU H.273 for values 0 to ...
KisPropertiesConfigurationSP loadLastUsedConfiguration(QString configurationID)
KisDlgImportVideoAnimation(KisMainWindow *m_mainWindow, KisView *m_activeView)
void loadVideoFile(const QString &filename)
RenderedFrames renderFrames(const QDir &directory)
void saveLastUsedConfiguration(QString configurationID, KisPropertiesConfigurationSP config)
KisBasicVideoInfo loadVideoInfo(const QString &inputFile)
void slotDocumentHandlerChanged(int selectedIndex)
Main window for Krita.
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
TransferCharacteristics colorTransfer
QList< int > renderedFrameTargetTimes