Commit Graph

555 Commits

Author SHA1 Message Date
Jonathan Thomas
62d7fb5459 Changing some libopenshot code based on Codacy feedback. Small refactoring, scope limiing. 2020-06-04 18:52:19 -05:00
Jonathan Thomas
10ed4baae3 Merge pull request #496 from OpenShot/emojis
Transform Improvements (Keyframe origin point)
2020-05-25 17:41:55 -05:00
FeRD (Frank Dana)
affd4b2488 Add some missing juce:: prefixing 2020-05-19 06:33:30 -04:00
Stefan Strogin
13290364e7 FFmpegUtilities: replace variable definition with statement expression
It is needed to avoid multiple definitions of AV_GET_CODEC_CONTEXT,
which is considered as an error with '-fno-common' which is default
since gcc-10.

Fixes: #511
2020-05-16 02:33:37 +03:00
Frank Dana
6336f30ee3 Various: Remove unused variables (#467)
Several data members and local variables were flagged by static
analysis tools as never being used anywhere in the code.
2020-04-22 02:02:55 -04:00
Frank Dana
f36bb334e2 Exceptions: Rename BaseException, for python (#497)
BaseException is a python standard library exception class, so it's
not a great idea to redefine that name in our bindings. Renamed
to ExceptionBase, which is more in keeping with our class naming
system anyway.
2020-04-22 02:01:01 -04:00
FeRD (Frank Dana)
f62f2bac6b Overrides for derived-class methods 2020-04-15 21:45:04 -04:00
FeRD (Frank Dana)
f354850984 Effects: Mark overridden methods accordingly 2020-04-15 21:44:17 -04:00
Jonathan Thomas
2bea436f3e Adding keyframable origin point (for shear and rotation) 2020-04-13 16:55:29 -05:00
Jonathan Thomas
8b3167a99a Adding ability for a Clip to auto-detect and instantiate a Timeline Reader from the *.osp file type. Added new Timeline constructor, to auto load UTF-8 JSON file, and regex convert all paths to absolute. Fixed a dead lock issue when a Timeline loads another Timeline. 2020-03-09 16:49:06 -05:00
Jonathan Thomas
4f591c7b94 Merge pull request #396 from ferdnyc/json-parsing
Behind-the-scenes code tidying for Json data handling
2020-02-27 15:32:05 -06:00
Jonathan Thomas
4ddf775cdf Merge pull request #421 from ferdnyc/ffmpegwriter-opts
FFmpegWriter: Overload Set___Options() methods
2020-02-27 15:27:31 -06:00
Jonathan Thomas
6666702e80 Merge pull request #423 from ferdnyc/optimized-blur
Optimized, parallelized Blur effect
2020-02-27 15:19:25 -06:00
Frank Dana
fe8ea216f4 Merge pull request #437 from ferdnyc/hw-accel-ffmpeg34
Limit HW accel support to FFmpeg 3.4+
2020-02-14 12:11:09 -05:00
FeRD (Frank Dana)
895c2f0e24 FFmpegReader/Writer: Reformat example code
- Reduced crazy-long line lengths by moving trailing comments to
  previous line
- Added more openshot:: prefixing, which causes Doxygen to link to
  the referenced object's documentation. (It doesn't always pick
  up cross-class links, without the prefix.)
2020-02-14 12:07:02 -05:00
FeRD (Frank Dana)
7867cf01b8 Reorder arguments in setVideoOptions overload
- The new ordering (with the frame rate AFTER width and height) doesn't
  match the other signature, but it *is* consistent with the Timeline
  constructor, and it just feels more natural
- Added overloaded-function notes to doxygen strings in FFmpegWriter.h
- Also added a warning about the argument order mismatch above
2020-02-14 11:53:28 -05:00
albert-github
ba1155e44f Documentation error
Correcting small documentation error.
2020-02-10 15:35:58 +01:00
FeRD (Frank Dana)
e74d71f545 FFmpegReader/Writer: limit hwaccel to FFmpeg 3.4+
Add a new #define HAVE_HW_ACCEL, which is only set on FFmpeg 3.4+,
and use that to restrict the use of hw-accel features, leaving
IS_FFMPEG_3_2 to determine only whether code is compatible with
FFmpeg 3.2+.
2020-02-10 01:50:31 -05:00
FeRD (Frank Dana)
7868157be5 Streamline blur effect code 2020-02-03 02:24:08 -05:00
FeRD (Frank Dana)
0a063b84b7 FFmpegWriter: Overload Set___Options() methods
Add overloaded forms of SetVideoOptions() and SetAudioOptions()
that apply some sensible defaults to rarely-changed parameters.
2020-01-31 03:53:53 -05:00
Frank Dana
8ea7449363 Merge branch 'develop' into json-parsing 2020-01-20 15:25:40 -05:00
Jonathan Thomas
9bf25f40a9 Merge pull request #392 from ferdnyc/juce-guard-remove
Remove JUCE defines
2020-01-02 14:41:43 -06: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
FeRD (Frank Dana)
c11b4ac266 EffectBase: Remove unused short_name 2019-12-19 07:59:30 -05:00
FeRD (Frank Dana)
fd78be6b95 Remove JUCE defines
A few headers contained #defines that were intended to work around
issues with the JUCE library headers, but those things are best
handled in other ways.
2019-12-18 23:55:16 -05:00