Commit Graph

246 Commits

Author SHA1 Message Date
Jonathan Thomas
99aab0a12b Fix Brightness, Hue, and Saturation effects (#889)
* Fix Brightness, Hue, and Saturation effects to fully support pre-multiplied colors (when alpha channel found)

* Fixing whitespace on effects
2022-12-21 22:18:42 -06: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
3001d1b059 Fix ColorShift bug when only adjusting the Y keyframes (#887) 2022-12-20 12:24:16 -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
jackson
c023d29bed Allow intentional line breaks 2022-09-22 01:30:06 -05:00
Jonathan Thomas
fd1043be5a Fixing many caption related issues:
- background color now sticks to the text
- background border now scales correctly (at different resolutions)
- background padding now scales correctly
- stroke size now scales correctly
- margins are now defaulted to 15% on left/right
- text caption area now centers between available left/right margins
- background color can now be faded in and out, animated
- new property: line_spacing, a % from 1.0 (100%) to affect how much space are between lines
- Use each font's default lineSpacing, instead of a fixed distance between lines. This property can be adjusted with the new line_spacing keyframe.
2022-08-23 23:21:38 -05:00
Frank Dana
957d4f6a06 Fix class_name for Tracker and ObjectDetection (#827)
Effect class name is used when introspecting the available effects
for a given build of libopenshot, for example when extracting
translation strings for OpenShot. The EffectInfo::class_name member
needs to match the name of the class it describes, which two of ours
did not.

- ObjectDetection had its class name set to "Object Detector", which
  obviously isn't the class name.
- Tracker, worse, was allowing class_name to be **SET** from the
  JSON parameters passed to its SetJSON() method, making the class
  name mutable at the whim of the class's callers.
2022-06-17 15:30:08 -04:00
FeRD (Frank Dana)
e11b9434cf Docs: Fix doc ambiguities when matching functions 2021-11-11 07:04:05 -05: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)
ef535c859d ChromaKey: Replace juce math with cmath std:: fxns 2021-11-09 06:14:07 -05:00
Jonathan Thomas
f81f620c2a Merge pull request #732 from ferdnyc/crop-qpainter
Rewrite Crop effect using QPainter
2021-10-29 13:17:38 -05:00
Jonathan Thomas
689341368f Merge pull request #716 from troyrollo/babl-integration
Add support for more Chroma Key methods
2021-10-28 14:32:16 -05:00
Frank Dana
49f2319699 Merge branch 'develop' into babl-integration 2021-10-22 15:14:11 -04:00
FeRD (Frank Dana)
75a56e58a0 Clean up some header comments / classes 2021-10-17 23:31:02 -04:00
FeRD (Frank Dana)
7ac54f05cc Fold libopenshot_protobuf into libopenshot
- Move .proto files to src/ dir (not src/protobuf_messages)
- Generate protobuf files in src/CMakeLists.txt and include in
  'openshot' library target
- Don't install generated *.pb.h headers, which are now private
2021-10-17 23:31:02 -04: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
Troy Rollo
c3ef319e04 Fix errors in LCH Chroma keying and Findbabl.cmake 2021-10-10 19:49:35 +11:00
Frank Dana
cb9d1b11e1 Merge branch 'develop' into babl-integration 2021-10-08 12:55:47 -04:00
Frank Dana
90a726a6dd Merge branch 'develop' into crop-qpainter 2021-09-27 00:42:00 -04:00
Jonathan Thomas
c128b6caf1 Protecting a caption effect with no Clip (i.e. effect added directly to timeline) 2021-09-22 16:09:20 -05:00
Troy Rollo
331cc1f362 Improve new Chroma Key options.
Includes code amendments as requested upstream, improved accuracy,
new keying methods and the addition of a secondary halo threshhold
(pixels in the halo threshold get an alpha between zero and one).
2021-09-19 23:57:36 +10:00
Troy Rollo
c52b2c1cee Use int for temporaries where possible in CIE distance calculations. 2021-09-19 10:25:49 +10:00