mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 19:59:59 +01:00
Source callbacks for Image Processing color correction
Added SourceCallback classes for brightness, contrast, saturation, etc. Added OSC interface to modify color corrections
This commit is contained in:
@@ -1347,6 +1347,21 @@ void SessionLoader::visit (SourceCallback &)
|
||||
{
|
||||
}
|
||||
|
||||
void SessionLoader::visit (ValueSourceCallback &c)
|
||||
{
|
||||
float v = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("value", &v);
|
||||
c.setValue(v);
|
||||
|
||||
float d = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("duration", &d);
|
||||
c.setDuration(d);
|
||||
|
||||
bool b = false;
|
||||
xmlCurrent_->QueryBoolAttribute("bidirectional", &b);
|
||||
c.setBidirectional(b);
|
||||
}
|
||||
|
||||
void SessionLoader::visit (Play &c)
|
||||
{
|
||||
bool p = true;
|
||||
|
||||
Reference in New Issue
Block a user