Skip to content

Commit

Permalink
Merge pull request #583 from OpenShot/caption-effect
Browse files Browse the repository at this point in the history
New "Caption" Effect (Supports VTT and Subrip formats)
  • Loading branch information
jonoomph committed Oct 29, 2020
2 parents 8a331f6 + a3c20c8 commit 09df9e6
Show file tree
Hide file tree
Showing 5 changed files with 566 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -35,7 +35,7 @@ if (POLICY CMP0057)
endif()

############### PROFILING #################
#set(PROFILER "/usr/lib/libprofiler.so.0.3.2")
#set(PROFILER "/usr/lib//usr/lib/libprofiler.so.0.4.5")
#set(PROFILER "/usr/lib/libtcmalloc.so.4")

if(CMAKE_VERSION VERSION_LESS 3.3)
Expand Down Expand Up @@ -104,6 +104,7 @@ set(EFFECTS_SOURCES
effects/Bars.cpp
effects/Blur.cpp
effects/Brightness.cpp
effects/Caption.cpp
effects/ChromaKey.cpp
effects/ColorShift.cpp
effects/Crop.cpp
Expand Down
4 changes: 4 additions & 0 deletions src/EffectInfo.cpp
Expand Up @@ -52,6 +52,9 @@ EffectBase* EffectInfo::CreateEffect(std::string effect_type) {
else if (effect_type == "Brightness")
return new Brightness();

else if (effect_type == "Caption")
return new Caption();

else if (effect_type == "ChromaKey")
return new ChromaKey();

Expand Down Expand Up @@ -97,6 +100,7 @@ Json::Value EffectInfo::JsonValue() {
root.append(Bars().JsonInfo());
root.append(Blur().JsonInfo());
root.append(Brightness().JsonInfo());
root.append(Caption().JsonInfo());
root.append(ChromaKey().JsonInfo());
root.append(ColorShift().JsonInfo());
root.append(Crop().JsonInfo());
Expand Down
1 change: 1 addition & 0 deletions src/Effects.h
Expand Up @@ -35,6 +35,7 @@
#include "effects/Bars.h"
#include "effects/Blur.h"
#include "effects/Brightness.h"
#include "effects/Caption.h"
#include "effects/ChromaKey.h"
#include "effects/ColorShift.h"
#include "effects/Crop.h"
Expand Down

0 comments on commit 09df9e6

Please sign in to comment.