oiiodecoder: implemented rudimentary image sequence support

This commit is contained in:
itsmattkc
2020-03-02 14:06:44 +11:00
parent 987a6557c4
commit de5955b403
5 changed files with 229 additions and 101 deletions
+10 -2
View File
@@ -29,6 +29,7 @@
class OIIODecoder : public Decoder
{
Q_OBJECT
public:
OIIODecoder();
@@ -51,10 +52,15 @@ private:
#else
std::unique_ptr<OIIO::ImageInput> image_;
#endif
static bool FileTypeIsSupported(const QString& fn);
int width_;
static int GetImageSequenceDigitCount(const QString& filename);
int height_;
static QString TransformImageSequenceFileName(const QString& filename, const int64_t& number);
bool OpenImageHandler(const QString& fn);
void CloseImageHandle();
PixelFormat::Format pix_fmt_;
@@ -62,6 +68,8 @@ private:
bool is_rgba_;
bool is_sequence_;
OIIO::ImageBuf* buffer_;
static QStringList supported_formats_;