25#include "RNA_prototypes.hh"
37 bool uninitialized_pixels)
41 Scene *scene = context->scene;
42 int x = context->rectx;
43 int y = context->recty;
50 const bool use_float =
83 float fac = (rad > 0.0f ? 1.0f / rad : 0.0f);
84 for (
int i = -size; i <= size; i++) {
87 gaussian[i + size] = val;
90 float inv_sum = 1.0f / sum;
91 for (
int i = 0; i < n; i++) {
92 gaussian[i] *= inv_sum;
139 if (strip->effectdata ==
nullptr) {
141 if (h.
init !=
nullptr) {
150 if (h.
free !=
nullptr) {
166 switch (strip_type) {
287 if (strip->is_effect()) {
304 float fac =
float(timeline_frame - strip->left_handle());
309 fac /= strip->enddisp - strip->startdisp;
312 fac /= strip->length(scene);
320 float timeline_frame,
321 const bool is_current_frame)
331 &scene->
id, strip, RNA_Strip,
"effect_fader", 0,
nullptr);
337 if (is_current_frame &&
340 return strip->effect_fader;
344 return strip->effect_fader;
#define PRF_scope_with_name(ui_name, category)
T clamp(const T &a, const T &min, const T &max)
float filter_kernel_value(FilterKernel kernel, float x)
void ensure_ibuf_is_sequencer_space(const Scene *scene, ImBuf *ibuf, bool make_float)
EffectHandle strip_blend_mode_handle_get(Strip *strip)
void mul_effect_get_handle(EffectHandle &rval)
static void copy_effect_default(Strip *dst, const Strip *src, const int)
void effect_ensure_initialized(Strip *strip)
EffectHandle strip_effect_handle_get(Strip *strip)
void alpha_under_effect_get_handle(EffectHandle &rval)
void wipe_effect_get_handle(EffectHandle &rval)
void gaussian_blur_effect_get_handle(EffectHandle &rval)
void solid_color_effect_get_handle(EffectHandle &rval)
StripEarlyOut early_out_mul_input2(const Strip *, float fac)
void text_effect_get_handle(EffectHandle &rval)
bool effect_is_transition(StripType type)
void effect_free(Strip *strip)
Array< float > make_gaussian_blur_kernel(float rad, int size)
void gamma_cross_effect_get_handle(EffectHandle &rval)
void blend_mode_effect_get_handle(EffectHandle &rval)
SeqResult prepare_effect_imbufs(const RenderData *context, const SeqResult &ibuf1, const SeqResult &ibuf2, bool uninitialized_pixels)
void compositor_effect_get_handle(EffectHandle &rval)
void cross_effect_get_handle(EffectHandle &rval)
void multi_camera_effect_get_handle(EffectHandle &rval)
static StripEarlyOut early_out_noop(const Strip *, float)
void speed_effect_get_handle(EffectHandle &rval)
void add_effect_get_handle(EffectHandle &rval)
static float transition_fader_calc(const Scene *scene, const Strip *strip, float timeline_frame)
StripEarlyOut early_out_mul_input1(const Strip *, float fac)
static void init_noop(Strip *)
EffectHandle effect_handle_get(StripType strip_type)
void adjustment_effect_get_handle(EffectHandle &rval)
void sub_effect_get_handle(EffectHandle &rval)
static EffectHandle effect_handle_for_blend_mode_get(StripBlendMode blend)
int effect_type_get_min_num_inputs(StripType type)
void glow_effect_get_handle(EffectHandle &rval)
void color_mix_effect_get_handle(EffectHandle &rval)
float effect_fader_calc(Scene *scene, Strip *strip, float timeline_frame, const bool is_current_frame)
void alpha_over_effect_get_handle(EffectHandle &rval)
void seq_imbuf_assign_sequencer_space(const Scene *scene, ImBuf *ibuf)
bool strip_type_is_effect(StripType type)
StripEarlyOut early_out_fade(const Strip *, float fac)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ STRIP_TYPE_GAUSSIAN_BLUR
void * MEM_dupalloc_void(const void *vmemh) ATTR_WARN_UNUSED_RESULT
float BKE_scene_frame_get(const Scene *scene)
@ SEQ_USE_EFFECT_DEFAULT_FADE
ImBuf * IMB_allocImBuf(unsigned int x, unsigned int y, ImBufFlags flags)
@ STRIP_BLEND_LINEAR_BURN
@ STRIP_BLEND_BLEND_COLOR
@ STRIP_BLEND_VIVID_LIGHT
void IMB_metadata_copy(ImBuf *ibuf_dst, const ImBuf *ibuf_src)
const ColorSpace * IMB_colormanagement_space_get_named(const char *name)
FCurve * id_data_find_fcurve(ID *id, void *data, StructRNA *type, const char *prop_name, int index, bool *r_driven)
ocio::ColorSpace ColorSpace
float evaluate_fcurve(const FCurve *fcu, float evaltime)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
const ColorSpace & byte_colorspace() const
const float * float_data() const
ColorManagedColorspaceSettings sequencer_colorspace_settings
void(*) copy(Strip *dst, const Strip *src, int flag)
void(*) free(Strip *strip, bool do_id_user)
void(*) init(Strip *strip)
StripEarlyOut(*) early_out(const Strip *strip, float fac)
SeqResult(*) execute(const RenderData *context, SeqRenderState *state, Strip *strip, float timeline_frame, float fac, const SeqResult &input1, const SeqResult &input2)