Blender V5.0
denoising.cpp File Reference
#include "session/denoising.h"
#include "device/cpu/device.h"
#include "session/display_driver.h"
#include "util/map.h"
#include "util/task.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 (unique_ptr_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()

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

Definition at line 198 of file denoising.cpp.

References NOISY, and unique_ptr_vector< T >::push_back().

Referenced by DenoiseTask::load().

◆ fill_mapping()

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

Definition at line 64 of file denoising.cpp.

References name, and pos.

Referenced by input_channels(), and output_channels().

◆ input_channels()

◆ output_channels()

vector< ChannelMapping > output_channels ( )
static

Definition at line 87 of file denoising.cpp.

References fill_mapping().

Referenced by DenoiseImageLayer::detect_denoising_channels().

◆ parse_channel_name()

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

Definition at line 35 of file denoising.cpp.

References name, split_last_dot(), and view.

Referenced by DenoiseImage::parse_channels().

◆ split_last_dot()

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

Definition at line 20 of file denoising.cpp.

References in, and pos.

Referenced by parse_channel_name().

Variable Documentation

◆ INPUT_DENOISING_ALBEDO

const int INPUT_DENOISING_ALBEDO = 6
static

Definition at line 74 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 73 of file denoising.cpp.

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

◆ INPUT_MOTION

const int INPUT_MOTION = 9
static

Definition at line 75 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 72 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 71 of file denoising.cpp.

Referenced by DenoiseImageLayer::detect_denoising_channels().

◆ OUTPUT_NUM_CHANNELS

const int OUTPUT_NUM_CHANNELS = 3
static