Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLibavMediaEncoderRunnable.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4#ifndef KISLIBAVDMEDIAENCODERRUNNABLE
5#define KISLIBAVDMEDIAENCODERRUNNABLE
6
8#include <QWidget>
9
11{
12public:
14 QObject *parent = nullptr);
15
16 static void getSupportedFormats(QVector<KisMediaEncoderFormat *> &outSupportedFormats);
17
18protected:
20
21 EncodeResult encode(QString &outErrorMessage) override;
22
23private:
24 static constexpr int FORMAT_GIF_PALETTE = 0;
25 static constexpr int FORMAT_GIF = 1;
26 static constexpr int FORMAT_WEBP = 2;
27 static constexpr int FORMAT_APNG = 3;
28
29 class Format;
30 class Context;
31};
32
33#endif
KisLibavMediaEncoderRunnable(const KisMediaEncoderWrapperSettings &settings, QObject *parent)
static KisLibavMediaEncoderRunnable * create(const KisMediaEncoderWrapperSettings &settings, QObject *parent=nullptr)
EncodeResult encode(QString &outErrorMessage) override
static void getSupportedFormats(QVector< KisMediaEncoderFormat * > &outSupportedFormats)
const KisMediaEncoderWrapperSettings settings()