Added 2 new effects: Brightness and Contrast, and Saturation. Both effects implement keyframe curves, and can be animated.

This commit is contained in:
Jonathan Thomas
2015-08-16 22:58:07 -05:00
parent 8fa2ab71c5
commit 45f31bbabf
9 changed files with 622 additions and 1 deletions

View File

@@ -718,7 +718,10 @@ void Clip::SetJsonValue(Json::Value root) {
if (!existing_effect["type"].isNull())
// Init the matching effect object
if (existing_effect["type"].asString() == "ChromaKey")
if (existing_effect["type"].asString() == "Brightness")
e = new Brightness();
else if (existing_effect["type"].asString() == "ChromaKey")
e = new ChromaKey();
else if (existing_effect["type"].asString() == "Deinterlace")
@@ -730,6 +733,9 @@ void Clip::SetJsonValue(Json::Value root) {
else if (existing_effect["type"].asString() == "Negate")
e = new Negate();
else if (existing_effect["type"].asString() == "Saturation")
e = new Saturation();
// Load Json into Effect
e->SetJsonValue(existing_effect);