work on internal color management

This commit is contained in:
itsmattkc
2019-09-28 01:38:15 +10:00
parent 4c90405feb
commit d2dc0d2823
24 changed files with 983 additions and 175 deletions
+12 -1
View File
@@ -24,7 +24,8 @@
Stream::Stream() :
footage_(nullptr),
type_(kUnknown)
type_(kUnknown),
enabled_(true)
{
}
@@ -88,6 +89,16 @@ void Stream::set_duration(const int64_t &duration)
duration_ = duration;
}
bool Stream::enabled()
{
return enabled_;
}
void Stream::set_enabled(bool e)
{
enabled_ = e;
}
QIcon Stream::IconFromType(const Stream::Type &type)
{
switch (type) {
+5
View File
@@ -78,6 +78,9 @@ public:
const int64_t& duration() const;
void set_duration(const int64_t& duration);
bool enabled();
void set_enabled(bool e);
static QIcon IconFromType(const Type& type);
private:
@@ -91,6 +94,8 @@ private:
Type type_;
bool enabled_;
};
using StreamPtr = std::shared_ptr<Stream>;