Jonathan Thomas
b936ea837c
Initializing Clip info struct, and fixing clip cache settings
2020-10-19 16:05:01 -04:00
Jonathan Thomas
b3ad76ddf7
Fixing some regressions on image merging
2020-10-19 16:05:01 -04:00
Jonathan Thomas
8387b124ad
Large refactor of Timeline, TimelineBase, ClipBase, and Clip, to allow a Clip access to the parent timeline instance (if available), and thus, certain properties (preview size, timeline FPS, etc...). This allows for a simpler rendering of Clip keyframes (during the Clip::GetFrame method), and a simpler Timeline class, that can change the preview window size dynamically and no longer requires a Singleton Settings class.
...
- Also removed "crop" from Clip class, as it was never implmeneted correctly, and we have a fully functional "crop" effect when needed
- Added caching to Clip class, to optimize previewing of cached frames (much faster than previous)
2020-10-19 16:05:01 -04:00
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