footage: support multi-layered images

Fixes #982
This commit is contained in:
itsmattkc
2022-05-04 09:27:34 -07:00
parent a3c52cafaa
commit 5f13a83009
9 changed files with 132 additions and 26 deletions
+9
View File
@@ -21,6 +21,7 @@
#ifndef VIDEOPARAMS_H
#define VIDEOPARAMS_H
#include <QVector2D>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
@@ -273,6 +274,12 @@ public:
enabled_ = e;
}
float x() const { return x_; }
void set_x(float x) { x_ = x; }
float y() const { return y_; }
void set_y(float y) { y_ = y; }
QVector2D offset() const { return QVector2D(x_, y_); }
int stream_index() const
{
return stream_index_;
@@ -387,6 +394,8 @@ private:
int64_t duration_;
bool premultiplied_alpha_;
QString colorspace_;
float x_;
float y_;
};