Blender V4.3
COM_VectorBlurOperation.cc File Reference
#include <cmath>
#include <cstring>
#include <memory>
#include "BLI_array.hh"
#include "BLI_index_range.hh"
#include "BLI_math_base.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BLI_task.hh"
#include "COM_VectorBlurOperation.h"

Go to the source code of this file.

Classes

struct  blender::compositor::MotionRect
 
struct  blender::compositor::MotionLine
 
struct  blender::compositor::Accumulator
 

Namespaces

namespace  blender
 
namespace  blender::compositor
 

Macros

#define MOTION_BLUR_TILE_SIZE   32
 
#define DEPTH_SCALE   100.0f
 

Functions

static float2 blender::compositor::max_velocity (const float2 &a, const float2 &b)
 
static uint32_t blender::compositor::velocity_atomic_max_value (const float2 &value, const int2 &texel)
 
static float2 blender::compositor::max_velocity_approximate (const float2 &a, const float2 &b, const int2 &a_texel, const int2 &b_texel)
 
static MemoryBuffer blender::compositor::compute_max_tile_velocity (MemoryBuffer *velocity_buffer)
 
static MotionRect blender::compositor::compute_motion_rect (int2 tile, float2 motion, int2 size)
 
static MotionLine blender::compositor::compute_motion_line (int2 tile, float2 motion)
 
static bool blender::compositor::is_inside_motion_line (int2 tile, MotionLine motion_line)
 
static MemoryBuffer blender::compositor::dilate_max_velocity (MemoryBuffer &max_tile_velocity, float shutter_speed)
 
static float blender::compositor::interleaved_gradient_noise (int2 p)
 
static float2 blender::compositor::spread_compare (float center_motion_length, float sample_motion_length, float offset_length)
 
static float2 blender::compositor::depth_compare (float center_depth, float sample_depth)
 
static float blender::compositor::dir_compare (float2 offset, float2 sample_motion, float sample_motion_length)
 
static float2 blender::compositor::sample_weights (float center_depth, float sample_depth, float center_motion_length, float sample_motion_length, float offset_length)
 
static void blender::compositor::gather_sample (MemoryBuffer *image_buffer, MemoryBuffer *depth_buffer, MemoryBuffer *velocity_buffer, int2 size, float2 screen_uv, float center_depth, float center_motion_len, float2 offset, float offset_len, const bool next, float shutter_speed, Accumulator &accum)
 
static void blender::compositor::gather_blur (MemoryBuffer *image_buffer, MemoryBuffer *depth_buffer, MemoryBuffer *velocity_buffer, int2 size, float2 screen_uv, float2 center_motion, float center_depth, float2 max_motion, float ofs, const bool next, int samples_count, float shutter_speed, Accumulator &accum)
 
static void blender::compositor::motion_blur (MemoryBuffer *image_buffer, MemoryBuffer *depth_buffer, MemoryBuffer *velocity_buffer, MemoryBuffer *max_velocity_buffer, MemoryBuffer *output, int samples_count, float shutter_speed)
 

Macro Definition Documentation

◆ DEPTH_SCALE

#define DEPTH_SCALE   100.0f

Definition at line 22 of file COM_VectorBlurOperation.cc.

Referenced by blender::compositor::depth_compare().

◆ MOTION_BLUR_TILE_SIZE