Commit Graph
3017 Commits
Author SHA1 Message Date
itsmattkc 2bda306866 timeline/various: implemented block copy/paste
Implemented the ability to copy/paste blocks/clips in the timeline. This did
require some large scale changes and reworking of the copy/paste system
introduced a few commits ago, but should be largely functional now.
2020-03-31 02:19:05 +11:00
itsmattkc 67d8ad571d timeline: remove blocks from timeline if a place command has overwritten them 2020-03-30 18:06:02 +11:00
itsmattkc 6624f14517 timeline: temporarily disable optimization that doesn't re-cache after split
Since waveforms are generated during the cache process, if clips don't cache,
a waveform isn't generated for them. Therefore for now, this optimization will
be disabled but should be re-enabled later when waveforms are improved to handle
this situation.
2020-03-30 15:14:06 +11:00
itsmattkc 5aa4f91c46 timelineviewblockitem: fixed some indentation
Minor code tidiness.
2020-03-30 15:13:17 +11:00
itsmattkc a143b64ac7 block: don't send cache invalidation signals from length changes
Minor optimization.
2020-03-30 15:11:32 +11:00
itsmattkc 2bfe9f44df nodeview: added ctrl+scroll zooming 2020-03-30 01:27:10 +11:00
itsmattkc 7bca61608a node: added qstringliterals to node IDs
Minor code optimization.
2020-03-28 18:02:34 +11:00
itsmattkc b54388894c project: implemented the ability to delete items from projects 2020-03-28 12:33:28 +11:00
itsmattkc a2a432a0e8 item: wrote better function for retrieving shared ptr from raw ptr
Rather than every call having to access the item's parent, the item does it
automatically which simplifies code everywhere.
2020-03-28 12:32:30 +11:00
itsmattkc 4dcc672b23 taskdialog: improved signalling
Ensures task errors are picked up and objects are deleted at the most
appropriate times.
2020-03-28 12:13:51 +11:00
itsmattkc b40dd761f5 projectexplorer: cache first selected item for context menu operations
Minor optimization.
2020-03-28 11:36:05 +11:00
itsmattkc 84aab543ca oiiodecoder: always add 1 frame to image sequences so the end frame is shown 2020-03-28 11:29:51 +11:00
itsmattkc 3399227b3a keyframeview: implemented transforming keyframe times to and from sequence time
Since the node graph can have transform cross nodes, input keyframes may occur
at a different times requiring transforming between sequence time and media
time. This commit implements such a mechanism in all UI classes that need it.
2020-03-26 19:17:46 +11:00
itsmattkc 592171cc31 keyframeviewbase: use existing function to access variable rather than changing the variable's visibility
Improved class encapsulation.
2020-03-26 00:38:25 +11:00
itsmattkc a75e8fcde5 timebasedwidget: don't update the viewer if it's the same
Minor optimization, since changing the viewer can be a complex process it should
only be done if absolutely necessary.
2020-03-26 00:34:01 +11:00
itsmattkc c5d3c4ff36 node: implemented convenience functions for transforming time
Implements a function that calculates the time transformation(s) only between
one node and another.
2020-03-26 00:26:13 +11:00
itsmattkc 9f3b9fdc70 footageviewer: allows users to drag video or audio only
Updates drag mime data to include a variable determining which streams are
enabled and which ones aren't (a binary qint64 where the 0s are disabled
and the 1s are enabled) rather than relying solely on the stream->enabled
values which can't be modified as part of the drag process.
2020-03-23 18:55:59 +11:00
itsmattkc 3b8743a0ce timeline: show timecode on block items and started copy function 2020-03-23 15:28:58 +11:00
itsmattkc bb326e2b50 nodeview/core: moved node copy/paste functions to core so they can be used elsewhere 2020-03-23 15:27:58 +11:00
itsmattkc 52a8966abd timecode functions: added convenience function and improved error reporting
Added a convenience function for converting rational time to a timecode
and timecode converters now return error messages if something goes wrong.
2020-03-23 15:26:31 +11:00
itsmattkc 053ea10393 viewer: fixed occasional segfault when setting the viewer node
Since other parts of the UI use OpenGL (through Qt), the viewer's context can
sometimes become non-current until the next time it draws. Since the color
processor is created before the main drawing function, the context could
occasionally be non-current causing its creation to fail. Subsequently trying
to use that color processor would trigger a segfault. This commit addresses that
by always making the context current before creating the color processor shader.
2020-03-22 20:09:05 +11:00
itsmattkc f9fc27c6eb renderer: invalid cache when viewer node changes
Ensures frames get re-rendered rather than stuck on the previous viewer node.
2020-03-22 20:03:14 +11:00
itsmattkc 51f02ea01b viewer: allow switching open sequences 2020-03-21 22:18:17 +11:00
itsmattkc 3c3543a2a9 viewer: avoid divide by zero on sequences with zero length 2020-03-21 13:15:11 +11:00
itsmattkc e6b484a523 audiowaveformview: rounded some float to int conversions 2020-03-19 13:22:48 +11:00
itsmattkc 45482e705d cmake: disabled msvc warning 4244 2020-03-19 13:22:36 +11:00
itsmattkc feb561c80b cmake: disabled msvc warning 4267 2020-03-19 13:03:26 +11:00
itsmattkc bbb00029e9 Merge branch 'master' of https://github.com/olive-editor/olive 2020-03-19 12:22:10 +11:00
itsmattkc 90284bef19 cmake: reduce msvc warning level
We don't develop with MSVC, we only use it for Windows builds so constantly
having to synchronize the warnings between it and GCC seems like a waste of
time.
2020-03-19 12:20:21 +11:00
itsmattkc 100a2b19cc Merge pull request #1128 from luzpaz/typos
Fix doxygen and misc. typos
2020-03-19 12:17:02 +11:00
itsmattkc 2934c875a0 Merge pull request #1130 from eszlari/patch-2
cmake: use foreach()
2020-03-19 12:16:26 +11:00
itsmattkc e5ac72fa9d Merge branch 'master' into typos 2020-03-19 12:16:09 +11:00
itsmattkc 62dafce3cf Merge branch 'master' of https://github.com/olive-editor/olive 2020-03-19 12:14:42 +11:00
eszlari 9caa666755 cmake: use foreach() 2020-03-19 00:06:55 +01:00
itsmattkc 30b4ef8f00 cmake/travis: add crash handler tool to mac app bundle and handle dependencies 2020-03-18 08:39:05 -07:00
itsmattkc 215406c15d cmake: install icns file inside mac bundle 2020-03-18 08:18:33 -07:00
itsmattkc 479f7efc66 stream: commented out never used struct 2020-03-18 08:18:18 -07:00
itsmattkc 04afeee953 crashhandler: enabled mac support 2020-03-18 08:17:23 -07:00
itsmattkc 78c504d292 footageviewer: remove unnecessary cache invalidations
Minor optimization, now that the FootageViewer's nodes are
connected/disconnected as part of the process, the second call to invalidate
is unnecessary and will only serve to re-invalidate actually valid cache data.
2020-03-18 19:09:13 +11:00
itsmattkc f888cf7fe5 audiowaveformview: force cache invalidation if the footage is changed 2020-03-18 19:08:33 +11:00
itsmattkc 7771bab5a0 audiobackend: truncate PCM cache size when the length is reduced 2020-03-18 19:08:18 +11:00
itsmattkc 6ddfd2fc8e waveinput: return actual read count when reading into an existing buffer 2020-03-18 19:06:08 +11:00
itsmattkc d4d969872f ffmpegdecoder: if data is less than duration, fill remainder with 0s
Fixes bug where random/uninitialzed audio values may appear in some
circumstances.

Also switches swr_convert_frame to swr_convert for a small
optimization/improvement, no need to use AVFrame struct when we're only
interested in samples.
2020-03-18 19:05:02 +11:00
itsmattkc 79bc9594b9 audiorenderer: clear tasks waiting for conforms when their ranges are invalidated
Minor code optimization.
2020-03-18 15:49:29 +11:00
itsmattkc 4f7fcce367 Merge branch 'master' of https://github.com/olive-editor/olive 2020-03-18 15:03:20 +11:00
itsmattkc 40073dde62 cmake: added crash handler target to install 2020-03-18 15:02:43 +11:00
itsmattkc fed17e35fa audiowaveformview: optimizes waveform to only redraw when necessary
Draws to a pixmap only when the waveform changes so it doesn't have to be
regenerated on every draw. Also renames WaveformView to AudioWaveformView
2020-03-18 14:44:05 +11:00
itsmattkc 5bdee74205 waveformview: corrected rectified waveform algorithm
Fixed bug where code erroneously multipled by full channel height. This is an
incorrect assumption since the full range of -1.0 to 1.0 is 2.0 which means the
difference needs to be halfed to create a range from 0.0 to 1.0.
2020-03-18 14:23:35 +11:00
itsmattkc 27d7822fa9 preferences: added setting for rectified waveforms 2020-03-18 14:23:23 +11:00
itsmattkc abb4c440fb core: added signalling for timecode display changes
Allows targeted application-wide UI updates for when the user changes the
timecode display so that the response is immediate.
2020-03-18 14:09:31 +11:00