Commit Graph

1105 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
5c688f1edf Add QT_VERSION_STR define to OpenShotVersion.h
The CMake process will pick up Qt's Qt5Core_VERSION_STRING and
stick it in a cache variable (with forced updating each run),
and a new `#define` in the header exports it to the library and
to the Python bindings so that it can be queried at runtime.
2020-05-07 11:56:44 -04:00
Frank Dana
6336f30ee3 Various: Remove unused variables (#467)
Several data members and local variables were flagged by static
analysis tools as never being used anywhere in the code.
2020-04-22 02:02:55 -04:00
FeRD (Frank Dana)
9d261f6568 CMake: Rename, modernize Findjsoncpp.cmake
- Rename to match package naming used elsewhere (official configs)
- Add IMPORTED target creation to the Find module, along with
  version number detection
- Switch to lowercase variable forms (e.g. jsoncpp_FOUND)
2020-04-17 06:54:16 -04:00
Frank Dana
12dd4d150a Merge pull request #448 from SuslikV/ffmpeg-like-fps
Change frame rate detection
2020-03-27 10:29:04 -04:00
Frank Dana
c38c55fbfa Merge pull request #466 from SuslikV/float-to-int16
Fix distortion during mix of audio
2020-03-26 19:51:32 -04:00
Frank Dana
799e43a0a2 Merge branch 'develop' into zmqfix 2020-03-26 07:34:58 -04:00
SuslikV
455b6e92bf Fix float to int16_t conversion in resampler
The backward conversion int16_t to float in libopenshot has range
(1.0; -1.0], thus conversion -1.0f to int16_t should be secured.

Float values can exceed the (1.0; -1.0) range. This can cause
distortion in audio instead of limiting values  at max/min for the
int16_t.
2020-03-26 10:17:22 +02:00
Frank Dana
5e899bf207 Add SWIG/Ruby compatibility check & warning (#480) 2020-03-25 23:07:03 -04:00
Chiller Dragon
0a5dfd93ad Fix zmq version check (#478) 2020-03-25 20:58:11 -04:00
FeRD (Frank Dana)
54f5fea201 ZeroMQ's std::string support is too new 2020-03-25 11:42:19 -04:00
Frank Dana
4fad197fbe Add version gating for Zmq and Qt deprecations (#470)
* ZmqLogger: Avoid deprecated send() in later ZMQ
* QtImageReader: byteCount() deprecated in QT 5.10+
2020-03-23 08:16:02 -04:00
Frank Dana
94e9ad3ead bindings: Remove relative header paths (#469)
* bindings: Remove relative header paths
  Use the include paths set on the command line the way
  they're supposed to be used.
* Also remove some redundant include paths
* Fix SWIG include dirs
2020-03-23 08:13:46 -04:00
Frank Dana
adb8716743 Merge pull request #458 from OpenShot/binding-paths
bindings: Relative paths, overridable
2020-03-23 06:00:18 -04:00
Frank Dana
2684015245 python/CMakeLists: Lowercase commands, indents 2020-03-23 05:30:32 -04:00
Frank Dana
bb20a9b369 ruby/CMakeLists: Lowercase commands 2020-03-23 05:26:12 -04:00
SuslikV
dff42011ff Restore default gain when adding audio
Incorrect conversion of float to int16_t caused distortion that was
mistakenly perceived as clipping. Now because the convertion was fixed,
there is no more sense to reduce input gain of the source.
2020-03-16 14:49:41 +02:00
SuslikV
c28a8bf4ed Fix float to int16_t conversion
Float values after mix or gain applied can exceed the (1.0; -1.0)
range. This caused distortion in audio instead of limiting values
at max.
2020-03-16 14:41:49 +02:00
Frank Dana
816118b6f6 CMake: Use GNUInstallDirs for install paths (#457) 2020-03-12 09:35:00 -04:00
Jonathan Thomas
4ea362380a Adding support for proper absolute/canonical path detection and replacement 2020-03-10 17:35:21 -05:00
Jonathan Thomas
8b3167a99a Adding ability for a Clip to auto-detect and instantiate a Timeline Reader from the *.osp file type. Added new Timeline constructor, to auto load UTF-8 JSON file, and regex convert all paths to absolute. Fixed a dead lock issue when a Timeline loads another Timeline. 2020-03-09 16:49:06 -05:00
FeRD (Frank Dana)
20fffc404c bindings: Relative paths, overridable 2020-03-09 09:10:55 -04:00
Jonathan Thomas
4d7b4072c3 Fixing abs -> fabs regression. Not sure how this worked before. 2020-03-02 23:50:10 -06:00
Jonathan Thomas
c7fe363f2b Fix ColorShift classname in EffectInfo::CreateEffect 2020-02-29 19:21:43 -06:00
Jonathan Thomas
5da706dc23 Bump dependency to OpenShotAudio to 0.2.0 2020-02-28 17:16:48 -06:00
Jonathan Thomas
4f591c7b94 Merge pull request #396 from ferdnyc/json-parsing
Behind-the-scenes code tidying for Json data handling
2020-02-27 15:32:05 -06:00