2024-02-21 20:16:44 +01:00
|
|
|
/* SPDX-FileCopyrightText: 2024 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2020-11-05 13:33:27 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* \ingroup sequencer
|
|
|
|
*/
|
|
|
|
|
2024-02-05 10:37:42 +01:00
|
|
|
#include "BLI_vector.hh"
|
|
|
|
|
2020-11-05 13:33:27 +01:00
|
|
|
struct ImBuf;
|
2023-11-14 09:51:41 +01:00
|
|
|
struct LinkNode;
|
2020-11-06 00:29:00 +01:00
|
|
|
struct ListBase;
|
2020-11-05 13:33:27 +01:00
|
|
|
struct Scene;
|
2021-01-04 02:03:34 +01:00
|
|
|
struct SeqEffectHandle;
|
2020-11-06 00:29:00 +01:00
|
|
|
struct SeqRenderData;
|
2020-11-05 13:33:27 +01:00
|
|
|
struct Sequence;
|
|
|
|
|
|
|
|
/* mutable state for sequencer */
|
2023-11-14 09:51:41 +01:00
|
|
|
struct SeqRenderState {
|
2024-02-05 10:37:42 +01:00
|
|
|
LinkNode *scene_parents = nullptr;
|
2023-11-14 09:51:41 +01:00
|
|
|
};
|
2020-11-05 13:33:27 +01:00
|
|
|
|
2023-11-14 09:51:41 +01:00
|
|
|
ImBuf *seq_render_give_ibuf_seqbase(const SeqRenderData *context,
|
|
|
|
float timeline_frame,
|
|
|
|
int chan_shown,
|
|
|
|
ListBase *channels,
|
|
|
|
ListBase *seqbasep);
|
|
|
|
ImBuf *seq_render_effect_execute_threaded(SeqEffectHandle *sh,
|
|
|
|
const SeqRenderData *context,
|
|
|
|
Sequence *seq,
|
|
|
|
float timeline_frame,
|
|
|
|
float fac,
|
|
|
|
ImBuf *ibuf1,
|
|
|
|
ImBuf *ibuf2,
|
|
|
|
ImBuf *ibuf3);
|
2024-02-05 10:37:42 +01:00
|
|
|
void seq_imbuf_to_sequencer_space(const Scene *scene, ImBuf *ibuf, bool make_float);
|
|
|
|
blender::Vector<Sequence *> seq_get_shown_sequences(
|
|
|
|
const Scene *scene, ListBase *channels, ListBase *seqbase, int timeline_frame, int chanshown);
|
2023-11-14 09:51:41 +01:00
|
|
|
ImBuf *seq_render_strip(const SeqRenderData *context,
|
|
|
|
SeqRenderState *state,
|
|
|
|
Sequence *seq,
|
|
|
|
float timeline_frame);
|
|
|
|
ImBuf *seq_render_mask(const SeqRenderData *context,
|
|
|
|
Mask *mask,
|
|
|
|
float frame_index,
|
|
|
|
bool make_float);
|
2024-02-05 10:37:42 +01:00
|
|
|
void seq_imbuf_assign_spaces(const Scene *scene, ImBuf *ibuf);
|