Blender V5.3
SEQ_effects.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8#include "DNA_vec_types.h"
9
11#include "BLI_mutex.hh"
12#include "BLI_vector.hh"
13
14#include <mutex>
15
16namespace blender {
17
21
22struct Main;
23struct Scene;
24struct Strip;
25struct VFont;
26
27namespace seq {
28
29struct RenderData;
30
31void effect_ensure_initialized(Strip *strip);
32void effect_free(Strip *strip);
33
34void compositor_effect_nodes_update_interface(Main &bmain, Scene &sequencer_scene, Strip &strip);
35
40void compositor_effect_nodes_input_usages(const Scene &sequencer_scene,
41 Strip &strip,
42 Vector<bool> &r_used,
43 Vector<bool> &r_visible);
44
45/* Returns the minimum number of inputs needed by the effect type.
46 * Note: some effects (compositor) will return zero; they can
47 * take variable number of inputs. */
51
52void effect_text_font_set(Strip *strip, VFont *font);
53bool effects_can_render_text(const Strip *strip);
54void text_effect_update_runtime(const RenderData *context, TextVars &text, const int2 image_size);
59void text_effect_adjust_relative(TextVars &text, const int2 old_size, const int2 new_size);
60int text_effect_font_get(TextVars &text);
61std::recursive_mutex &text_runtime_mutex_get();
62
63struct CharInfo {
65 int index = 0;
67 int offset = 0;
69 int byte_length = 0;
71 float2 position{0.0f, 0.0f};
73 int advance_x = 0;
75 bool do_wrap = false;
76};
77
83
86
88 rcti text_boundbox; /* Bound-box used for box drawing and selection. */
92 int font;
93 bool editing_is_active; /* UI uses this to differentiate behavior. */
94};
95
96} // namespace seq
97} // namespace blender
void effect_text_font_set(Strip *strip, VFont *font)
void effect_ensure_initialized(Strip *strip)
Definition effects.cc:137
std::recursive_mutex & text_runtime_mutex_get()
void compositor_effect_nodes_input_usages(const Scene &sequencer_scene, Strip &strip, Vector< bool > &r_used, Vector< bool > &r_visible)
bool effect_is_transition(StripType type)
Definition effects.cc:381
void effect_free(Strip *strip)
Definition effects.cc:147
void text_effect_update_runtime(const RenderData *context, TextVars &text, const int2 image_size)
int text_effect_font_get(TextVars &text)
void text_effect_adjust_relative(TextVars &text, const int2 old_size, const int2 new_size)
bool effects_can_render_text(const Strip *strip)
int effect_type_get_min_num_inputs(StripType type)
Definition effects.cc:347
void compositor_effect_nodes_update_interface(Main &bmain, Scene &sequencer_scene, Strip &strip)
bool strip_type_is_effect(StripType type)
Definition effects.cc:374
BMesh Iterators.
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
Vector< CharInfo > characters