Skip to content
Extraits de code Groupes Projets
Vérifiée Valider f4e04ba8 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

LIB: Finished implementing V1 of the VideoContext and its stream

parent 1d3e18fa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!18Implement the VivyDocument specification
......@@ -31,3 +31,27 @@ VideoContext::getElementName() const noexcept
{
return "Video" + Super::getElementName();
}
int
VideoStream::getWidth() const noexcept
{
return codecContext->width;
}
int
VideoStream::getHeight() const noexcept
{
return codecContext->height;
}
qint64
VideoStream::getDuration() const noexcept
{
return dataFormat->duration;
}
double
VideoStream::getFramesPerSecond() const noexcept
{
return av_q2d(stream->r_frame_rate);
}
......@@ -17,10 +17,10 @@ public:
VideoStream(AVCodec *, AVFormatContext *, AVStream *, int index);
~VideoStream() noexcept override = default;
size_t getWidth() const noexcept;
size_t getHeight() const noexcept;
size_t getDuration() const noexcept;
size_t getFramesPerSecond() const noexcept;
int getWidth() const noexcept;
int getHeight() const noexcept;
qint64 getDuration() const noexcept;
double getFramesPerSecond() const noexcept;
QJsonObject getProperties() const noexcept override;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter