allow setting of pixel format/ocio method/sample format in preferences

Implementation isn't perfect yet, viewer/renderer doesn't update yet when
the preference is changed so a sequence needs to be re-opened for the change to
take effect.
This commit is contained in:
itsmattkc
2020-01-18 03:37:36 +11:00
parent e6b45c75c3
commit 1101b58ee8
30 changed files with 421 additions and 380 deletions
+26 -9
View File
@@ -21,17 +21,34 @@
#ifndef SAMPLEFORMAT_H
#define SAMPLEFORMAT_H
enum SampleFormat {
SAMPLE_FMT_INVALID = -1,
#include <QObject>
SAMPLE_FMT_U8,
SAMPLE_FMT_S16,
SAMPLE_FMT_S32,
SAMPLE_FMT_S64,
SAMPLE_FMT_FLT,
SAMPLE_FMT_DBL,
#include "render/rendermodes.h"
class SampleFormat : public QObject
{
Q_OBJECT
public:
SampleFormat() = default;
enum Format {
SAMPLE_FMT_INVALID = -1,
SAMPLE_FMT_U8,
SAMPLE_FMT_S16,
SAMPLE_FMT_S32,
SAMPLE_FMT_S64,
SAMPLE_FMT_FLT,
SAMPLE_FMT_DBL,
SAMPLE_FMT_COUNT
};
static QString GetSampleFormatName(const Format& f);
static Format GetConfiguredFormatForMode(RenderMode::Mode mode);
static void SetConfiguredFormatForMode(RenderMode::Mode mode, Format format);
SAMPLE_FMT_COUNT
};
#endif // SAMPLEFORMAT_H