You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
improved the stabilize effect integration
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
*/
|
||||
|
||||
#include "../include/EffectInfo.h"
|
||||
// #include "../include/Clip.h"
|
||||
|
||||
|
||||
using namespace openshot;
|
||||
@@ -86,9 +85,24 @@ EffectBase* EffectInfo::CreateEffect(std::string effect_type) {
|
||||
|
||||
else if (effect_type == "Wave")
|
||||
return new Wave();
|
||||
|
||||
else if(effect_type == "Stabilizer")
|
||||
return new Stabilizer();
|
||||
|
||||
else if(effect_type == "Tracker")
|
||||
return new Tracker();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
EffectBase* EffectInfo::CreateEffect(std::string effect_type, std::string pb_data_path){
|
||||
if(effect_type == "Stabilizer")
|
||||
return new Stabilizer(pb_data_path);
|
||||
|
||||
else if(effect_type == "Tracker")
|
||||
return new Tracker();
|
||||
}
|
||||
|
||||
// Generate Json::Value for this object
|
||||
Json::Value EffectInfo::JsonValue() {
|
||||
|
||||
@@ -110,6 +124,8 @@ Json::Value EffectInfo::JsonValue() {
|
||||
root.append(Saturation().JsonInfo());
|
||||
root.append(Shift().JsonInfo());
|
||||
root.append(Wave().JsonInfo());
|
||||
root.append(Stabilizer().JsonInfo());
|
||||
root.append(Tracker().JsonInfo());
|
||||
|
||||
// return JsonValue
|
||||
return root;
|
||||
|
||||
Reference in New Issue
Block a user