Blender  V2.93
Classes | Functions | Variables
denoising.cpp File Reference
#include "render/denoising.h"
#include "kernel/filter/filter_defines.h"
#include "util/util_foreach.h"
#include "util/util_map.h"
#include "util/util_system.h"
#include "util/util_task.h"
#include "util/util_time.h"
#include <OpenImageIO/filesystem.h>

Go to the source code of this file.

Classes

struct  ChannelMapping
 

Functions

static CCL_NAMESPACE_BEGIN void print_progress (int num, int total, int frame, int num_frames)
 
static bool split_last_dot (string &in, string &suffix)
 
static bool parse_channel_name (string name, string &renderlayer, string &pass, string &channel, bool multiview_channels)
 
static void fill_mapping (vector< ChannelMapping > &map, int pos, string name, string channels)
 
static vector< ChannelMappinginput_channels ()
 
static vector< ChannelMappingoutput_channels ()
 

Variables

static const int INPUT_NUM_CHANNELS = 15
 
static const int INPUT_DENOISING_DEPTH = 0
 
static const int INPUT_DENOISING_NORMAL = 1
 
static const int INPUT_DENOISING_SHADOWING = 4
 
static const int INPUT_DENOISING_ALBEDO = 5
 
static const int INPUT_NOISY_IMAGE = 8
 
static const int INPUT_DENOISING_VARIANCE = 11
 
static const int INPUT_DENOISING_INTENSITY = 14
 
static const int OUTPUT_NUM_CHANNELS = 3
 

Function Documentation

◆ fill_mapping()

static void fill_mapping ( vector< ChannelMapping > &  map,
int  pos,
string  name,
string  channels 
)
static

Definition at line 119 of file denoising.cpp.

References pos.

Referenced by input_channels(), and output_channels().

◆ input_channels()

static vector<ChannelMapping> input_channels ( )
static

◆ output_channels()

static vector<ChannelMapping> output_channels ( )
static

Definition at line 148 of file denoising.cpp.

References fill_mapping().

Referenced by DenoiseImageLayer::detect_denoising_channels().

◆ parse_channel_name()

static bool parse_channel_name ( string  name,
string &  renderlayer,
string &  pass,
string &  channel,
bool  multiview_channels 
)
static

Definition at line 90 of file denoising.cpp.

References split_last_dot(), and view.

Referenced by DenoiseImage::parse_channels().

◆ print_progress()

static CCL_NAMESPACE_BEGIN void print_progress ( int  num,
int  total,
int  frame,
int  num_frames 
)
static

Definition at line 33 of file denoising.cpp.

References frame_len(), label, len, string_printf(), system_console_width(), v, and x.

Referenced by DenoiseTask::acquire_tile().

◆ split_last_dot()

static bool split_last_dot ( string &  in,
string &  suffix 
)
static

Definition at line 75 of file denoising.cpp.

References pos.

Referenced by parse_channel_name().

Variable Documentation

◆ INPUT_DENOISING_ALBEDO

const int INPUT_DENOISING_ALBEDO = 5
static

Definition at line 130 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_DENOISING_DEPTH

const int INPUT_DENOISING_DEPTH = 0
static

Definition at line 127 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_DENOISING_INTENSITY

const int INPUT_DENOISING_INTENSITY = 14
static

Definition at line 133 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_DENOISING_NORMAL

const int INPUT_DENOISING_NORMAL = 1
static

Definition at line 128 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_DENOISING_SHADOWING

const int INPUT_DENOISING_SHADOWING = 4
static

Definition at line 129 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_DENOISING_VARIANCE

const int INPUT_DENOISING_VARIANCE = 11
static

Definition at line 132 of file denoising.cpp.

Referenced by input_channels().

◆ INPUT_NOISY_IMAGE

const int INPUT_NOISY_IMAGE = 8
static

Definition at line 131 of file denoising.cpp.

Referenced by input_channels(), and DenoiseTask::map_neighboring_tiles().

◆ INPUT_NUM_CHANNELS

const int INPUT_NUM_CHANNELS = 15
static

◆ OUTPUT_NUM_CHANNELS

const int OUTPUT_NUM_CHANNELS = 3
static