2022-02-11 09:07:11 +11:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
* Copyright 2004 Blender Foundation. All rights reserved. */
|
2020-10-26 00:47:06 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup sequencer
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
struct Scene;
|
|
|
|
|
struct Sequence;
|
2022-01-25 17:05:33 +01:00
|
|
|
struct StripProxy;
|
2022-06-02 01:39:40 +02:00
|
|
|
struct SeqCollection;
|
2021-12-08 21:02:29 +11:00
|
|
|
/**
|
|
|
|
|
* Cache must be freed before calling this function
|
|
|
|
|
* since it leaves the seqbase in an invalid state.
|
|
|
|
|
*/
|
2022-01-19 14:12:23 +01:00
|
|
|
void seq_free_sequence_recurse(struct Scene *scene, struct Sequence *seq, bool do_id_user);
|
2022-01-25 17:05:33 +01:00
|
|
|
struct StripProxy *seq_strip_proxy_alloc(void);
|
2022-06-02 01:39:40 +02:00
|
|
|
/**
|
|
|
|
|
* Find meta strip, that contains strip `key`.
|
|
|
|
|
* If lookup hash doesn't exist, it will be created. If hash is tagged as invalid, it will be
|
|
|
|
|
* rebuilt.
|
|
|
|
|
*
|
|
|
|
|
* \param scene: scene that owns lookup hash
|
|
|
|
|
* \param key: pointer to Sequence inside of meta strip
|
|
|
|
|
*
|
|
|
|
|
* \return pointer to meta strip
|
|
|
|
|
*/
|
|
|
|
|
struct Sequence *seq_sequence_lookup_meta_by_seq(const struct Scene *scene,
|
|
|
|
|
const struct Sequence *key);
|
|
|
|
|
/**
|
|
|
|
|
* Find effect strips, that use strip `seq` as one of inputs.
|
|
|
|
|
* If lookup hash doesn't exist, it will be created. If hash is tagged as invalid, it will be
|
|
|
|
|
* rebuilt.
|
|
|
|
|
*
|
|
|
|
|
* \param scene: scene that owns lookup hash
|
|
|
|
|
* \param key: pointer to Sequence inside of meta strip
|
|
|
|
|
*
|
|
|
|
|
* \return collection of effect strips
|
|
|
|
|
*/
|
|
|
|
|
struct SeqCollection *seq_sequence_lookup_effects_by_seq(const struct Scene *scene,
|
|
|
|
|
const struct Sequence *key);
|
2020-10-26 00:47:06 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|