Go to the documentation of this file.
16 using namespace std::chrono_literals;
162 QSize resolution = QSize(),
163 double videoFrameRate = 0.0,
164 const QString &container =
"",
165 const QString &vidCodec =
"",
166 const QString &audioCodec =
"");
181 const QString &mimeType,
183 double videoFrameRate,
184 const QString &container,
185 const QString &vidCodec,
186 const QString &audioCodec,
201 const QString &mimeType,
202 QSize resolution = QSize(),
203 double videoFrameRate = 0.0,
204 const QString &container =
"",
205 const QString &vidCodec =
"",
206 const QString &audioCodec =
"",
207 bool isTranscoded =
false);
317 #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.
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.