18#ifndef JELLYFIN_VIEWMODEL_MEDIASTREAM_H
19#define JELLYFIN_VIEWMODEL_MEDIASTREAM_H
22#include <QScopedPointer>
32 explicit MediaStream(QSharedPointer<DTO::MediaStream> data, QObject *parent =
nullptr);
71 QString
codec()
const {
return m_data->codec(); }
72 QString
codecTag()
const {
return m_data->codecTag(); }
73 QString
language()
const {
return m_data->language(); }
74 QString
colorRange()
const {
return m_data->colorRange(); }
75 QString
colorSpace()
const {
return m_data->colorSpace(); }
78 QString
comment()
const {
return m_data->comment(); }
79 QString
timeBase()
const {
return m_data->timeBase(); }
80 QString
title()
const {
return m_data->title(); }
81 QString
videoRange()
const {
return m_data->videoRange(); }
87 bool interlaced()
const {
return m_data->isInterlaced(); }
88 bool avc()
const {
return m_data->isAVC().value_or(
false); }
90 qint32
bitRate()
const {
return m_data->bitRate().value_or(-1); }
91 qint32
bitDepth()
const {
return m_data->bitDepth().value_or(-1); }
92 qint32
refFrames()
const {
return m_data->refFrames().value_or(-1); }
93 qint32
packetLength()
const {
return m_data->packetLength().value_or(-1); }
94 qint32
channels()
const {
return m_data->channels().value_or(-1); }
95 qint32
sampleRate()
const {
return m_data->sampleRate().value_or(-1); }
96 bool isDefault()
const {
return m_data->isDefault(); }
97 bool forced()
const {
return m_data->isForced(); }
98 qint32
width()
const {
return m_data->width().value_or(-1); }
99 qint32
height()
const {
return m_data->height().value_or(-1); }
101 float realFrameRate()
const {
return m_data->realFrameRate().value_or(-1.0); }
102 QString
profile()
const {
return m_data->profile(); }
105 qint32
index()
const {
return m_data->index(); }
146 QSharedPointer<DTO::MediaStream> m_data;