Blender  V3.3
Classes | Functions | Variables
denoising.cpp File Reference
#include "session/denoising.h"
#include "util/map.h"
#include "util/system.h"
#include "util/task.h"
#include "util/time.h"
#include <OpenImageIO/filesystem.h>

Go to the source code of this file.

Classes

struct  ChannelMapping
 

Functions

static CCL_NAMESPACE_BEGIN 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 ()
 
static void add_pass (vector< Pass * > &passes, PassType type, PassMode mode=PassMode::NOISY)
 

Variables

static const int INPUT_NUM_CHANNELS = 13
 
static const int INPUT_NOISY_IMAGE = 0
 
static const int INPUT_DENOISING_NORMAL = 3
 
static const int INPUT_DENOISING_ALBEDO = 6
 
static const int INPUT_MOTION = 9
 
static const int OUTPUT_NUM_CHANNELS = 3
 

Function Documentation

◆ add_pass()

static void add_pass ( vector< Pass * > &  passes,
PassType  type,
PassMode  mode = PassMode::NOISY 
)
static

Definition at line 197 of file denoising.cpp.

References type.

Referenced by DenoiseTask::load().

◆ fill_mapping()

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

Definition at line 63 of file denoising.cpp.

References channels(), map, and 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 86 of file denoising.cpp.

References fill_mapping(), and map.

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 34 of file denoising.cpp.

References split_last_dot(), and view.

Referenced by DenoiseImage::parse_channels().

◆ split_last_dot()

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

Definition at line 19 of file denoising.cpp.

References pos.

Referenced by parse_channel_name().

Variable Documentation

◆ INPUT_DENOISING_ALBEDO

const int INPUT_DENOISING_ALBEDO = 6
static

Definition at line 73 of file denoising.cpp.

Referenced by input_channels(), and DenoiseImage::read_pixels().

◆ INPUT_DENOISING_NORMAL

const int INPUT_DENOISING_NORMAL = 3
static

Definition at line 72 of file denoising.cpp.

Referenced by input_channels(), and DenoiseImage::read_pixels().

◆ INPUT_MOTION

const int INPUT_MOTION = 9
static

Definition at line 74 of file denoising.cpp.

Referenced by input_channels(), and DenoiseImage::read_pixels().

◆ INPUT_NOISY_IMAGE

const int INPUT_NOISY_IMAGE = 0
static

Definition at line 71 of file denoising.cpp.

Referenced by input_channels(), and DenoiseImage::read_pixels().

◆ INPUT_NUM_CHANNELS

const int INPUT_NUM_CHANNELS = 13
static

Definition at line 70 of file denoising.cpp.

Referenced by DenoiseImageLayer::detect_denoising_channels().

◆ OUTPUT_NUM_CHANNELS

const int OUTPUT_NUM_CHANNELS = 3
static