Blender V5.3
effect_text.cc File Reference
#include <cmath>
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BLI_map.hh"
#include "BLI_math_base.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_rect.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_task.hh"
#include "BLI_vector.hh"
#include "BLF_api.hh"
#include "DNA_packedFile_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_vfont_types.h"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf_types.hh"
#include "PRF_profile.hh"
#include "SEQ_effects.hh"
#include "SEQ_proxy.hh"
#include "SEQ_render.hh"
#include "SEQ_utils.hh"
#include "effects.hh"

Go to the source code of this file.

Classes

struct  blender::seq::SeqFontMap
struct  blender::seq::JFACoord

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::seq

Functions

std::recursive_mutex & blender::seq::text_runtime_mutex_get ()
void blender::seq::fontmap_clear ()
static int blender::seq::strip_load_font_file (const std::string &path)
static int blender::seq::strip_load_font_mem (const std::string &name, const uchar *data, int data_size)
static void blender::seq::strip_unload_font (int fontid)

Variables

static std::recursive_mutex blender::seq::text_runtime_mutex
static SeqFontMap blender::seq::g_font_map
static int blender::seq::g_fallback_font_id = -1

Text Effect

constexpr uint16_t blender::seq::JFA_INVALID = 0xFFFF
bool blender::seq::effects_can_render_text (const Strip *strip)
static void blender::seq::init_text_effect (Strip *strip)
static void blender::seq::text_font_unload (TextVars *data, const bool do_id_user)
void blender::seq::effect_text_font_set (Strip *strip, VFont *font)
static void blender::seq::text_font_load (TextVars *data, const bool do_id_user)
static void blender::seq::free_text_effect (Strip *strip, const bool do_id_user)
static void blender::seq::copy_text_effect (Strip *dst, const Strip *src, const int flag)
static StripEarlyOut blender::seq::early_out_text (const Strip *strip, float)
static void blender::seq::text_gaussian_blur_x (const Span< float > gaussian, int half_size, int start_line, int width, int height, const uchar *rect, uchar *dst, const rcti &shadow_rect)
static void blender::seq::text_gaussian_blur_y (const Span< float > gaussian, int half_size, int start_line, int width, int height, const uchar *rect, uchar *dst, const rcti &shadow_rect)
static void blender::seq::clamp_rect (int width, int height, rcti &r_rect)
static void blender::seq::initialize_shadow_alpha (int width, int height, int2 offset, const rcti &shadow_rect, const uchar *input, Array< uchar > &r_shadow_mask)
static void blender::seq::composite_shadow (int width, const rcti &shadow_rect, const float4 &shadow_color, const Array< uchar > &shadow_mask, uchar *output)
static void blender::seq::draw_text_shadow (const RenderData *context, const TextVars *data, int line_height, const rcti &rect, ImBuf *out)
static void blender::seq::jump_flooding_pass (Span< JFACoord > input, MutableSpan< JFACoord > output, int2 size, IndexRange x_range, IndexRange y_range, int step_size)
static void blender::seq::text_draw (const char *text_ptr, const TextVarsRuntime *runtime, float color[4])
static rcti blender::seq::draw_text_outline (const RenderData *context, const TextVars *data, ImBuf *out)
static void blender::seq::fill_rect_alpha_under (ImBuf *ibuf, const float col[4], int x1, int y1, int x2, int y2, float corner_radius)
static int blender::seq::text_effect_line_size_get (const RenderData *context, const TextVars &text)
int blender::seq::text_effect_font_get (TextVars &text)
static int blender::seq::text_effect_font_init (const RenderData *context, TextVars &text, FontFlags font_flags)
static Vector< CharInfo > blender::seq::build_character_info (const TextVars *data, int font)
static int blender::seq::wrap_width_get (const TextVars *data, const int2 image_size)
static void blender::seq::apply_word_wrapping (const TextVars *data, TextVarsRuntime *runtime, const int2 image_size, Vector< CharInfo > &characters)
static int blender::seq::text_box_width_get (const Vector< LineInfo > &lines)
static float2 blender::seq::horizontal_alignment_offset_get (const TextVars *data, float line_width, int max_width)
static float2 blender::seq::anchor_offset_get (const TextVars *data, int width_max, int text_height)
static void blender::seq::calc_boundbox (const TextVars *data, TextVarsRuntime *runtime, const int2 image_size)
static void blender::seq::apply_text_alignment (const TextVars *data, TextVarsRuntime *runtime, const int2 image_size)
void blender::seq::text_effect_update_runtime (const RenderData *context, TextVars &text, const int2 image_size)
void blender::seq::text_effect_adjust_relative (TextVars &text, const int2 old_size, const int2 new_size)
static SeqResult blender::seq::do_text_effect (const RenderData *context, SeqRenderState *, Strip *strip, float, float, const SeqResult &, const SeqResult &)
void blender::seq::text_effect_get_handle (EffectHandle &rval)