VSE: Add channel headers
This patch adds channel region to VSE timeline area for drawing channel headers. It is synchronizedwith timeline region. 3 basic features are implemented - channel visibility, locking and name. Channel data is stored in `SeqTimelineChannel` which can be top-level owned by `Editing`, or it is owned by meta strip to support nesting. Strip properties are completely independent and channel properties are applied on top of particular strip property, thus overriding it. Implementation is separate from channel regions in other editors. This is mainly because style and topology is quite different in VSE. But also code seems to be much more readable this way. Currently channels use functions similar to VSE timeline to draw background to provide illusion of transparency, but only for background and sfra/efra regions. Great portion of this patch is change from using strip visibility and lock status to include channel state - this is facilitated by functions `SEQ_transform_is_locked` and `SEQ_render_is_muted` Originally this included changes in D14263, but patch was split for easier review. Reviewed By: fsiddi, Severin Differential Revision: https://developer.blender.org/D13836
This commit is contained in:
@@ -33,6 +33,7 @@ void seq_render_state_init(SeqRenderState *state);
|
||||
struct ImBuf *seq_render_give_ibuf_seqbase(const struct SeqRenderData *context,
|
||||
float timeline_frame,
|
||||
int chan_shown,
|
||||
struct ListBase *channels,
|
||||
struct ListBase *seqbasep);
|
||||
struct ImBuf *seq_render_effect_execute_threaded(struct SeqEffectHandle *sh,
|
||||
const struct SeqRenderData *context,
|
||||
@@ -43,7 +44,8 @@ struct ImBuf *seq_render_effect_execute_threaded(struct SeqEffectHandle *sh,
|
||||
struct ImBuf *ibuf2,
|
||||
struct ImBuf *ibuf3);
|
||||
void seq_imbuf_to_sequencer_space(struct Scene *scene, struct ImBuf *ibuf, bool make_float);
|
||||
int seq_get_shown_sequences(struct ListBase *seqbase,
|
||||
int seq_get_shown_sequences(struct ListBase *channels,
|
||||
struct ListBase *seqbase,
|
||||
int timeline_frame,
|
||||
int chanshown,
|
||||
struct Sequence **r_seq_arr);
|
||||
|
||||
Reference in New Issue
Block a user