Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/denoising.h
| Show All 16 Lines | |||||
| #ifndef __DENOISING_H__ | #ifndef __DENOISING_H__ | ||||
| #define __DENOISING_H__ | #define __DENOISING_H__ | ||||
| #include "device/device.h" | #include "device/device.h" | ||||
| #include "device/device_denoising.h" | #include "device/device_denoising.h" | ||||
| #include "render/buffers.h" | #include "render/buffers.h" | ||||
| #include "util/util_api.h" | |||||
| #include "util/util_string.h" | #include "util/util_string.h" | ||||
| #include "util/util_unique_ptr.h" | #include "util/util_unique_ptr.h" | ||||
| #include "util/util_vector.h" | #include "util/util_vector.h" | ||||
| #include <OpenImageIO/imageio.h> | #include <OpenImageIO/imageio.h> | ||||
| OIIO_NAMESPACE_USING | OIIO_NAMESPACE_USING | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Denoiser */ | /* Denoiser */ | ||||
| class Denoiser { | class Denoiser { | ||||
| public: | |||||
| Denoiser(DeviceInfo &device_info); | |||||
| ~Denoiser(); | |||||
| bool run(); | |||||
| /* Error message after running, in case of failure. */ | /* Error message after running, in case of failure. */ | ||||
| string error; | GET_READ_ONLY(string, error) | ||||
| /* Sequential list of frame filepaths to denoise. */ | /* Sequential list of frame filepaths to denoise. */ | ||||
| vector<string> input; | GET_SET(vector<string>, input) | ||||
| /* Sequential list of frame filepaths to write result to. Empty entries | /* Sequential list of frame filepaths to write result to. Empty entries | ||||
| * are skipped, so only a subset of the sequence can be denoised while | * are skipped, so only a subset of the sequence can be denoised while | ||||
| * taking into account all input frames. */ | * taking into account all input frames. */ | ||||
| vector<string> output; | GET_SET(vector<string>, output) | ||||
| /* Sample number override, takes precedence over values from input frames. */ | /* Sample number override, takes precedence over values from input frames. */ | ||||
| int samples_override; | GET_SET(int, samples_override) | ||||
| /* Tile size for processing on device. */ | /* Tile size for processing on device. */ | ||||
| int2 tile_size; | GET_SET(int2, tile_size) | ||||
| /* Equivalent to the settings in the regular denoiser. */ | /* Equivalent to the settings in the regular denoiser. */ | ||||
| DenoiseParams params; | GET_SET(DenoiseParams, params) | ||||
| public: | |||||
| Denoiser(DeviceInfo &device_info); | |||||
| ~Denoiser(); | |||||
| bool run(); | |||||
| protected: | protected: | ||||
| friend class DenoiseTask; | friend class DenoiseTask; | ||||
| Stats stats; | Stats stats; | ||||
| Profiler profiler; | Profiler profiler; | ||||
| Device *device; | Device *device; | ||||
| ▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines | |||||