Go to the documentation of this file.
17 using namespace std::chrono_literals;
163 QSize resolution = QSize(),
164 double videoFrameRate = 0.0,
165 const QString &container =
"",
166 const QString &vidCodec =
"",
167 const QString &audioCodec =
"");
182 const QString &mimeType,
184 double videoFrameRate,
185 const QString &container,
186 const QString &vidCodec,
187 const QString &audioCodec,
202 const QString &mimeType,
203 QSize resolution = QSize(),
204 double videoFrameRate = 0.0,
205 const QString &container =
"",
206 const QString &vidCodec =
"",
207 const QString &audioCodec =
"",
208 bool isTranscoded =
false);
318 #endif // UPNP_HELPERS_H
QString DateTimeFormat(const QDateTime &dateTime)
Date-Time Format.
QString OpParamString(UPNPProtocol::TransferProtocol protocol)
Create a properly formatted Operations Parameter (op-param) string for the given transport protocol b...
QString ProtocolInfoString(UPNPProtocol::TransferProtocol protocol, const QString &mimeType, const QSize resolution, double videoFrameRate, const QString &container, const QString &videoCodec, const QString &audioCodec, bool isTranscoded)
Create a properly formatted string for the 4th field of res@protocolInfo.
@ kcleartextbyteseek_full
QString DLNAFourthField(UPNPProtocol::TransferProtocol protocol, const QString &mimeType, const QSize resolution, double videoFrameRate, const QString &container, const QString &videoCodec, const QString &audioCodec, bool isTranscoded)
Create a properly formatted string for the 4th field of res@protocolInfo.
Helpers for UPnP Protocol 'stuff'.
QString DurationFormat(std::chrono::milliseconds msec)
Duration Format.
QString DLNAProfileName(const QString &mimeType, const QSize resolution, const double, const QString &container, const QString &vidCodec, const QString &audioCodec)
Try to determine a valid DLNA profile name for the file based on the supplied metadata.
QString FlagsString(uint32_t flags)
Convert an integer composed of DNLA_Flags to a properly formatted string for use in XML.
QString TimeFormat(const QTime time)
Time Format.
Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications.
QString NamedDayFormat(const QDateTime &dateTime)
Named-Day Format.
QString ConversionIndicatorString(bool wasConverted)
Create a properly formatted Conversion Indicator (ci-param) String.
QString resDurationFormat(std::chrono::milliseconds msec)
res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013
Helpers for building DLNA flag, strings and profiles.