OpenShot Library | libopenshot  0.3.3
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.3"
17 #define OPENSHOT_VERSION_FULL "0.3.3"
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 3
23 #define OPENSHOT_VERSION_SO 26
24 
25 // Useful dependency versioning / feature availability
26 #define QT_VERSION_STR "5.12.8"
27 #define AVCODEC_VERSION_STR "58.54.100"
28 #define AVFORMAT_VERSION_STR "58.29.100"
29 #define AVUTIL_VERSION_STR "56.31.100"
30 #define OPENCV_VERSION_STR "4.2.0"
31 #define HAVE_BABL 1
32 #define HAVE_IMAGEMAGICK 1
33 #define HAVE_RESVG 1
34 #define HAVE_OPENCV 1
35 #define FFMPEG_USE_SWRESAMPLE 1
36 #define APPIMAGE_BUILD 1
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
openshot
This namespace is the default namespace for all code in the openshot library.
Definition: Compressor.h:28
OPENSHOT_VERSION_SO
#define OPENSHOT_VERSION_SO
Definition: OpenShotVersion.h:23
OPENSHOT_VERSION_MINOR
#define OPENSHOT_VERSION_MINOR
Definition: OpenShotVersion.h:21
openshot::OpenShotVersion::So
static const int So
Build number.
Definition: OpenShotVersion.h:47
openshot::OpenShotVersion::ToString
static const std::string ToString()
Shared Object Number (incremented when API or ABI changes)
Definition: OpenShotVersion.h:50
OPENSHOT_VERSION_BUILD
#define OPENSHOT_VERSION_BUILD
Definition: OpenShotVersion.h:22
openshot::OpenShotVersion::Minor
static const int Minor
Major version number.
Definition: OpenShotVersion.h:45
openshot::OpenShotVersion::Build
static const int Build
Minor version number.
Definition: OpenShotVersion.h:46
openshot::GetVersion
OpenShotVersion GetVersion()
Get the current version number of libopenshot (major, minor, and build number)
Definition: OpenShotVersion.cpp:17
openshot::OpenShotVersion::Major
static const int Major
Definition: OpenShotVersion.h:44
openshot::OpenShotVersion
This struct holds version number information. Use the GetVersion() method to access the current versi...
Definition: OpenShotVersion.h:43
OPENSHOT_VERSION_MAJOR
#define OPENSHOT_VERSION_MAJOR
Definition: OpenShotVersion.h:20