Sélectionner une révision Git
video_provider_ffmpegsource.cpp
-
Thomas Goyne a rédigé
Creating an indexer can fail for reasons other than the file not existing. This check is still not completely correct, since FFMS2 uses the wrong error codes in a bunch of places.
Thomas Goyne a rédigéCreating an indexer can fail for reasons other than the file not existing. This check is still not completely correct, since FFMS2 uses the wrong error codes in a bunch of places.
Line.hh 1,03 Kio
#ifndef VIVY_ASS_LINE_H
#define VIVY_ASS_LINE_H
#include <QString>
#include <QtGlobal>
#include "Syl.hh"
#include "StyleProperties.hh"
#include "Style.hh"
namespace Vivy::Ass
{
class AssFactory;
class Line final {
private:
quint64 start{ 0 };
quint64 end{ 0 };
int layer{ 0 };
QVector<Syl> content{};
StyleProperties styleProperties{};
QString effect{};
QString nameOrActor{};
StyleWeakPtr lineStyle;
QString ___contentAsText;
AssFactory *const assFactory;
public:
explicit Line(const Line &) = default;
explicit Line(AssFactory *const, const QString &);
Line &operator=(const Line &) = delete;
~Line() noexcept = default;
void setStart(quint64 s) noexcept;
void setEnd(quint64 s) noexcept;
quint64 getDuration() const noexcept;
StyleProperties getStyleProperties() const noexcept;
StyleWeakPtr getStyle() const noexcept;
const QVector<Syl> &getContent() const noexcept;
private:
void initSylFromString(const QString &) noexcept;
};
}
#endif // VIVY_ASS_LINE_H