OpenShot Library | libopenshot  1.0.0
AudioVisualization.h
Go to the documentation of this file.
1 
9 // Copyright (c) 2008-2026 OpenShot Studios, LLC
10 //
11 // SPDX-License-Identifier: LGPL-3.0-or-later
12 
13 #ifndef OPENSHOT_AUDIO_VISUALIZATION_EFFECT_H
14 #define OPENSHOT_AUDIO_VISUALIZATION_EFFECT_H
15 
16 #include "../Color.h"
17 #include "../EffectBase.h"
18 #include "../Frame.h"
19 #include "../Json.h"
20 #include "../KeyFrame.h"
21 
22 #include <memory>
23 #include <string>
24 
25 namespace openshot
26 {
37  };
38 
44  };
45 
51  };
52 
59  };
60 
64  };
65 
67  {
68  private:
69  void init_effect_details();
70 
71  public:
73  int style;
85 
88 
89  std::shared_ptr<openshot::Frame> GetFrame(int64_t frame_number) override { return GetFrame(std::make_shared<openshot::Frame>(), frame_number); }
90  std::shared_ptr<openshot::Frame> GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number) override;
91 
92  std::string Json() const override;
93  void SetJson(const std::string value) override;
94  Json::Value JsonValue() const override;
95  void SetJsonValue(const Json::Value root) override;
96  std::string PropertiesJSON(int64_t requested_frame) const override;
97  };
98 }
99 
100 #endif
std::string PropertiesJSON(int64_t requested_frame) const override
std::string Json() const override
Generate JSON string of this object.
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
void SetJson(const std::string value) override
Load JSON string into this object.
std::shared_ptr< openshot::Frame > GetFrame(int64_t frame_number) override
This method is required for all derived classes of ClipBase, and returns a new openshot::Frame object...
Json::Value JsonValue() const override
Generate Json::Value for this object.
This class represents a color (used on the timeline and clips)
Definition: Color.h:27
This abstract class is the base class, used by all effects in libopenshot.
Definition: EffectBase.h:57
A Keyframe is a collection of Point instances, which is used to vary a number or property over time.
Definition: KeyFrame.h:53
This namespace is the default namespace for all code in the openshot library.
Definition: AnimatedCurve.h:24
AudioVisualizationChannelLayout
@ AUDIO_VISUALIZATION_CHANNEL_AUTO
@ AUDIO_VISUALIZATION_CHANNEL_SPLIT
@ AUDIO_VISUALIZATION_CHANNEL_COMBINED
@ AUDIO_VISUALIZATION_CHANNEL_OVERLAY
@ AUDIO_VISUALIZATION_BACKGROUND_TRANSPARENT
@ AUDIO_VISUALIZATION_BACKGROUND_SOLID
@ AUDIO_VISUALIZATION_BACKGROUND_FADE
@ AUDIO_VISUALIZATION_BACKGROUND_GRADIENT
@ AUDIO_VISUALIZATION_BACKGROUND_SOURCE
@ AUDIO_VISUALIZATION_COLOR_SEED
@ AUDIO_VISUALIZATION_COLOR_RAINBOW
@ AUDIO_VISUALIZATION_VU_METER
@ AUDIO_VISUALIZATION_BARS
@ AUDIO_VISUALIZATION_SPECTRUM
@ AUDIO_VISUALIZATION_WAVEFORM
@ AUDIO_VISUALIZATION_PHASE_SCOPE
@ AUDIO_VISUALIZATION_RADIAL_BARS
@ AUDIO_VISUALIZATION_PARTICLES
@ AUDIO_VISUALIZATION_FILLED_WAVEFORM
@ AUDIO_VISUALIZATION_RADIAL
@ AUDIO_VISUALIZATION_STYLE_MINIMAL
@ AUDIO_VISUALIZATION_STYLE_CLEAN
@ AUDIO_VISUALIZATION_STYLE_SOFT
@ AUDIO_VISUALIZATION_STYLE_NEON