You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Added 2 new effects: Brightness and Contrast, and Saturation. Both effects implement keyframe curves, and can be animated.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user