decoder/timeline: improve decoding of still images

This commit is contained in:
itsmattkc
2020-07-12 18:25:51 +10:00
parent 4d6003bb55
commit 11afdf32fe
8 changed files with 313 additions and 197 deletions
+2 -1
View File
@@ -28,7 +28,8 @@
OLIVE_NAMESPACE_ENTER
ImageStream::ImageStream() :
premultiplied_alpha_(false)
premultiplied_alpha_(false),
interlacing_(kInterlaceNone)
{
set_type(kImage);
}
+20
View File
@@ -75,6 +75,24 @@ public:
QString get_colorspace_match_string() const;
enum Interlacing {
kInterlaceNone,
kInterlacedTopFirst,
kInterlacedBottomFirst
};
Interlacing interlacing() const
{
return interlacing_;
}
void set_interlacing(Interlacing i)
{
interlacing_ = i;
emit ParametersChanged();
}
protected:
virtual void FootageSetEvent(Footage*) override;
@@ -87,6 +105,7 @@ private:
int height_;
bool premultiplied_alpha_;
QString colorspace_;
Interlacing interlacing_;
PixelFormat::Format format_;
@@ -94,6 +113,7 @@ private slots:
void ColorConfigChanged();
void DefaultColorSpaceChanged();
};
using ImageStreamPtr = std::shared_ptr<ImageStream>;