OpenShot Library | libopenshot  0.3.0
OpenShotVersion.h
Go to the documentation of this file.
1 
9 // Copyright (c) 2008-2019 OpenShot Studios, LLC
10 //
11 // SPDX-License-Identifier: LGPL-3.0-or-later
12 
13 #ifndef OPENSHOT_VERSION_H
14 #define OPENSHOT_VERSION_H
15 
16 #define OPENSHOT_VERSION_ALL "0.3.0"
17 #define OPENSHOT_VERSION_FULL "0.3.0"
18 #define OPENSHOT_VERSION_MAJOR_MINOR "0.3"
19 
20 #define OPENSHOT_VERSION_MAJOR 0
21 #define OPENSHOT_VERSION_MINOR 3
22 #define OPENSHOT_VERSION_BUILD 0
23 #define OPENSHOT_VERSION_SO 23
24 
25 // Useful dependency versioning / feature availability
26 #define QT_VERSION_STR "5.15.3"
27 #define AVCODEC_VERSION_STR "58.134.100"
28 #define AVFORMAT_VERSION_STR "58.76.100"
29 #define AVUTIL_VERSION_STR "56.70.100"
30 #define OPENCV_VERSION_STR "4.5.4"
31 #define HAVE_BABL 1
32 #define HAVE_IMAGEMAGICK 1
33 #define HAVE_RESVG 0
34 #define HAVE_OPENCV 1
35 #define FFMPEG_USE_SWRESAMPLE 1
36 #define APPIMAGE_BUILD 0
37 
38 #include <sstream>
39 
40 namespace openshot
41 {
43  struct OpenShotVersion {
44  static const int Major = OPENSHOT_VERSION_MAJOR;
45  static const int Minor = OPENSHOT_VERSION_MINOR;
46  static const int Build = OPENSHOT_VERSION_BUILD;
47  static const int So = OPENSHOT_VERSION_SO;
48 
50  inline static const std::string ToString() {
51  std::stringstream version_string;
52  version_string << Major << "." << Minor << "." << Build;
53  return version_string.str();
54  }
55  };
56 
57  static const openshot::OpenShotVersion Version;
58 
61 }
62 
63 #endif // OPENSHOT_VERSION_H
#define OPENSHOT_VERSION_SO
#define OPENSHOT_VERSION_BUILD
#define OPENSHOT_VERSION_MINOR
#define OPENSHOT_VERSION_MAJOR
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:29
OpenShotVersion GetVersion()
Get the current version number of libopenshot (major, minor, and build number)
This struct holds version number information. Use the GetVersion() method to access the current versi...
static const int Minor
Major version number.
static const int So
Build number.
static const std::string ToString()
Shared Object Number (incremented when API or ABI changes)
static const int Build
Minor version number.