Commit Graph

1425 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
1df9840705 Import CodeCoverage changes 2019-12-15 01:12:07 -05:00
FeRD (Frank Dana)
14dc2b38e2 CodeCoverage: Import upstream changes 2019-12-14 20:23:19 -05:00
FeRD (Frank Dana)
66febac6b1 Lowercase function names, add change comment 2019-12-14 20:21:50 -05:00
FeRD (Frank Dana)
a697bda9c5 Use full paths in COVERAGE_LCOV_EXCLUDES examples 2019-12-14 20:20:55 -05:00
FeRD (Frank Dana)
0710ecc168 Fix demangling
Generator expressions don't work in set(), or in the COMMAND arg
to add_custom_target().
2019-12-10 15:31:45 -05:00
FeRD (Frank Dana)
a2513823d5 Remove Python detection from CodeCoverage 2019-12-07 17:05:01 -05:00
FeRD (Frank Dana)
ab3aef4564 Set lcov base directory to PROJECT_SOURCE_DIR 2019-12-07 14:31:15 -05:00
FeRD (Frank Dana)
70bf3df41d CodeCoverage.cmake: Add demangling, cleanup 2019-12-07 13:45:28 -05:00
FeRD (Frank Dana)
b4682ac3d7 Move coverage to root CMakeLists, add more tooling 2019-12-07 13:40:43 -05:00
FeRD (Frank Dana)
af1080d2de Merge branch 'move-feature-summary' into coverage-build 2019-12-07 13:08:31 -05:00
FeRD (Frank Dana)
7b7f2cc574 Move feature summary to root CMakeLists 2019-12-07 13:04:29 -05:00
Jonathan Thomas
06e6de5c99 Merge pull request #381 from ferdnyc/swig-python
Add repr to openshot.Version
2019-12-06 17:14:56 -06:00
Jonathan Thomas
0347ad2073 Merge pull request #374 from musteresel/new-keyframe-implementation
New Keyframe implementation
2019-12-06 17:10:11 -06:00
Daniel Jour
89479bb01a Keyframe tests: Add test about large segment, including performance
This new test makes sure that a large segment is handled correctly and
also with reasonable performance.  The timeout of 10ms is still
relatively slow (on a mid-class laptop it takes 0.001ms currently) but
the test shouldn't fail when e.g. the build machine is under (mild to
heavy) load.
2019-12-06 01:35:31 +01:00
Daniel Jour
c940c1f42b Keyframe: Cleanup duplicate binary search code
GetRepeatFraction uses two binary searches; reuse that code!
2019-12-06 01:21:25 +01:00
Daniel Jour
1fbdc521ca Keyframe::GetRepeatFraction(): Binary search, skipping when constant
The old implementation did a linear scan over the values.  This was
slow with slowly changing keyframes.  This new implementation skips
over constant (when rounded) segments and performs binary search
in (possibly long) interpolated segments to find the X coordinates
where a change occurs quickly.
2019-12-06 01:04:47 +01:00
Daniel Jour
f00edbad7e Keyframe interpolation: In own function; only for Y coordinate 2019-12-06 01:03:56 +01:00
FeRD (Frank Dana)
4a5eb20202 Add __repr__ to openshot.Version 2019-12-03 21:30:22 -05:00
Daniel Jour
ed0b081803 Keyframe::IsIncreasing(): Search over points, not values
Searching over the keyframe points is considerably faster than
calculating interpolating values and searching over them.
2019-12-03 17:27:28 +01:00
Daniel Jour
b40fa6922e Keyframe::GetMaxPoint() simplify loop 2019-12-03 16:58:53 +01:00
Daniel Jour
79cb8483f3 Keyframe: Move Bezier code into extra function, parameterise
Bezier interpolation code is now in a dedicated function and can be
used to either find a Y from a known X or a X from a known Y, with a
given allowed error.
2019-12-03 16:56:53 +01:00
Frank Dana
c04dc94cc8 Wrap assignment in conditional with () (#379) 2019-12-02 10:45:06 -05:00
Daniel Jour
65cb3dfde9 Keyframe::GetClosestPoint(): Use binary search 2019-11-30 11:58:51 +01:00
Daniel Jour
54e8e37d2d Keyframe::Contains(): Use binary search instead of linear search 2019-11-30 11:32:52 +01:00
Frank Dana
5e1b6fd740 Minor adjustments to Doxygen API docs (#376)
- Define `USE_IMAGEMAGICK` and `USE_BLACKMAGIC` unconditionally when
  building docs, so that the classes will be documented.
- Improve handling of `std::`-prefixed types in doxygen output.
2019-11-29 22:08:09 -05:00