Adding new spherical projection effect, to flatten out 360/180 videos into the viewport.

This commit is contained in:
Jonathan Thomas
2025-05-21 01:28:26 -05:00
parent 90931734a1
commit 9d33c45d84
4 changed files with 299 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include "EffectInfo.h"
#include "Effects.h"
#include "effects/SphericalProjection.h"
using namespace openshot;
@@ -67,6 +68,9 @@ EffectBase* EffectInfo::CreateEffect(std::string effect_type) {
else if (effect_type == "Shift")
return new Shift();
else if (effect_type == "SphericalProjection")
return new SphericalProjection();
else if (effect_type == "Wave")
return new Wave();
@@ -135,6 +139,7 @@ Json::Value EffectInfo::JsonValue() {
root.append(Pixelate().JsonInfo());
root.append(Saturation().JsonInfo());
root.append(Shift().JsonInfo());
root.append(SphericalProjection().JsonInfo());
root.append(Wave().JsonInfo());
/* Audio */
root.append(Noise().JsonInfo());