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 17 of file VideoExportOptionsDialog.cpp.

Constructor & Destructor Documentation

◆ Private()

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

Definition at line 19 of file VideoExportOptionsDialog.cpp.

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

◆ currentCustomLine

QString KisVideoExportOptionsDialog::Private::currentCustomLine

Definition at line 122 of file VideoExportOptionsDialog.cpp.

◆ encoders

QVector<KoID> KisVideoExportOptionsDialog::Private::encoders

Definition at line 107 of file VideoExportOptionsDialog.cpp.

◆ hdrMetadataOptions

KisHDRMetadataOptions KisVideoExportOptionsDialog::Private::hdrMetadataOptions

Definition at line 124 of file VideoExportOptionsDialog.cpp.

◆ paletteDiffModeGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteDiffModeGIF

Definition at line 116 of file VideoExportOptionsDialog.cpp.

◆ paletteDitherGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteDitherGIF

Definition at line 115 of file VideoExportOptionsDialog.cpp.

◆ paletteGenModeGIF

QVector<KoID> KisVideoExportOptionsDialog::Private::paletteGenModeGIF

Definition at line 114 of file VideoExportOptionsDialog.cpp.

◆ predAPNG

QVector<KoID> KisVideoExportOptionsDialog::Private::predAPNG

Definition at line 112 of file VideoExportOptionsDialog.cpp.

◆ presetsWEBP

QVector<KoID> KisVideoExportOptionsDialog::Private::presetsWEBP

Definition at line 120 of file VideoExportOptionsDialog.cpp.

◆ presetsXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::presetsXH264

Definition at line 108 of file VideoExportOptionsDialog.cpp.

◆ profilesXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::profilesXH264

Definition at line 109 of file VideoExportOptionsDialog.cpp.

◆ profilesXH265

QVector<KoID> KisVideoExportOptionsDialog::Private::profilesXH265

Definition at line 110 of file VideoExportOptionsDialog.cpp.

◆ supportsHDR

bool KisVideoExportOptionsDialog::Private::supportsHDR = false

Definition at line 127 of file VideoExportOptionsDialog.cpp.

◆ tuningXH264

QVector<KoID> KisVideoExportOptionsDialog::Private::tuningXH264

Definition at line 118 of file VideoExportOptionsDialog.cpp.

◆ tuningXH265

QVector<KoID> KisVideoExportOptionsDialog::Private::tuningXH265

Definition at line 119 of file VideoExportOptionsDialog.cpp.


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