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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user