504 Commits

Author SHA1 Message Date
Jonathan Thomas
86ebbb8ff9 Merge branch 'develop' into sharpen-effect
# Conflicts:
#	src/EffectInfo.cpp
#	tests/CMakeLists.txt
2025-05-23 22:26:35 -05:00
Jonathan Thomas
91588fa554 Adding licensing and copyright to new sharpen effect files 2025-05-23 16:50:04 -05:00
Jonathan Thomas
1615f974b3 Fixing all unit tests and expanding them for Sharpen effect 2025-05-23 16:11:17 -05:00
Jonathan Thomas
52988ee5b3 Initial unit tests for Sharpen effect, still failing though. 2025-05-23 15:09:02 -05:00
Jonathan Thomas
ec890fe74d Adding unit tests for spherical project effect, using 2 PNG assets 2025-05-21 18:25:22 -05:00
Jonathan Thomas
90931734a1 Improving unit tests for spherical to actually assert things and verify everything worked. 2025-05-20 20:48:25 -05:00
Jonathan Thomas
7fb8308cc7 Adding spherical support to FFmpegWriter and FFmpegReader, so they can optionally write the correct side data for Spacial and equirectangular 360 videos. 2025-05-20 20:21:32 -05:00
Jonathan Thomas
88b7f8181e Updating git ignore rules, adding new 360 spherical property to profiles, and new unit tests for Profiles. 2025-05-20 16:07:24 -05:00
Jonathan Thomas
7075534af5 Convert RGBA args to use a Color keyframe instead in the Outline effect. Simpler and better supported in the OpenShot UI. 2025-03-14 17:53:35 -05:00
Jonathan Thomas
5cd91a9c97 Fixing a RGB to BGR color issue with the Outline effect, and adding in unit tests for the Outline effect. 2025-03-12 16:52:15 -05:00
Jonathan Thomas
5977483142 Fixing GetMinFrame() function to correctly + 1, since our starting frames in OpenShot always begin with 1 (not 0) 2024-12-09 23:30:46 -06:00
Jonathan Thomas
6998177d6a Adding new Save() method to Profile class, and fix a bug with "description" getting dropped in Json() method. Added new unit tests for JSON and Save methods. 2024-10-09 16:18:35 -05:00
Jonathan Thomas
959947a3f8 Adding GetMinTime/GetMinFrame functions to timeline, to find the "start" position of a timeline, if it's not 0.0. 2024-09-30 16:23:30 -05:00
Jonathan Thomas
118810f160 Do not add +1 to GetMaxFrame() calculation. This is incorrect math for calculating the max frame of a timeline, and not correct. For example, 1 second long timeline at 30 FPS, should have exactly 30 frames (not 31). 2024-09-24 12:40:37 -05:00
Jonathan Thomas
683f33b81e Simplify caption unit tests, to check for a range of pixels for white text 2024-09-06 17:39:24 -05:00
Jonathan Thomas
9e9bfb3404 Merge pull request #935 from Ninpo/fix-test-file-collisions
Fixes test file collisions with high concurrency builds
2024-05-10 20:24:09 -05:00
Jonathan Thomas
4594cf85b6 Fix Tracker/ObjectDetector unit tests, due to new default values 2024-02-22 21:17:24 -06:00
Jonathan Thomas
d87e9e49c8 Un-reverting previous commit, removing queuing from FFmpegWriter for simplicity. Increasing margin on webm unit tests, when checking pixel color. 2024-02-10 20:28:47 -06:00
Ninpo
e17c2a3f14 Fixes test file collisions with high concurrency builds
Fix by Ninpo <ninpo@qap.la>

When tests are run in parallel it's possible for ImageWriter
and FFmpegWriter Gif tests to truncate/overwrite the other's
output1.gif. This change makes use of test file names unique
to the tests themselves.

Because cmake defaults to Makefiles and make does not -j$(nproc)
by default, this bug can't show up unless part of a build with parallel
make with tests included.

https://github.com/OpenShot/libopenshot/issues/933
2023-07-10 00:10:51 +01:00
kxxt
e6f6b64a0f Fix Stabilize_Video test for platforms that doesn't use fast color space conversion
The Stabilize_Video test fails on platforms that doesn't support
accelerated colorspace conversion from yuv420p to rgba.

e8e4863325/libswscale/yuv2rgb.c (L678-L696)

This PR fixes it by rounding the result that caused the test failure.

On x86_64, y = -0.001074643496478603
On riscv64, y = -0.0009904620157904118
2023-05-28 12:28:33 +08:00
Jonathan Thomas
f544d84f48 Fixing memory leak on Clips, where we were not clearing cache on Close, or forcing Close on destruction. Especially noticeable on projects with a ton of clips. Tweaking unit tests to prevent crash due to new Clip destructor behavior when using stack variables. 2023-04-19 16:08:36 -05:00
Jonathan Thomas
1832899526 Removing debug code 2023-03-27 13:48:43 -05:00
Jonathan Thomas
b37ec87d3e Updating windows x86 unit test values to align with Windows x86 2023-03-27 12:52:21 -05:00
Jonathan Thomas
01c3c62c99 Adding additional debugging code for an x86 Windows issue with font rendering 2023-03-27 11:16:10 -05:00
Jonathan Thomas
44d318949a Small windows unit test regression 2023-03-27 01:27:39 -05:00