Krita Source Code Documentation
Loading...
Searching...
No Matches
KisVideoExportOptionsDialog::Private Struct Reference

Public Member Functions

 Private (ContainerType _containerType, const QStringList &validEncoders)
 

Public Attributes

ContainerType containerType
 
QString currentCustomLine
 
QVector< KoIDencoders
 
KisHDRMetadataOptions hdrMetadataOptions
 
QVector< KoIDpaletteDiffModeGIF
 
QVector< KoIDpaletteDitherGIF
 
QVector< KoIDpaletteGenModeGIF
 
QVector< KoIDpredAPNG
 
QVector< KoIDpresetsWEBP
 
QVector< KoIDpresetsXH264
 
QVector< KoIDprofilesXH264
 
QVector< KoIDprofilesXH265
 
bool supportsHDR = false
 
QVector< KoIDtuningXH264
 
QVector< KoIDtuningXH265
 

Detailed Description

Definition at line 18 of file VideoExportOptionsDialog.cpp.

Constructor & Destructor Documentation

◆ Private()

KisVideoExportOptionsDialog::Private::Private ( ContainerType _containerType,
const QStringList & validEncoders )
inline

Definition at line 20 of file VideoExportOptionsDialog.cpp.

21 : containerType(_containerType)
22 {
24
25 // Cross check w/ arbitrary ffmpeg's list of present encoders if list is populated.
26 if (validEncoders.size() > 0) {
27 encoders = [validEncoders](const QVector<KoID>& input) -> QVector<KoID> {
28 QVector<KoID> filtered;
29 Q_FOREACH(const KoID& encoder, input) {
30 if (validEncoders.contains(encoder.id())) {
31 filtered << encoder;
32 }
33 }
34
35 return filtered;
36 }(encoders);
37 }
38
39 presetsXH264 << KoID("ultrafast", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "ultrafast"));
40 presetsXH264 << KoID("superfast", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "superfast"));
41 presetsXH264 << KoID("veryfast", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "veryfast"));
42 presetsXH264 << KoID("faster", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "faster"));
43 presetsXH264 << KoID("fast", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "fast"));
44 presetsXH264 << KoID("medium", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "medium"));
45 presetsXH264 << KoID("slow", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "slow"));
46 presetsXH264 << KoID("slower", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "slower"));
47 presetsXH264 << KoID("veryslow", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "veryslow"));
48 presetsXH264 << KoID("placebo", i18nc("h264 preset name, check simplescreenrecorder for standard translations", "placebo"));
49
50 profilesXH264 << KoID("baseline", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "baseline"));
51 profilesXH264 << KoID("main", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "main"));
52 profilesXH264 << KoID("high", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "high"));
53 profilesXH264 << KoID("high10", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "high10"));
54 profilesXH264 << KoID("high422", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "high422"));
55 profilesXH264 << KoID("high444", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "high444"));
56
57 profilesXH265 << KoID("main", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "main"));
58 profilesXH265 << KoID("main10", i18nc("h264 profile name, check simplescreenrecorder for standard translations", "main10 (HDR)"));
59
60 // TODO: add "none" tune option
61 tuningXH264 << KoID("film", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "film"));
62 tuningXH264 << KoID("animation", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "animation"));
63 tuningXH264 << KoID("grain", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "grain"));
64 tuningXH264 << KoID("stillimage", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "stillimage"));
65 tuningXH264 << KoID("psnr", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "psnr"));
66 tuningXH264 << KoID("ssim", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "ssim"));
67 tuningXH264 << KoID("fastdecode", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "fastdecode"));
68 tuningXH264 << KoID("zerolatency", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "zerolatency"));
69
70 tuningXH265 << KoID("none", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "none"));
71 tuningXH265 << KoID("animation", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "animation"));
72 tuningXH265 << KoID("grain", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "grain"));
73 tuningXH265 << KoID("psnr", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "psnr"));
74 tuningXH265 << KoID("ssim", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "ssim"));
75 tuningXH265 << KoID("fastdecode", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "fastdecode"));
76 tuningXH265 << KoID("zero-latency", i18nc("h264 tune option name, check simplescreenrecorder for standard translations", "zero-latency"));
77
78 predAPNG << KoID("none", i18nc("apng prediction option name", "none"));
79 predAPNG << KoID("sub", i18nc("apng prediction option name", "sub"));
80 predAPNG << KoID("up", i18nc("apng prediction option name", "up"));
81 predAPNG << KoID("avg", i18nc("apng prediction option name", "avg"));
82 predAPNG << KoID("paeth", i18nc("apng prediction option name", "paeth"));
83 predAPNG << KoID("mixed", i18nc("apng prediction option name", "mixed"));
84
85 presetsWEBP << KoID("default", i18nc("webp preset option name", "default"));
86 presetsWEBP << KoID("none", i18nc("webp preset option name", "none"));
87 presetsWEBP << KoID("drawing", i18nc("webp preset option name", "drawing"));
88 presetsWEBP << KoID("icon", i18nc("webp preset option name", "icon"));
89 presetsWEBP << KoID("photo", i18nc("webp preset option name", "photo"));
90 presetsWEBP << KoID("picture", i18nc("webp preset option name", "picture"));
91 presetsWEBP << KoID("text", i18nc("webp preset option name", "text"));
92
93 paletteGenModeGIF << KoID("full", i18nc("palettegen status mode option name", "Global/Full"));
94 paletteGenModeGIF << KoID("diff", i18nc("palettegen status mode option name", "Difference"));
95 paletteGenModeGIF << KoID("single", i18nc("palettegen status mode option name", "Per Single Frame"));
96
97 paletteDitherGIF << KoID("none", i18nc("paletteuse dither option name", "none"));
98 paletteDitherGIF << KoID("bayer", i18nc("paletteuse dither option name", "bayer"));
99 paletteDitherGIF << KoID("floyd_steinberg", i18nc("paletteuse dither option name", "floyd_steinberg"));
100 paletteDitherGIF << KoID("heckbert", i18nc("paletteuse dither option name", "heckbert"));
101 paletteDitherGIF << KoID("sierra2", i18nc("paletteuse dither option name", "sierra2"));
102 paletteDitherGIF << KoID("sierra2_4a", i18nc("paletteuse dither option name", "sierra2_4a"));
103
104 paletteDiffModeGIF << KoID("none", i18nc("paletteuse diff mode option name", "none"));
105 paletteDiffModeGIF << KoID("rectangle", i18nc("paletteuse diff mode option name", "rectangle"));
106 }
static QVector< KoID > encoderIdentifiers(ContainerType type)
Definition KoID.h:30
Encoder * encoder(Imf::OutputFile &file, const ExrPaintLayerSaveInfo &info, int width)

References containerType, encoder(), KisVideoExportOptionsDialog::encoderIdentifiers(), encoders, paletteDiffModeGIF, paletteDitherGIF, paletteGenModeGIF, predAPNG, presetsWEBP, presetsXH264, profilesXH264, profilesXH265, tuningXH264, and tuningXH265.

Member Data Documentation

◆ containerType

ContainerType KisVideoExportOptionsDialog::Private::containerType

Definition at line 127 of file VideoExportOptionsDialog.cpp.

◆ currentCustomLine

QString KisVideoExportOptionsDialog::Private::currentCustomLine

Definition at line 123 of file VideoExportOptionsDialog.cpp.

◆ encoders

QVector<KoID> KisVideoExportOptionsDialog::Private::encoders

Definition at line 108 of file VideoExportOptionsDialog.cpp.

◆ hdrMetadataOptions

KisHDRMetadataOptions KisVideoExportOptionsDialog::Private::hdrMetadataOptions

Definition at line 125 of file VideoExportOptionsDialog.cpp.

◆ paletteDiffModeGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteDiffModeGIF

Definition at line 117 of file VideoExportOptionsDialog.cpp.

◆ paletteDitherGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteDitherGIF

Definition at line 116 of file VideoExportOptionsDialog.cpp.

◆ paletteGenModeGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteGenModeGIF

Definition at line 115 of file VideoExportOptionsDialog.cpp.

◆ predAPNG

QVector<KoID> KisVideoExportOptionsDialog::Private::predAPNG

Definition at line 113 of file VideoExportOptionsDialog.cpp.

◆ presetsWEBP

QVector<KoID> KisVideoExportOptionsDialog::Private::presetsWEBP

Definition at line 121 of file VideoExportOptionsDialog.cpp.

◆ presetsXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::presetsXH264

Definition at line 109 of file VideoExportOptionsDialog.cpp.

◆ profilesXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::profilesXH264

Definition at line 110 of file VideoExportOptionsDialog.cpp.

◆ profilesXH265

QVector<KoID> KisVideoExportOptionsDialog::Private::profilesXH265

Definition at line 111 of file VideoExportOptionsDialog.cpp.

◆ supportsHDR

bool KisVideoExportOptionsDialog::Private::supportsHDR = false

Definition at line 128 of file VideoExportOptionsDialog.cpp.

◆ tuningXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::tuningXH264

Definition at line 119 of file VideoExportOptionsDialog.cpp.

◆ tuningXH265

QVector<KoID> KisVideoExportOptionsDialog::Private::tuningXH265

Definition at line 120 of file VideoExportOptionsDialog.cpp.


The documentation for this struct was generated from the following file: