correctly identify openimageio data as alpha associated

Also added note for potential concern regarding alpha association.
This commit is contained in:
itsmattkc
2019-12-09 23:45:16 +11:00
parent cc8aeea672
commit 3f76f4cb00
+6
View File
@@ -55,6 +55,11 @@ bool OIIODecoder::Probe(Footage *f)
image_stream->set_width(spec.width);
image_stream->set_height(spec.height);
// OIIO automatically premultiplies alpha
// FIXME: We usually disassociate the alpha for the color management later, for 8-bit images this likely reduces the
// fidelity?
image_stream->set_premultiplied_alpha(true);
f->add_stream(image_stream);
// If we're here, we have a successful image open
@@ -100,6 +105,7 @@ bool OIIODecoder::Open()
return true;
}
#include <QFile>
FramePtr OIIODecoder::RetrieveVideo(const rational &timecode)
{
if (!open_ && !Open()) {