Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
transcodingprofile.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_DTO_TRANSCODINGPROFILE_H
31#define JELLYFIN_DTO_TRANSCODINGPROFILE_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public:
58 bool copyTimestamps,
61 qint32 minSegments,
62 qint32 segmentLength,
64 );
65
67
72
73 static TranscodingProfile fromJson(QJsonObject source);
74 void setFromJson(QJsonObject source);
75 QJsonObject toJson() const;
76
77 // Properties
78
79 QString container() const;
80
81 void setContainer(QString newContainer);
82 bool containerNull() const;
83 void setContainerNull();
84
85
86 DlnaProfileType type() const;
87
88 void setType(DlnaProfileType newType);
89
90
91 QString videoCodec() const;
92
93 void setVideoCodec(QString newVideoCodec);
94 bool videoCodecNull() const;
95 void setVideoCodecNull();
96
97
98 QString audioCodec() const;
99
100 void setAudioCodec(QString newAudioCodec);
101 bool audioCodecNull() const;
102 void setAudioCodecNull();
103
104
105 QString protocol() const;
106
107 void setProtocol(QString newProtocol);
108 bool protocolNull() const;
109 void setProtocolNull();
110
111
112 bool estimateContentLength() const;
113
114 void setEstimateContentLength(bool newEstimateContentLength);
115
116
117 bool enableMpegtsM2TsMode() const;
118
119 void setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode);
120
121
123
124 void setTranscodeSeekInfo(TranscodeSeekInfo newTranscodeSeekInfo);
125
126
127 bool copyTimestamps() const;
128
129 void setCopyTimestamps(bool newCopyTimestamps);
130
131
132 EncodingContext context() const;
133
134 void setContext(EncodingContext newContext);
135
136
137 bool enableSubtitlesInManifest() const;
138
139 void setEnableSubtitlesInManifest(bool newEnableSubtitlesInManifest);
140
141
142 QString maxAudioChannels() const;
143
144 void setMaxAudioChannels(QString newMaxAudioChannels);
145 bool maxAudioChannelsNull() const;
147
148
149 qint32 minSegments() const;
150
151 void setMinSegments(qint32 newMinSegments);
152
153
154 qint32 segmentLength() const;
155
156 void setSegmentLength(qint32 newSegmentLength);
157
158
159 bool breakOnNonKeyFrames() const;
160
161 void setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames);
162
163
164protected:
165 QString m_container;
169 QString m_protocol;
180
181private:
182 // Private constructor which generates an invalid object, for use withing TranscodingProfile::fromJson();
184};
185
186
187} // NS DTO
188
189namespace Support {
190
192
193template <>
195
196template<>
198
199} // NS DTO
200} // NS Jellyfin
201
202#endif // JELLYFIN_DTO_TRANSCODINGPROFILE_H
Value
Definition dlnaprofiletype.h:49
Value
Definition encodingcontext.h:49
Value
Definition transcodeseekinfo.h:49
Definition transcodingprofile.h:51
void setTranscodeSeekInfo(TranscodeSeekInfo newTranscodeSeekInfo)
Definition transcodingprofile.cpp:237
qint32 m_segmentLength
Definition transcodingprofile.h:178
QJsonObject toJson() const
Definition transcodingprofile.cpp:124
void setCopyTimestamps(bool newCopyTimestamps)
Definition transcodingprofile.cpp:243
void setContainer(QString newContainer)
Definition transcodingprofile.cpp:167
QString protocol() const
Definition transcodingprofile.cpp:210
QString m_protocol
Definition transcodingprofile.h:169
bool audioCodecNull() const
Definition transcodingprofile.cpp:202
void setAudioCodec(QString newAudioCodec)
Definition transcodingprofile.cpp:199
TranscodeSeekInfo transcodeSeekInfo() const
Definition transcodingprofile.cpp:235
QString container() const
Definition transcodingprofile.cpp:165
void replaceData(TranscodingProfile &other)
Definition transcodingprofile.cpp:80
QString m_videoCodec
Definition transcodingprofile.h:167
bool breakOnNonKeyFrames() const
Definition transcodingprofile.cpp:284
void setAudioCodecNull()
Definition transcodingprofile.cpp:206
bool containerNull() const
Definition transcodingprofile.cpp:170
void setContainerNull()
Definition transcodingprofile.cpp:174
QString videoCodec() const
Definition transcodingprofile.cpp:184
bool m_enableSubtitlesInManifest
Definition transcodingprofile.h:175
bool maxAudioChannelsNull() const
Definition transcodingprofile.cpp:264
void setProtocol(QString newProtocol)
Definition transcodingprofile.cpp:212
bool copyTimestamps() const
Definition transcodingprofile.cpp:241
void setProtocolNull()
Definition transcodingprofile.cpp:219
EncodingContext m_context
Definition transcodingprofile.h:174
TranscodeSeekInfo m_transcodeSeekInfo
Definition transcodingprofile.h:172
bool enableMpegtsM2TsMode() const
Definition transcodingprofile.cpp:229
QString m_container
Definition transcodingprofile.h:165
QString m_maxAudioChannels
Definition transcodingprofile.h:176
void setMinSegments(qint32 newMinSegments)
Definition transcodingprofile.cpp:274
QString maxAudioChannels() const
Definition transcodingprofile.cpp:259
void setVideoCodec(QString newVideoCodec)
Definition transcodingprofile.cpp:186
bool m_breakOnNonKeyFrames
Definition transcodingprofile.h:179
void setType(DlnaProfileType newType)
Definition transcodingprofile.cpp:180
DlnaProfileType type() const
Definition transcodingprofile.cpp:178
bool m_estimateContentLength
Definition transcodingprofile.h:170
static TranscodingProfile fromJson(QJsonObject source)
Definition transcodingprofile.cpp:98
void setFromJson(QJsonObject source)
Definition transcodingprofile.cpp:105
void setVideoCodecNull()
Definition transcodingprofile.cpp:193
bool m_enableMpegtsM2TsMode
Definition transcodingprofile.h:171
bool enableSubtitlesInManifest() const
Definition transcodingprofile.cpp:253
void setEnableSubtitlesInManifest(bool newEnableSubtitlesInManifest)
Definition transcodingprofile.cpp:255
void setEstimateContentLength(bool newEstimateContentLength)
Definition transcodingprofile.cpp:225
void setSegmentLength(qint32 newSegmentLength)
Definition transcodingprofile.cpp:280
DlnaProfileType m_type
Definition transcodingprofile.h:166
QString audioCodec() const
Definition transcodingprofile.cpp:197
EncodingContext context() const
Definition transcodingprofile.cpp:247
bool protocolNull() const
Definition transcodingprofile.cpp:215
void setMaxAudioChannelsNull()
Definition transcodingprofile.cpp:268
void setMaxAudioChannels(QString newMaxAudioChannels)
Definition transcodingprofile.cpp:261
qint32 m_minSegments
Definition transcodingprofile.h:177
QString m_audioCodec
Definition transcodingprofile.h:168
void setBreakOnNonKeyFrames(bool newBreakOnNonKeyFrames)
Definition transcodingprofile.cpp:286
qint32 segmentLength() const
Definition transcodingprofile.cpp:278
bool videoCodecNull() const
Definition transcodingprofile.cpp:189
void setContext(EncodingContext newContext)
Definition transcodingprofile.cpp:249
bool m_copyTimestamps
Definition transcodingprofile.h:173
void setEnableMpegtsM2TsMode(bool newEnableMpegtsM2TsMode)
Definition transcodingprofile.cpp:231
qint32 minSegments() const
Definition transcodingprofile.cpp:272
bool estimateContentLength() const
Definition transcodingprofile.cpp:223
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45