setting ocio config specific to project
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user