Jonathan Thomas
0419f2c2a7
Fixing some whitespace issues
2022-08-17 22:14:36 -05:00
Jonathan Thomas
02c256cda5
Fixed FrameMapper::info::video_length after calling FrameMapper::ChangeMapping(). Added some unit tests to verify.
2022-08-03 16:14:00 -05:00
Jonathan Thomas
d093004dcf
Fixing timeline tests. Recent FrameMapper bug fixes changed the mapping slightly, for certain tests
2022-07-21 10:07:34 -05:00
FeRD (Frank Dana)
6c5ffe1c1d
HACK: 'using namespace Catch' in v3 header
2022-06-18 04:45:50 -04:00
FeRD (Frank Dana)
190bd915be
Catch2v3: Use catch_all header
2022-06-18 04:21:58 -04:00
FeRD (Frank Dana)
677ed5f591
Tests: Switch test files to openshot_catch.h
2022-06-17 15:37:51 -04:00
FeRD (Frank Dana)
159d4fc629
tests/CMakeLists: Handle Catch2 v2 vs. v3
2022-06-17 15:37:51 -04:00
FeRD (Frank Dana)
6db5f14139
Update catch_main.cpp (only for Catch2v2)
2022-06-17 15:37:47 -04:00
FeRD (Frank Dana)
5ae7112494
Catch2: Header templates for tests
...
Since Catch2 v3.0+ uses a vasty different organization for headers
and targets, we have two templates for what the unit test code
will include. One or the other is configure by CMake as the file
openshot_catch.h in the build directory, and all of the unit test
sources can include that instead.
2022-06-17 15:37:15 -04:00
Jonathan Thomas
eced60545a
Update CVTracker unit test, since we've rounded bounding coordinates, we need to update the expected value in our unit test. Seems close enough to be a rounding error onw.
2022-05-13 14:55:58 -05:00
Jonathan Thomas
a8e9c95fea
Silence openshot::Frame audio when requesting a Clip::GetFrame() past the end of the Clip's Reader. For example, if a Clip has 1000 frames, and the user requests frame 1001, we will return the last cached openshot::Frame object, but we don't want to repeat the audio samples (causing a stutter). Any frame past the end of the reader, should always silence the audio samples. Also, fixed a few invalid comments, and added a Unit test.
2022-03-02 16:24:09 -06:00
Jonathan Thomas
dec6b04442
Merge pull request #771 from ferdnyc/move-magick-code
...
Move ImageMagick code out of Frame class
2021-11-11 14:15:21 -06:00
Frank Dana
0c1e9d0700
tests/Fraction: Approx() floating-point for 32bit ( #777 )
2021-11-11 08:20:07 -05:00
Frank Dana
f8a73791a1
Merge branch 'develop' into move-magick-code
2021-11-10 23:26:27 -05:00
Jonathan Thomas
5adf45ab90
Merge pull request #768 from ferdnyc/fraction-operators
...
Fraction: Operators for direct autoconverting multiplication and division, in both C++ and Python
2021-11-10 22:20:11 -06:00
Jonathan Thomas
dab4568f33
Merge pull request #730 from ferdnyc/chromakey-unit
...
ChromaKey: Minimal unit testing
2021-11-10 22:15:02 -06:00
FeRD (Frank Dana)
59108504e3
Code changes for compatibility with JUCE 6.x
...
- Replace all juce::CriticalSection with std::recursive_mutex
- Replace all juce::AudioSampleBuffer with juce::AudioBuffer<float>
- Eliminate implicit reliance on 'using namespace juce;'
- Replace OpenShotAudio.h includes with targeted juce modules
2021-11-09 06:22:25 -05:00
FeRD (Frank Dana)
5662f15321
tests/QtImageReader: Fix indents
2021-11-03 06:57:31 -04:00
FeRD (Frank Dana)
cff2109316
tests/ImageWriter: Increase coverage
2021-11-03 06:57:14 -04:00
FeRD (Frank Dana)
83133a80a4
tests/ChromaKey: Add license indentifiers
2021-11-02 14:04:14 -04:00
Frank Dana
be20f9b343
Merge branch 'develop' into chromakey-unit
2021-11-02 14:02:45 -04:00
Frank Dana
2a0076ca8f
tests/Crop: Add license metadata ( #769 )
2021-10-31 10:04:51 -04:00
FeRD (Frank Dana)
eab4b3e469
Merge branch 'crop-license-tag' into fraction-operators
2021-10-31 09:33:57 -04:00
FeRD (Frank Dana)
a8ec79f64a
tests/Crop: Add license metadata
2021-10-31 09:31:42 -04:00
FeRD (Frank Dana)
1af4d0f8cf
Fraction: Unit test / and *
2021-10-31 07:51:55 -04:00