diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-06-29 13:45:59 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-06-29 13:48:34 +0300 |
commit | 302b04a5a3fc0e767ac784424f78ce2edf5d2844 (patch) | |
tree | def4de621fbb0a194b350da781f054c6aefbab35 /source/blender/sequencer/SEQ_add.h | |
parent | c51b8ec86364585c4088837c603b39752065bc34 (diff) |
VSE: Improved Retiming system
Patch implements better way to control playback speed than it is
possible to do with speed effect. Speed factor property can be set in
Time panel.
There are 2 layers of control:
Option to retime movie to match scene FPS rate.
Custom speed factor to control playback rate.
Since playback rate is strip property, it is now possible to manipulate
strip as normal one even if it is retimed.
To facilitate manipulation, some functions need to consider speed factor
and apply necessary corrections to strip offset or strip start. These
corrections may need to be float numbers, so start and offsets must be
float as well.
Sound strips now use speed factor instead of pitch. This means, that
strips will change length to match usable length. In addition, it is
possible to group movie and sound strip and change speed of meta strip.
Diffstat (limited to 'source/blender/sequencer/SEQ_add.h')
-rw-r--r-- | source/blender/sequencer/SEQ_add.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/sequencer/SEQ_add.h b/source/blender/sequencer/SEQ_add.h index dea5151598c..7c2d50a815e 100644 --- a/source/blender/sequencer/SEQ_add.h +++ b/source/blender/sequencer/SEQ_add.h @@ -50,6 +50,7 @@ typedef struct SeqLoadData { struct Stereo3dFormat *stereo3d_format; bool allow_invalid_file; /* Used by RNA API to create placeholder strips. */ double r_video_stream_start; /* For AV synchronization. Set by `SEQ_add_movie_strip`. */ + bool adjust_playback_rate; } SeqLoadData; /** @@ -176,7 +177,10 @@ void SEQ_add_image_set_directory(struct Sequence *seq, char *path); * \param strip_frame: frame index of strip to be changed * \param filename: image filename (only filename, not complete path) */ -void SEQ_add_image_load_file(struct Sequence *seq, size_t strip_frame, char *filename); +void SEQ_add_image_load_file(struct Scene *scene, + struct Sequence *seq, + size_t strip_frame, + char *filename); /** * Set image strip alpha mode * |