Blender V5.0
vse_effect_text.cc File Reference
#include <cmath>
#include <mutex>
#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.h"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BLI_path_utils.hh"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_string_utf8.h"
#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 "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
namespace  blender::seq

Functions

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 SeqFontMap blender::seq::g_font_map

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)
void blender::seq::effect_text_font_unload (TextVars *data, const bool do_id_user)
void blender::seq::effect_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::load_text_effect (Strip *strip)
static void blender::seq::copy_text_effect (Strip *dst, const Strip *src, const int flag)
static int blender::seq::num_inputs_text ()
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, const TextVarsRuntime *runtime, ImBuf *out)
static void blender::seq::fill_rect_alpha_under (const 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 Strip *strip)
int blender::seq::text_effect_font_init (const RenderData *context, const Strip *strip, FontFlags font_flags)
static Vector< CharInfoblender::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 width_max)
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)
TextVarsRuntimeblender::seq::text_effect_calc_runtime (const Strip *strip, int font, const int2 image_size)
static ImBufblender::seq::do_text_effect (const RenderData *context, SeqRenderState *, Strip *strip, float, float, ImBuf *, ImBuf *)
void blender::seq::text_effect_get_handle (EffectHandle &rval)