Commit Graph

232 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
d54871afd2 FrameMapper_tests: Add more coverage 2020-11-03 14:22:02 -05:00
Frank Dana
98d6eb4f8c FrameMapper_Tests: Correct for reader duration 2020-11-03 13:46:21 -05:00
FeRD (Frank Dana)
68f54bdb9a FrameMapper_Tests: Use SUITE, create no-op test 2020-11-03 08:10:44 -05:00
Jonathan Thomas
e556d0fded Added 2 new unit tests for Clip's with a Timeline associated with them, and FFmpegReaders with a Clip/Timeline associated with them. 2020-10-23 01:35:46 -05:00
Jonathan Thomas
bba126019b Added 2 FrameMapper unit tests which verify resampled audio data has no gaps/pops, and offset FrameMapper clips don't use the wrong # of audio samples 2020-10-23 00:02:52 -05:00
FeRD (Frank Dana)
a1e44edad4 Merge branch 'develop' into clip-refactor-keyframes 2020-10-19 16:28:49 -04:00
Jonathan Thomas
2f4aba450c Fixing some cpp_test complaints 2020-10-19 16:22:27 -04:00
Jonathan Thomas
ab4916247b Replacing audio fix implementation with ParentClip(), to access clip start and position (if any) 2020-10-19 16:05:01 -04:00
Brenno
a4109419ac Implemented position remapper inside FrameMapper to fix audio noise when exporting to different fps
The FrameMapper class now receives the updated clip position and returns the correct amount of samples for a given frame number
2020-10-19 16:05:01 -04:00
FeRD (Frank Dana)
9050cc72b2 Merge branch 'develop' into new-header-move2 2020-10-19 15:12:28 -04:00
FeRD (Frank Dana)
1ae52808c7 CMake: Add target for ImageMagick dependency
- Parameters assigned to ImageMagick::Magick++ will now follow
  the 'openshot' shared-library target wherever it's linked, even in
  build subdirectories that aren't children or siblings of the
  location where the target was created.
- Removed the redundant code duplicating `find_package(ImageMagick)`
  checks. Multiple dependency scans have only been necessary as a
  workaround to overcome CMake variables' restricted scope.
  Targets do not share that limitation.
2020-10-18 10:55:59 -04:00
FeRD (Frank Dana)
aff469535f ImageReader/Writer.h: Goose coverage to 100% 2020-10-18 10:22:34 -04:00
FeRD (Frank Dana)
10d994dce4 tests/CmakeLists, Doxyfile.in: Update paths 2020-10-18 07:49:24 -04:00
FeRD (Frank Dana)
fcebbead83 tests: Update include paths 2020-10-18 07:47:36 -04:00
FeRD (Frank Dana)
630e7ac4df Use new OpenShot::Audio target in CMakeLists.txt
FindOpenShotAudio.cmake: Enhance with targets

- Also, migrate as much config as possible from CMakeLists.txt files
  to properties of IMPORTED OpenShot::Audio target (including platform-
  specific configs)
2020-10-18 07:47:36 -04:00
FeRD (Frank Dana)
6e4476dc6c Tests: Increase coverage for ImageReader/Writer 2020-10-17 06:21:06 -04:00
FeRD (Frank Dana)
965de9df5b Add ENABLE_MAGICK CMake option (default ON) 2020-10-03 20:32:58 -04:00
FeRD (Frank Dana)
6d1e22f545 Timeline_Tests: Unit tests for new methods
Add GetMaxTime tests
2020-09-02 01:04:36 -04:00
Frank Dana
f71051e8f1 Tests: Don't enable HW accel as side-effect (#557)
The Settings test attempts to test the class by changing settings
variables and reading them back again. Problem is, that affects
the REST of the unit tests. So instead of enabling HW accel and
causing crashes, we'll diddle something innocuous, like OMP_THREADS.
2020-08-20 21:13:42 -04:00
Frank Dana
2520996d85 Merge pull request #510 from ferdnyc/store-qt-version
Add version/feature #defines to OpenShotVersion.h
2020-07-08 17:28:18 -04:00
Jonathan Thomas
6e6b60fa22 Experimental ABI fix to deal with '__cxx11' (take 2) 2020-07-06 02:33:26 -05:00
FeRD (Frank Dana)
8af624fc4e Add an APPIMAGE_BUILD option to libopenshot
- Defaults OFF, must be enabled during build generation
- Set (cmake -DAPPIMAGE_BUILD=1) by GitLab linux builder
- Stored as a symbol in the library (via OpenShotVersion.h #defines)
- Also visible in Python module (`if openshot.APPIMAGE_BUILD: pass`)

Also, use CMAKE_SWIG_FLAGS properly (as a list), fix some indentation
2020-06-11 17:40:53 -04:00
Jonathan Thomas
8b12c1fa21 Replacing WriteFrame() method with custom constructor which can accept a CacheBase* pointer, for instances where a DummyReader needs some specific test Frame objects 2020-06-06 17:25:45 -05:00
Jonathan Thomas
d29027ae30 Added an additional unittest for DummyReader (for invalid frame) 2020-06-06 02:03:27 -05:00
Jonathan Thomas
7831cfe912 Adding some new functionality and documentation to DummyReader. Adding the ability to add test frames, with fake image and audio data. This will can be used in unittests, and will soon be used to verify some new audio improvements (coming soon). 2020-06-06 01:55:52 -05:00