Skip to content

Commit 67e2ae4

Browse files
committed
Merge branch 'develop' into cmake-owns-version
# Conflicts: # CMakeLists.txt
2 parents 376170d + 1e00618 commit 67e2ae4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+110
-66
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ matrix:
1616
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
1717
- make VERBOSE=1
1818
- make os_test
19-
19+
- make install DESTDIR=dist/
20+
2021
- language: cpp
2122
name: "FFmpeg 3"
2223
before_script:
@@ -31,7 +32,8 @@ matrix:
3132
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
3233
- make VERBOSE=1
3334
- make os_test
34-
35+
- make install DESTDIR=dist/
36+
3537
- language: cpp
3638
name: "FFmpeg 4"
3739
before_script:
@@ -48,3 +50,4 @@ matrix:
4850
- cmake -D"CMAKE_BUILD_TYPE:STRING=Debug" ../
4951
- make VERBOSE=1
5052
- make os_test
53+
- make install DESTDIR=dist/

include/CacheBase.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ namespace openshot {
6363
/// @param max_bytes The maximum bytes to allow in the cache. Once exceeded, the cache will purge the oldest frames.
6464
CacheBase(int64_t max_bytes);
6565

66-
virtual ~CacheBase();
67-
6866
/// @brief Add a Frame to the cache
6967
/// @param frame The openshot::Frame object needing to be cached.
7068
virtual void Add(std::shared_ptr<Frame> frame) = 0;
@@ -114,6 +112,7 @@ namespace openshot {
114112
virtual void SetJson(string value) = 0; ///< Load JSON string into this object
115113
virtual Json::Value JsonValue() = 0; ///< Generate Json::JsonValue for this object
116114
virtual void SetJsonValue(Json::Value root) = 0; ///< Load Json::JsonValue into this object
115+
virtual ~CacheBase() = default;
117116

118117
};
119118

include/Clip.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ namespace openshot {
148148
void reverse_buffer(juce::AudioSampleBuffer* buffer);
149149

150150
public:
151-
GravityType gravity; ///< The gravity of a clip determines where it snaps to it's parent
152-
ScaleType scale; ///< The scale determines how a clip should be resized to fit it's parent
151+
GravityType gravity; ///< The gravity of a clip determines where it snaps to its parent
152+
ScaleType scale; ///< The scale determines how a clip should be resized to fit its parent
153153
AnchorType anchor; ///< The anchor determines what parent a clip should snap to
154154
FrameDisplayType display; ///< The format to display the frame number (if any)
155155
VolumeMixType mixing; ///< What strategy should be followed when mixing audio with other clips

include/ClipBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ namespace openshot {
7272

7373
/// Constructor for the base clip
7474
ClipBase() { };
75-
virtual ~ClipBase();
7675

7776
// Compare a clip using the Position() property
7877
bool operator< ( ClipBase& a) { return (Position() < a.Position()); }
@@ -105,6 +104,7 @@ namespace openshot {
105104
/// of all properties at any time)
106105
virtual string PropertiesJSON(int64_t requested_frame) = 0;
107106

107+
virtual ~ClipBase() = default;
108108
};
109109

110110

include/EffectBase.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace openshot
8585
/// modified openshot::Frame object
8686
///
8787
/// The frame object is passed into this method, and a frame_number is passed in which
88-
/// tells the effect which settings to use from it's keyframes (starting at 1).
88+
/// tells the effect which settings to use from its keyframes (starting at 1).
8989
///
9090
/// @returns The modified openshot::Frame object
9191
/// @param frame The frame object that needs the effect applied to it
@@ -108,6 +108,7 @@ namespace openshot
108108

109109
/// Set the order that this effect should be executed.
110110
void Order(int new_order) { order = new_order; }
111+
virtual ~EffectBase() = default;
111112
};
112113

113114
}

include/FFmpegReader.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ namespace openshot {
162162
/// Check the current seek position and determine if we need to seek again
163163
bool CheckSeek(bool is_video);
164164

165-
/// Check if a frame is missing and attempt to replace it's frame image (and
165+
/// Check if a frame is missing and attempt to replace its frame image (and
166166
bool CheckMissingFrame(int64_t requested_frame);
167167

168168
/// Check the working queue, and move finished frames to the finished queue
@@ -210,10 +210,10 @@ namespace openshot {
210210
/// Read the stream until we find the requested Frame
211211
std::shared_ptr<Frame> ReadStream(int64_t requested_frame);
212212

213-
/// Remove AVFrame from cache (and deallocate it's memory)
213+
/// Remove AVFrame from cache (and deallocate its memory)
214214
void RemoveAVFrame(AVFrame *);
215215

216-
/// Remove AVPacket from cache (and deallocate it's memory)
216+
/// Remove AVPacket from cache (and deallocate its memory)
217217
void RemoveAVPacket(AVPacket *);
218218

219219
/// Seek to a specific Frame. This is not always frame accurate, it's more of an estimation on many codecs.
@@ -240,7 +240,7 @@ namespace openshot {
240240
/// frame 1, or it throws one of the following exceptions.
241241
FFmpegReader(string path);
242242

243-
/// Constructor for FFmpegReader. This only opens the media file to inspect it's properties
243+
/// Constructor for FFmpegReader. This only opens the media file to inspect its properties
244244
/// if inspect_reader=true. When not inspecting the media file, it's much faster, and useful
245245
/// when you are inflating the object using JSON after instantiating it.
246246
FFmpegReader(string path, bool inspect_reader);

include/FFmpegWriter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace openshot {
8484
* FFmpegWriter w("/home/jonathan/NewVideo.webm");
8585
*
8686
* // Set options
87-
* w.SetAudioOptions(true, "libvorbis", 44100, 2, 128000); // Sample Rate: 44100, Channels: 2, Bitrate: 128000
87+
* w.SetAudioOptions(true, "libvorbis", 44100, 2, ChannelLayout::LAYOUT_STEREO, 128000); // Sample Rate: 44100, Channels: 2, Bitrate: 128000
8888
* w.SetVideoOptions(true, "libvpx", openshot::Fraction(24,1), 720, 480, openshot::Fraction(1,1), false, false, 300000); // FPS: 24, Size: 720x480, Pixel Ratio: 1/1, Bitrate: 300000
8989
*
9090
* // Open the writer
@@ -111,7 +111,7 @@ namespace openshot {
111111
* FFmpegWriter w("/home/jonathan/NewVideo.webm");
112112
*
113113
* // Set options
114-
* w.SetAudioOptions(true, "libvorbis", 44100, 2, 128000); // Sample Rate: 44100, Channels: 2, Bitrate: 128000
114+
* w.SetAudioOptions(true, "libvorbis", 44100, 2, ChannelLayout::LAYOUT_STEREO, 128000); // Sample Rate: 44100, Channels: 2, Bitrate: 128000
115115
* w.SetVideoOptions(true, "libvpx", openshot::Fraction(24,1), 720, 480, openshot::Fraction(1,1), false, false, 300000); // FPS: 24, Size: 720x480, Pixel Ratio: 1/1, Bitrate: 300000
116116
*
117117
* // Prepare Streams (Optional method that must be called before any SetOption calls)

include/Frame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ namespace openshot
200200
/// Clean up buffer after QImage is deleted
201201
static void cleanUpBuffer(void *info);
202202

203-
/// Clear the waveform image (and deallocate it's memory)
203+
/// Clear the waveform image (and deallocate its memory)
204204
void ClearWaveform();
205205

206206
/// Copy data and pointers from another Frame instance

include/ImageReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace openshot
8383
/// frame 1, or it throws one of the following exceptions.
8484
ImageReader(string path);
8585

86-
/// Constructor for ImageReader. This only opens the media file to inspect it's properties
86+
/// Constructor for ImageReader. This only opens the media file to inspect its properties
8787
/// if inspect_reader=true. When not inspecting the media file, it's much faster, and useful
8888
/// when you are inflating the object using JSON after instantiating it.
8989
ImageReader(string path, bool inspect_reader);

include/ImageWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace openshot
130130
/// @param height Height in pixels of image
131131
/// @param quality Quality of image (0 to 100, 70 is default)
132132
/// @param loops Number of times to repeat the image (used on certain multi-frame image formats, such as GIF)
133-
/// @param combine Combine frames into a single image (if possible), or save each frame as it's own image
133+
/// @param combine Combine frames into a single image (if possible), or save each frame as its own image
134134
void SetVideoOptions(string format, Fraction fps, int width, int height,
135135
int quality, int loops, bool combine);
136136

0 commit comments

Comments
 (0)