Commit Graph

38 Commits

Author SHA1 Message Date
Frank Dana
d909eccdf6 python/openshot.i: Convert to 4-space indents (#820) 2022-04-03 00:45:08 -04:00
Jonathan Thomas
9eda757885 Merge branch 'develop' into audio-devices
# Conflicts:
#	src/AudioBufferSource.cpp
#	src/AudioReaderSource.cpp
#	src/AudioReaderSource.h
#	src/Clip.cpp
#	src/Frame.cpp
#	src/Qt/AudioPlaybackThread.h
#	src/audio_effects/Compressor.h
#	src/audio_effects/Delay.h
#	src/audio_effects/Echo.h
#	src/audio_effects/Expander.h
2021-12-02 22:05:19 -06: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
9c4a98a1cd Merge pull request #704 from ferdnyc/py_message
Exceptions: Add py_message() for Python
2021-11-10 22:13:57 -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)
397db7ba31 Fraction: Python operators, formatter
- Equivalents of operator* and operator/ templates are provided
  by implemening `__mul__`, `__rmul__`, __truediv__`, `__rtruediv__`
  in Python code for `openshot.Fraction` class
- An implementation of `__format__` is also provided, allowing
  numeric format strings to be used directly on Fraction objects,
  e.g. `v = Fraction(3, 9); print(f"{v:0.3f}")  # prints '0.333'`
2021-10-31 07:52:12 -04:00
Frank Dana
2d2a062bdc Remove (broken) BlackMagic DeckLink support (#760) 2021-10-20 06:49:08 -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
FeRD (Frank Dana)
76fb7c8013 Rename AudioSampleBuffer to AudioBuffer<float>
For a long time now, juce::AudioSampleBuffer has been nothing but an
alias for its true (templated) type, AudioBuffer<float>.
2021-08-24 13:11:00 -04:00
FeRD (Frank Dana)
b39ff359ad Exceptions: Add py_message() for Python
- Most exceptions are now based on two new base classes,
  FileExceptionBase and FrameExceptionBase.
- All exception classes now export a `py_message()` method
  (inherited or defined) which constructs a message for Python
  that includes **all** arguments to the exception, not just
  the why() text.
- Python's exception handling is updated to catch
  openshot::ExceptionBase and display py_message() instead of why()
- (I didn't modify why() because it returns char*; py_message()
  returns a std::string.)
2021-07-12 22:47:43 -04:00
Frank Dana
09eb807507 CMake: USE_SWIG_DEPENDENCIES for CMake 3.20+ (#691) 2021-06-25 01:05:59 -04:00
FeRD (Frank Dana)
5df3f8aef0 Add TrackedObjectBBase to Python SWIG 2021-06-04 20:05:32 -04:00
Brenno
2e8ff3b982 Added TrackedObjectBBox to python bindings 2021-05-17 11:38:45 -03:00
FeRD (Frank Dana)
0fe84d36f6 Keyframe: Get rid of vector aliases, Coord ctor 2021-01-29 03:42:56 -05:00
FeRD (Frank Dana)
37bb2f6f9f Fraction: Restore __str__ for Python
The Python code expects __str__() on a Fraction to return a
"{num}:{den}" representation, which __repr__() no longer does.
2021-01-29 03:41:54 -05:00
FeRD (Frank Dana)
00d458210e KeyFrame.h: Avoid shadowing SWIG templates 2021-01-29 01:08:50 -05:00
Jonathan Thomas
47afa205c7 Merge pull request #585 from OpenShot/opencv
3 New OpenCV Effects (Tracker, Stabilization, and Object Detection)
2021-01-28 17:28:15 -06:00
FeRD (Frank Dana)
72e09dc033 Fraction: Implement dict type methods 2021-01-27 05:48:06 -05:00
Frank Dana
dbaac4debd Merge branch 'develop' into frac-python-types 2021-01-27 03:50:45 -05:00
FeRD (Frank Dana)
d1019f204e Merge branch 'fix-swig-flags' into opencv_build_config 2021-01-13 11:16:10 -05:00
FeRD (Frank Dana)
3a0d88adcf Property fixes for bindings 2021-01-13 10:59:13 -05:00
FeRD (Frank Dana)
0cb9286da3 Merge branch 'fix-swig-flags' into opencv_build_config 2021-01-13 09:20:35 -05:00
FeRD (Frank Dana)
b445d6df6c Propagate library defs to swig 2021-01-13 08:31:34 -05:00
FeRD (Frank Dana)
1b82a3c97a Fraction: Restore __string__ for Python
The Python code expects __string__() on a Fraction to return a
"{num}:{den}" representation, which __repr__() no longer does.
2021-01-02 18:33:39 -05:00
FeRD (Frank Dana)
5cfe52b9f7 CMake: Add ENABLE_OPENCV option, use targets 2020-12-24 10:07:08 -05:00