Commit Graph

63 Commits

Author SHA1 Message Date
Jonathan Thomas
c5bf0cb9b0 Refactor base JSON properties into EffectBase - to reduce duplication in code 2023-05-24 17:27:03 -05:00
Jonathan Thomas
26c18fd76c Refactor of effect handling, to allow effects to be applied BEFORE or AFTER a clip's keyframes are applied. For example, this allows for a mask to apply after an animation/movement is applied to the clip image, like an animated scrolling credits to be masked/faded in a static location. 2023-05-24 17:12:15 -05:00
Jonathan Thomas
4fbb4392ba Fix Transition/Mask replace_image Property (#888)
* Fix ColorShift bug when only adjusting the Y keyframes

* Fixing 'replace-image' functionality of the  Mask / Transition effect - used for debugging masks
2022-12-20 15:48:13 -06:00
Jonathan Thomas
2b4bcc1e5f Prevent divide by zero error 2022-11-18 00:55:16 -06:00
Jonathan Thomas
fc7575b60e Implementing a fix for mask contrast proposed by GitHub user xotmatrix 2022-11-18 00:32:48 -06:00
Jonathan Thomas
20e7fba572 Fixing white space 2022-11-18 00:25:05 -06:00
Jonathan Thomas
553dcc64e1 Fixing regression with mask effect caused by contrast being adjusted after we modulate the brightness (sort error) 2022-11-18 00:24:43 -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
Frank Dana
59138ea3e4 Adopt license management via Reuse project/tool (#711)
* reuse-managed license/copyright headers

reuse is a tool for compliance with the REUSE recommendations. See
<https://reuse.software/> for more information, and
<https://reuse.readthedocs.io/> for the online documentation.

* Set jsoncpp license
* Add MIT license for Decklink sources
* Explicitly license examples/
  - Add headers to source files
  - Change blanket licensing in .reuse/dep5 to only cover binary media
  - Import CC-BY-3.0 license and assign to sintel_trailer
2021-10-16 01:26:26 -04:00
Brenno
013a61bab9 Renamed "Parent Effect ID" to "Parent" 2021-03-26 21:10:10 -03:00
Brenno
67895f7c23 Added support to set an effect's properties by it's parent effect 2021-02-04 16:11:27 -03:00
FeRD (Frank Dana)
2f3615f706 Move Exceptions.h includes to .cpp files 2021-01-26 10:52:04 -05:00
FeRD (Frank Dana)
a1e44edad4 Merge branch 'develop' into clip-refactor-keyframes 2020-10-19 16:28:49 -04:00
Jonathan Thomas
d2521bcbff Fixing some additional cpp_test complaints 2020-10-19 16:22:27 -04:00
Jonathan Thomas
d3d604cc08 Fix alpha and mask effects, so they correctly multiply the alpha to all colors (since we have switched to a premulitplied alpha format) 2020-10-19 16:22:27 -04:00
FeRD (Frank Dana)
aa40ea29e0 Update include paths in all source/header files 2020-10-18 07:43:37 -04:00
FeRD (Frank Dana)
3c2532b4de Use std::make_shared to allocate shared ptrs
std::make_shared does in a single allocation what the constructors
for std::shared_ptr usually take at least 2 allocations to do.
May give us an infinitesimal performance/memory improvement.

https://www.modernescpp.com/index.php/memory-and-performance-overhead-of-smart-pointer
2020-08-20 16:50:12 -04:00
FeRD (Frank Dana)
22bf6edfba Enhance Json data handling
- Parsing from string to Json::Value is now done by utility function
  openshot::stringToJson() in Json.cpp, all SetJson() methods call it.
- Expand use of const member functions and args where appropriate.
- Use std::to_string() to format int/float values as strings.
- Correct mentions of nonexistent Json::JsonValue type in docstrings
2019-12-27 08:51:51 -05:00
Frank Dana
8bde07682c Merge branch 'develop' into std-prefixes 2019-10-22 21:00:27 -04:00
FeRD (Frank Dana)
291719ff05 Effects: No "" file_path args to exceptions 2019-08-27 15:48:46 -04:00
FeRD (Frank Dana)
45cfda413d (include/src)/effects/: std::prefixes 2019-08-05 01:08:03 -04:00
Jonathan Thomas
5f331e24df Merge pull request #265 from ferdnyc/catch-by-reference
Exceptions: catch-by-reference and other cleanup
2019-07-29 16:27:40 -05:00
FeRD (Frank Dana)
35eb6adc55 Clean up allocated memory in JSON code 2019-07-11 05:00:47 -04:00
FeRD (Frank Dana)
cb6ac21219 src/effects: Catch-by-reference 2019-07-03 06:29:32 -04:00
Jonathan Thomas
967f23b8a4 Merge pull request #245 from ferdnyc/license-block
Upgrade Doxygen documentation formatting/content
2019-06-21 00:24:54 -05:00