Commit Graph

608 Commits

Author SHA1 Message Date
Jonathan Thomas
6da4e8fded Fixed a bug with cropping logic on Clip (disabled it temporarily). I need to replace the Crop functionality with a more robust cropping tool. Also, updated Timeline to use the MaxWidth/MaxHeight settings when calling the clip (since those are set when the screen is resized). 2020-10-19 15:46:43 -04:00
Jonathan Thomas
eb328f1190 Refactored the Settings::Instance()->MAX_WIDTH and Settings::Instance()->MAX_HEIGHT out of the Cilp class. GetFrame() now has an overload which specifies the width, height, and samples needed. Otherwise, it returns the Clip image based on the source reader (width, height, num samples). 2020-10-19 15:46:42 -04:00
Jonathan Thomas
000c9d6d4c - Refactoring all Timeline drawing code into the Clip class
- Making Clip a proper Reader (so it can be used directly, instead of a Timeline)
2020-10-19 15:45:37 -04:00
FeRD (Frank Dana)
6c656dd7f7 QtImageReader: Consolidate ctors 2020-10-17 06:23:44 -04:00
FeRD (Frank Dana)
06d45cb88a ImageReader: Consolidate ctors using default arg 2020-10-17 05:56:02 -04:00
Jonathan Thomas
8f6c64215e Merge pull request #556 from ferdnyc/use-make-shared
Use std::make_shared to allocate shared ptrs, instead of std::shared_ptr constructors
2020-10-16 14:48:14 -05:00
Jonathan Thomas
ef80439b62 Merge pull request #530 from ferdnyc/omp-and-ffmpeg-classes
Move off deprecated OpenMP API, fix FFmpeg code paths
2020-10-16 14:45:20 -05:00
Jonathan Thomas
8cf0483bd9 Merge pull request #455 from ferdnyc/remove-ancient-ffmpeg-encode
FFMpegWriter: Ease technical debt by dropping support for FFmpeg versions below 2.4
2020-10-16 03:14:26 -05:00
Jonathan Thomas
143b948ac2 Merge branch 'develop' into distinct-saturation 2020-10-16 02:47:40 -05:00
FeRD (Frank Dana)
a004bd23f3 Merge remote-tracking branch 'upstream/develop' into remove-ancient-ffmpeg-encode 2020-10-13 07:00:58 -04:00
FeRD (Frank Dana)
92d33a1ebd VideoRenderWidget: missing includes 2020-09-13 16:38:23 -04:00
FeRD (Frank Dana)
0974637a3a Pixelate: Fix missing includes 2020-09-13 16:35:35 -04:00
FeRD (Frank Dana)
1c8aea94d0 Frame: Put Qt includes where they're used 2020-09-13 16:28:31 -04:00
Frank Dana
22f89680bd Merge pull request #555 from ferdnyc/fix-deprecated-endl
Use Qt::endl with QTextStream
2020-09-10 19:16:40 -04:00
Frank Dana
131e441d98 Merge pull request #563 from ferdnyc/timeline-lookup-api
Timeline: Add clip/effect lookup api, GetMaxFrame/GetMaxTime method (w/ unit tests)
2020-09-10 19:06:44 -04:00
Frank Dana
f33d5cb261 Timeline.h: Formatting 2020-09-10 18:40:32 -04:00
Jonathan Thomas
6cc00d6e47 Merge pull request #371 from SuslikV/lossless-color-format
Use non-subsampled color format for lossless encoding with the h264 encoder
2020-09-10 17:40:14 -05:00
FeRD (Frank Dana)
41af336d11 Add GetMaxTime 2020-09-02 01:04:29 -04:00
FeRD (Frank Dana)
f49a795749 Timeline: Add id-lookup API and GetMaxFrame 2020-09-01 23:05:04 -04:00
FeRD (Frank Dana)
36dab0b1db Clip: GetEffect implementation 2020-09-01 23:05:04 -04:00
FeRD (Frank Dana)
466f8713aa Timeline.h: Add lots of openshot:: prefixes 2020-09-01 23:05:04 -04:00
FeRD (Frank Dana)
bd90b8d6c9 ReaderBase: Deprecate SetClip/GetClip names
- Replacement method names are SetParentClip/GetParentClip
- Old names are retained as deprecated alternates, for now
- libopenshot internal calls (very few) are updated

ReaderBase.cpp: Remove (Set,Get)Clip
2020-09-01 23:05:04 -04:00
FeRD (Frank Dana)
c14922d57e Frame.cpp/h: Fix a bunch of wrong comments
Best reason not to narrate the code in the comments: The code gets
changed, but the documentation doesn't.
2020-08-20 20:40:55 -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)
92293d39ab Add QtUtilities.h header 2020-08-20 15:26:53 -04:00