diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-08-24 02:01:48 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-08-24 02:10:12 +0300 |
commit | 929d7597b345027b848c2997720e52b89c46a0ff (patch) | |
tree | e0882cc98e552a713e1336e07c55159087b7fece /source/blender/makesdna/DNA_sequence_types.h | |
parent | a57ba4147f1344e9379a271fc752036969574a2d (diff) |
VSE: Cleanup speed effect math
Simplify logic of speed effect frame calculation by using discrete math
where possible. Only `SEQ_SPEED_MULTIPLY` mode with animation requires
frame map to be built. Frame map building was simplified by removing
unused branches.
Functional change: Animating strip in negative range will reverse playback.
I assume this was limitation of previous system, where each frame map item
was limited to be within correct frame range. Now frame map can contain
values that point beyond usable range and they are limited by
`seq_speed_effect_target_frame_get`. This way it is possible to control
playback rate in both directions.
Mostly fixes T89120 apart from offset handling.
Reviewed By: mano-wii
Differential Revision: https://developer.blender.org/D11939
Diffstat (limited to 'source/blender/makesdna/DNA_sequence_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_sequence_types.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h index df18501d2ea..03c38eb71a0 100644 --- a/source/blender/makesdna/DNA_sequence_types.h +++ b/source/blender/makesdna/DNA_sequence_types.h @@ -339,11 +339,8 @@ typedef struct SpeedControlVars { float *frameMap; /* DEPRECATED, only used for versioning. */ float globalSpeed; - /* DEPRECATED, only used for versioning. */ int flags; - int length; - int lastValidFrame; int speed_control_type; float speed_fader; |