Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::DTO::TranscodingInfo Class Reference

#include <transcodinginfo.h>

Public Member Functions

 TranscodingInfo (bool isVideoDirect, bool isAudioDirect, HardwareAccelerationType hardwareAccelerationType, QList< TranscodeReason > transcodeReasons)
 TranscodingInfo (const TranscodingInfo &other)
void replaceData (TranscodingInfo &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString audioCodec () const
 Gets or sets the thread count used for encoding.
void setAudioCodec (QString newAudioCodec)
 Gets or sets the thread count used for encoding.
bool audioCodecNull () const
void setAudioCodecNull ()
QString videoCodec () const
 Gets or sets the thread count used for encoding.
void setVideoCodec (QString newVideoCodec)
 Gets or sets the thread count used for encoding.
bool videoCodecNull () const
void setVideoCodecNull ()
QString container () const
 Gets or sets the thread count used for encoding.
void setContainer (QString newContainer)
 Gets or sets the thread count used for encoding.
bool containerNull () const
void setContainerNull ()
bool isVideoDirect () const
 Gets or sets a value indicating whether the video is passed through.
void setIsVideoDirect (bool newIsVideoDirect)
 Gets or sets a value indicating whether the video is passed through.
bool isAudioDirect () const
 Gets or sets a value indicating whether the audio is passed through.
void setIsAudioDirect (bool newIsAudioDirect)
 Gets or sets a value indicating whether the audio is passed through.
std::optional< qint32 > bitrate () const
 Gets or sets the bitrate.
void setBitrate (std::optional< qint32 > newBitrate)
 Gets or sets the bitrate.
bool bitrateNull () const
void setBitrateNull ()
std::optional< float > framerate () const
 Gets or sets the framerate.
void setFramerate (std::optional< float > newFramerate)
 Gets or sets the framerate.
bool framerateNull () const
void setFramerateNull ()
std::optional< double > completionPercentage () const
 Gets or sets the completion percentage.
void setCompletionPercentage (std::optional< double > newCompletionPercentage)
 Gets or sets the completion percentage.
bool completionPercentageNull () const
void setCompletionPercentageNull ()
std::optional< qint32 > width () const
 Gets or sets the video width.
void setWidth (std::optional< qint32 > newWidth)
 Gets or sets the video width.
bool widthNull () const
void setWidthNull ()
std::optional< qint32 > height () const
 Gets or sets the video height.
void setHeight (std::optional< qint32 > newHeight)
 Gets or sets the video height.
bool heightNull () const
void setHeightNull ()
std::optional< qint32 > audioChannels () const
 Gets or sets the audio channels.
void setAudioChannels (std::optional< qint32 > newAudioChannels)
 Gets or sets the audio channels.
bool audioChannelsNull () const
void setAudioChannelsNull ()
HardwareAccelerationType hardwareAccelerationType () const
void setHardwareAccelerationType (HardwareAccelerationType newHardwareAccelerationType)
QList< TranscodeReasontranscodeReasons () const
 Gets or sets the transcode reasons.
void setTranscodeReasons (QList< TranscodeReason > newTranscodeReasons)
 Gets or sets the transcode reasons.

Static Public Member Functions

static TranscodingInfo fromJson (QJsonObject source)

Protected Attributes

QString m_audioCodec
QString m_videoCodec
QString m_container
bool m_isVideoDirect
bool m_isAudioDirect
std::optional< qint32 > m_bitrate = std::nullopt
std::optional< float > m_framerate = std::nullopt
std::optional< double > m_completionPercentage = std::nullopt
std::optional< qint32 > m_width = std::nullopt
std::optional< qint32 > m_height = std::nullopt
std::optional< qint32 > m_audioChannels = std::nullopt
HardwareAccelerationType m_hardwareAccelerationType
QList< TranscodeReasonm_transcodeReasons

Constructor & Destructor Documentation

◆ TranscodingInfo() [1/2]

Jellyfin::DTO::TranscodingInfo::TranscodingInfo ( bool isVideoDirect,
bool isAudioDirect,
HardwareAccelerationType hardwareAccelerationType,
QList< TranscodeReason > transcodeReasons )

◆ TranscodingInfo() [2/2]

Jellyfin::DTO::TranscodingInfo::TranscodingInfo ( const TranscodingInfo & other)

Member Function Documentation

◆ audioChannels()

std::optional< qint32 > Jellyfin::DTO::TranscodingInfo::audioChannels ( ) const

Gets or sets the audio channels.

◆ audioChannelsNull()

bool Jellyfin::DTO::TranscodingInfo::audioChannelsNull ( ) const

◆ audioCodec()

QString Jellyfin::DTO::TranscodingInfo::audioCodec ( ) const

Gets or sets the thread count used for encoding.

◆ audioCodecNull()

bool Jellyfin::DTO::TranscodingInfo::audioCodecNull ( ) const

◆ bitrate()

std::optional< qint32 > Jellyfin::DTO::TranscodingInfo::bitrate ( ) const

Gets or sets the bitrate.

◆ bitrateNull()

bool Jellyfin::DTO::TranscodingInfo::bitrateNull ( ) const

◆ completionPercentage()

std::optional< double > Jellyfin::DTO::TranscodingInfo::completionPercentage ( ) const

Gets or sets the completion percentage.

◆ completionPercentageNull()

bool Jellyfin::DTO::TranscodingInfo::completionPercentageNull ( ) const

◆ container()

QString Jellyfin::DTO::TranscodingInfo::container ( ) const

Gets or sets the thread count used for encoding.

◆ containerNull()

bool Jellyfin::DTO::TranscodingInfo::containerNull ( ) const

◆ framerate()

std::optional< float > Jellyfin::DTO::TranscodingInfo::framerate ( ) const

Gets or sets the framerate.

◆ framerateNull()

bool Jellyfin::DTO::TranscodingInfo::framerateNull ( ) const

◆ fromJson()

TranscodingInfo Jellyfin::DTO::TranscodingInfo::fromJson ( QJsonObject source)
static

◆ hardwareAccelerationType()

HardwareAccelerationType Jellyfin::DTO::TranscodingInfo::hardwareAccelerationType ( ) const

◆ height()

std::optional< qint32 > Jellyfin::DTO::TranscodingInfo::height ( ) const

Gets or sets the video height.

◆ heightNull()

bool Jellyfin::DTO::TranscodingInfo::heightNull ( ) const

◆ isAudioDirect()

bool Jellyfin::DTO::TranscodingInfo::isAudioDirect ( ) const

Gets or sets a value indicating whether the audio is passed through.

◆ isVideoDirect()

bool Jellyfin::DTO::TranscodingInfo::isVideoDirect ( ) const

Gets or sets a value indicating whether the video is passed through.

◆ replaceData()

void Jellyfin::DTO::TranscodingInfo::replaceData ( TranscodingInfo & other)

Replaces the data being hold by this class with that of the other.

◆ setAudioChannels()

void Jellyfin::DTO::TranscodingInfo::setAudioChannels ( std::optional< qint32 > newAudioChannels)

Gets or sets the audio channels.

◆ setAudioChannelsNull()

void Jellyfin::DTO::TranscodingInfo::setAudioChannelsNull ( )

◆ setAudioCodec()

void Jellyfin::DTO::TranscodingInfo::setAudioCodec ( QString newAudioCodec)

Gets or sets the thread count used for encoding.

◆ setAudioCodecNull()

void Jellyfin::DTO::TranscodingInfo::setAudioCodecNull ( )

◆ setBitrate()

void Jellyfin::DTO::TranscodingInfo::setBitrate ( std::optional< qint32 > newBitrate)

Gets or sets the bitrate.

◆ setBitrateNull()

void Jellyfin::DTO::TranscodingInfo::setBitrateNull ( )

◆ setCompletionPercentage()

void Jellyfin::DTO::TranscodingInfo::setCompletionPercentage ( std::optional< double > newCompletionPercentage)

Gets or sets the completion percentage.

◆ setCompletionPercentageNull()

void Jellyfin::DTO::TranscodingInfo::setCompletionPercentageNull ( )

◆ setContainer()

void Jellyfin::DTO::TranscodingInfo::setContainer ( QString newContainer)

Gets or sets the thread count used for encoding.

◆ setContainerNull()

void Jellyfin::DTO::TranscodingInfo::setContainerNull ( )

◆ setFramerate()

void Jellyfin::DTO::TranscodingInfo::setFramerate ( std::optional< float > newFramerate)

Gets or sets the framerate.

◆ setFramerateNull()

void Jellyfin::DTO::TranscodingInfo::setFramerateNull ( )

◆ setFromJson()

void Jellyfin::DTO::TranscodingInfo::setFromJson ( QJsonObject source)

◆ setHardwareAccelerationType()

void Jellyfin::DTO::TranscodingInfo::setHardwareAccelerationType ( HardwareAccelerationType newHardwareAccelerationType)

◆ setHeight()

void Jellyfin::DTO::TranscodingInfo::setHeight ( std::optional< qint32 > newHeight)

Gets or sets the video height.

◆ setHeightNull()

void Jellyfin::DTO::TranscodingInfo::setHeightNull ( )

◆ setIsAudioDirect()

void Jellyfin::DTO::TranscodingInfo::setIsAudioDirect ( bool newIsAudioDirect)

Gets or sets a value indicating whether the audio is passed through.

◆ setIsVideoDirect()

void Jellyfin::DTO::TranscodingInfo::setIsVideoDirect ( bool newIsVideoDirect)

Gets or sets a value indicating whether the video is passed through.

◆ setTranscodeReasons()

void Jellyfin::DTO::TranscodingInfo::setTranscodeReasons ( QList< TranscodeReason > newTranscodeReasons)

Gets or sets the transcode reasons.

◆ setVideoCodec()

void Jellyfin::DTO::TranscodingInfo::setVideoCodec ( QString newVideoCodec)

Gets or sets the thread count used for encoding.

◆ setVideoCodecNull()

void Jellyfin::DTO::TranscodingInfo::setVideoCodecNull ( )

◆ setWidth()

void Jellyfin::DTO::TranscodingInfo::setWidth ( std::optional< qint32 > newWidth)

Gets or sets the video width.

◆ setWidthNull()

void Jellyfin::DTO::TranscodingInfo::setWidthNull ( )

◆ toJson()

QJsonObject Jellyfin::DTO::TranscodingInfo::toJson ( ) const

◆ transcodeReasons()

QList< TranscodeReason > Jellyfin::DTO::TranscodingInfo::transcodeReasons ( ) const

Gets or sets the transcode reasons.

◆ videoCodec()

QString Jellyfin::DTO::TranscodingInfo::videoCodec ( ) const

Gets or sets the thread count used for encoding.

◆ videoCodecNull()

bool Jellyfin::DTO::TranscodingInfo::videoCodecNull ( ) const

◆ width()

std::optional< qint32 > Jellyfin::DTO::TranscodingInfo::width ( ) const

Gets or sets the video width.

◆ widthNull()

bool Jellyfin::DTO::TranscodingInfo::widthNull ( ) const

Member Data Documentation

◆ m_audioChannels

std::optional<qint32> Jellyfin::DTO::TranscodingInfo::m_audioChannels = std::nullopt
protected

◆ m_audioCodec

QString Jellyfin::DTO::TranscodingInfo::m_audioCodec
protected

◆ m_bitrate

std::optional<qint32> Jellyfin::DTO::TranscodingInfo::m_bitrate = std::nullopt
protected

◆ m_completionPercentage

std::optional<double> Jellyfin::DTO::TranscodingInfo::m_completionPercentage = std::nullopt
protected

◆ m_container

QString Jellyfin::DTO::TranscodingInfo::m_container
protected

◆ m_framerate

std::optional<float> Jellyfin::DTO::TranscodingInfo::m_framerate = std::nullopt
protected

◆ m_hardwareAccelerationType

HardwareAccelerationType Jellyfin::DTO::TranscodingInfo::m_hardwareAccelerationType
protected

◆ m_height

std::optional<qint32> Jellyfin::DTO::TranscodingInfo::m_height = std::nullopt
protected

◆ m_isAudioDirect

bool Jellyfin::DTO::TranscodingInfo::m_isAudioDirect
protected

◆ m_isVideoDirect

bool Jellyfin::DTO::TranscodingInfo::m_isVideoDirect
protected

◆ m_transcodeReasons

QList<TranscodeReason> Jellyfin::DTO::TranscodingInfo::m_transcodeReasons
protected

◆ m_videoCodec

QString Jellyfin::DTO::TranscodingInfo::m_videoCodec
protected

◆ m_width

std::optional<qint32> Jellyfin::DTO::TranscodingInfo::m_width = std::nullopt
protected

The documentation for this class was generated from the following files: