setting ocio config specific to project

This commit is contained in:
itsmattkc
2019-09-30 05:40:14 +10:00
parent 9a78f5ce86
commit 45bfad2b20
13 changed files with 188 additions and 31 deletions
+2 -1
View File
@@ -26,8 +26,9 @@
/**
* @brief A Stream derivative containing video-specific information
*/
class ImageStream : public Stream, public QObject
class ImageStream : public Stream
{
Q_OBJECT
public:
ImageStream();
+2 -1
View File
@@ -38,8 +38,9 @@ class Footage;
* The Stream class is fairly simple and is intended to be subclassed for data that pertains specifically to one
* Stream::Type. \see VideoStream and \see AudioStream.
*/
class Stream
class Stream : public QObject
{
Q_OBJECT
public:
enum Type {
kUnknown,
+20
View File
@@ -39,3 +39,23 @@ void Project::set_name(const QString &s)
{
name_ = s;
}
const QString &Project::ocio_config()
{
return ocio_config_;
}
void Project::set_ocio_config(const QString &ocio_config)
{
ocio_config_ = ocio_config;
}
const QString &Project::default_input_colorspace()
{
return default_input_colorspace_;
}
void Project::set_default_input_colorspace(const QString &colorspace)
{
default_input_colorspace_ = colorspace;
}
+9
View File
@@ -48,10 +48,19 @@ public:
const QString& name();
void set_name(const QString& s);
const QString& ocio_config();
void set_ocio_config(const QString& ocio_config);
const QString& default_input_colorspace();
void set_default_input_colorspace(const QString& colorspace);
private:
Folder root_;
QString name_;
QString ocio_config_;
QString default_input_colorspace_;
};
using ProjectPtr = std::shared_ptr<Project>;