MCPcopy Index your code

hub / github.com/Twinklebear/oidn-rs / functions

Functions153 in github.com/Twinklebear/oidn-rs

↓ 37 callersFunctionbuffer_or_skip
(device: &crate::Device, contents: &[f32])
src/tests.rs:4
↓ 29 callersFunctionassert_device_ok
(device: &crate::Device)
src/tests.rs:26
↓ 17 callersMethodimage_dimensions
sets the dimensions of the denoising image, if new width * new height does not equal old width * old height
src/filter.rs:228
↓ 16 callersMethodfilter
(&self, color: &[f32], output: &mut [f32])
src/filter.rs:249
↓ 8 callersMethodclone
(&self)
src/buffer.rs:224
↓ 8 callersMethodcreate_buffer
Creates a new buffer from a slice, returns None if buffer creation failed
src/buffer.rs:21
↓ 8 callersMethodsame_device_as_buf
(&self, buf: &Buffer)
src/buffer.rs:75
↓ 8 callersMethodwrite
Writes to the buffer, returns [None] if the sizes mismatch
src/buffer.rs:154
↓ 7 callersMethodwait
Blocks until the asynchronous filter execution has completed.
src/filter.rs:502
↓ 6 callersMethodalbedo
Set an input auxiliary image containing the albedo per pixel (three channels, values in `[0, 1]`). # Panics - if resource creation fails
src/filter.rs:92
↓ 5 callersMethodalbedo_normal
Set input auxiliary images containing the albedo and normals. Albedo must have three channels per pixel with values in [0, 1]. Normal must contain th
src/filter.rs:65
↓ 5 callersMethodsrgb
Set whether the color is encoded with the sRGB (or 2.2 gamma) curve (LDR only) or is linear. The output will be encoded with the same curve.
src/filter.rs:175
↓ 4 callersMethodfinish
(&mut self)
src/buffer.rs:267
↓ 4 callersMethodget_error
(&self)
src/device.rs:75
↓ 4 callersFunctionpackage_version
(root: &std::path::Path)
shared/helper.rs:251
↓ 4 callersFunctionrun_cargo
( root: &Path, args: &[&str], extra_args: &[OsString], envs: &[(String, OsString)], )
xtask/src/main.rs:113
↓ 3 callersMethodcreate_buffer_with_storage
Creates a new uninitialized buffer with the requested storage mode. The size is expressed as a number of `f32` values to match the rest of the safe b
src/buffer.rs:44
↓ 3 callersMethodexecute_filter_buffer
(&self, color: Option<&Buffer>, output: &Buffer)
src/filter.rs:325
↓ 3 callersMethodfilter_buffer
(&self, color: &Buffer, output: &Buffer)
src/filter.rs:253
↓ 3 callersMethodfilter_buffer_async
Starts filtering buffer-backed images asynchronously. The returned guard keeps the filter and buffers borrowed until the device has been synchronized
src/filter.rs:269
↓ 3 callersMethodhdr
Set whether the color is HDR.
src/filter.rs:147
↓ 3 callersFunctionload_exr
Load an EXR file to an RGB f32 buffer
examples/denoise_exr.rs:87
↓ 3 callersMethodraw
# Safety Raw buffer must not be made invalid (e.g. by destroying it)
src/buffer.rs:194
↓ 3 callersMethodread_buffer_async
Starts an asynchronous read from an OIDN buffer. The returned guard keeps the buffer and destination slice borrowed until the device has been synchro
src/buffer.rs:127
↓ 3 callersMethodsync
Waits until all asynchronous operations on the device have completed.
src/device.rs:87
↓ 3 callersMethodwrite_buffer_async
Starts an asynchronous write to an OIDN buffer. The returned guard keeps the buffer and source slice borrowed until the device has been synchronized.
src/buffer.rs:91
↓ 2 callersMethodconfigure_filter_buffer
( &self, color: Option<&Buffer>, output: &Buffer, )
src/filter.rs:350
↓ 2 callersMethodcreate_buffer_from_raw
# Safety Raw buffer must not be invalid (e.g. destroyed, null ect.) Raw buffer must have been created by this device
src/buffer.rs:64
↓ 2 callersFunctiondownload_and_extract_oidn
( root: &std::path::Path, )
shared/helper.rs:30
↓ 2 callersMethodexecute_filter
(&self, color: Option<&[f32]>, output: &mut [f32])
src/filter.rs:304
↓ 2 callersMethodexecute_filter_buffer_async
( &'filter mut self, color: Option<&'filter Buffer>, output: &'filter mut Buffer,
src/filter.rs:333
↓ 2 callersMethodfilter_in_place
(&self, color: &mut [f32])
src/filter.rs:277
↓ 2 callersMethodfilter_in_place_buffer_async
Starts in-place filtering on a buffer asynchronously. The returned guard keeps the filter and buffer borrowed until the device has been synchronized.
src/filter.rs:297
↓ 2 callersMethodfilter_quality
Sets the quality of the output, the default is high. Balanced lowers the precision, if possible, however some devices will not support this and so th
src/filter.rs:51
↓ 2 callersMethodfinish
(&mut self)
src/filter.rs:506
↓ 2 callersFunctionget_handle
(device_type: OIDNDeviceType)
src/device.rs:110
↓ 2 callersMethodinput_scale
Sets a scale to apply to input values before filtering, without scaling the output too. This can be used to map color or auxiliary feature values to
src/filter.rs:166
↓ 2 callersFunctionnon_empty_env_path
(name: &str)
shared/helper.rs:23
↓ 2 callersFunctionoidn_dir
(root: &std::path::Path)
shared/helper.rs:1
↓ 2 callersFunctionoidn_environment
(root: &Path)
xtask/src/main.rs:151
↓ 2 callersFunctionoidn_package_dirs
(root: &std::path::Path, version: &str)
shared/helper.rs:16
↓ 2 callersFunctionplatform_package_suffixes
()
shared/helper.rs:270
↓ 2 callersMethodread_to_slice
Reads from the buffer to the array, returns [None] if the sizes mismatch
src/buffer.rs:167
↓ 2 callersFunctionsafe_archive_path
( root: &std::path::Path, entry_name: &std::path::Path, )
shared/helper.rs:225
↓ 2 callersFunctiontonemap_kernel
(x: f32)
examples/denoise_exr.rs:48
↓ 2 callersFunctionverify_sha256
( path: &std::path::Path, expected_hex: &str, )
shared/helper.rs:124
↓ 2 callersFunctionworkspace_path
(root: &Path, path: &OsStr)
xtask/src/main.rs:339
↓ 1 callersFunctionappended_path
(variable: &str, path: &Path)
xtask/src/main.rs:247
↓ 1 callersMethodas_raw_oidn_quality
(&self)
src/lib.rs:75
↓ 1 callersMethodas_raw_oidn_storage
(&self)
src/lib.rs:96
↓ 1 callersFunctionbuild_examples
(root: &Path, extra_args: &[OsString])
xtask/src/main.rs:67
↓ 1 callersFunctionbuild_test
(root: &Path, extra_args: &[OsString])
xtask/src/main.rs:72
↓ 1 callersMethodclean_aux
Set whether the auxiliary feature (albedo, normal) images are noise-free. Recommended for highest quality but should not be enabled for noisy auxilia
src/filter.rs:185
↓ 1 callersMethodclear_weights
Clear any previously supplied custom model weights.
src/filter.rs:211
↓ 1 callersFunctioncollect_target_oidn_headers
(dir: &Path, headers: &mut Vec<PathBuf>)
xtask/src/main.rs:219
↓ 1 callersFunctionconfigure_bundled
()
build.rs:57
↓ 1 callersFunctionconfigure_system
()
build.rs:22
↓ 1 callersFunctioncontains_libclang
(dir: &Path)
xtask/src/main.rs:317
↓ 1 callersFunctioncopy_runtime_libraries
(oidn_dir: &std::path::Path)
build.rs:98
↓ 1 callersFunctiondefault_llvm_dirs
()
xtask/src/main.rs:272
↓ 1 callersFunctiondetect_libclang_dir
()
xtask/src/main.rs:255
↓ 1 callersFunctiondownload_archive
( archive_path: &std::path::Path, url: &str, )
shared/helper.rs:111
↓ 1 callersFunctiondownload_oidn_package
(root: &Path, _args: &[OsString])
xtask/src/main.rs:107
↓ 1 callersFunctionensure_archive
( archive_path: &std::path::Path, url: &str, expected_sha: &str, )
shared/helper.rs:86
↓ 1 callersFunctionextract_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:146
↓ 1 callersFunctionextract_tar_gz_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:201
↓ 1 callersFunctionextract_zip_archive
( root: &std::path::Path, archive_path: &std::path::Path, )
shared/helper.rs:165
↓ 1 callersMethodfilter_in_place_buffer
(&self, color: &Buffer)
src/filter.rs:281
↓ 1 callersFunctionfind_bundled_oidn_dir
(root: &std::path::Path)
shared/helper.rs:61
↓ 1 callersFunctionfind_oidn_header
(root: &Path)
xtask/src/main.rs:171
↓ 1 callersFunctionfind_target_oidn_headers
(target_dir: &Path)
xtask/src/main.rs:213
↓ 1 callersFunctiongenerate_bindings
(header: &Path, output: &Path)
xtask/src/main.rs:356
↓ 1 callersFunctiongenerate_sys_bindings
(root: &Path, args: &[OsString])
xtask/src/main.rs:82
↓ 1 callersMethodhdr_scale
(&mut self, hdr_scale: f32)
src/filter.rs:153
↓ 1 callersFunctionheader_candidates
(root: &Path)
xtask/src/main.rs:181
↓ 1 callersFunctionis_runtime_library
(path: &std::path::Path)
build.rs:166
↓ 1 callersFunctionlibclang_file_names
()
xtask/src/main.rs:323
↓ 1 callersFunctionlinear_to_srgb
(x: f32)
examples/denoise_exr.rs:40
↓ 1 callersFunctionllvm_env_dirs
()
xtask/src/main.rs:263
↓ 1 callersFunctionpackage_asset_info
()
shared/helper.rs:298
↓ 1 callersFunctionpackage_asset_info_for_target
()
shared/helper.rs:303
↓ 1 callersFunctionpython_libclang_dir
(python: &str, script: &str)
xtask/src/main.rs:304
↓ 1 callersFunctionpython_libclang_dirs
()
xtask/src/main.rs:296
↓ 1 callersMethodread
Reads from the buffer
src/buffer.rs:180
↓ 1 callersFunctionrun
()
xtask/src/main.rs:40
↓ 1 callersFunctionrun_command
( root: &Path, program: &str, args: &[OsString], envs: &[(String, OsString)], )
xtask/src/main.rs:124
↓ 1 callersFunctionruntime_library_path
(oidn_dir: &Path)
xtask/src/main.rs:238
↓ 1 callersMethodset_pixel
(&mut self, x: usize, y: usize, pixel: (f32, f32, f32, f32))
examples/denoise_exr.rs:78
↓ 1 callersFunctionstorage_buffer_or_skip
(device: &crate::Device, len: usize, storage: Storage)
src/tests.rs:15
↓ 1 callersFunctiontonemap
(x: f32)
examples/denoise_exr.rs:58
↓ 1 callersMethodweights
Set custom trained model weights for the RT filter. The bytes are copied and kept alive by the filter until new weights are supplied or [RayTracing::
src/filter.rs:194
↓ 1 callersFunctionworkspace_root
()
xtask/src/main.rs:331
Methodalbedo_buffer
Set an input auxiliary buffer containing the albedo per pixel (three channels, values in `[0, 1]`). This function is the same as [RayTracing::albedo]
src/filter.rs:137
Methodalbedo_normal_buffer
Set input auxiliary buffer containing the albedo and normals. Albedo buffer must have three channels per pixel with values in [0, 1]. Normal must con
src/filter.rs:115
Functionalbedo_only_filter_executes_without_normal
()
src/tests.rs:391
Functionassert_send
()
src/tests.rs:32
Functionauxiliary_buffer_setters_reject_foreign_devices
()
src/tests.rs:567
Functionbuffer_async_guards_sync_on_drop
()
src/tests.rs:209
Functionbuffer_async_read_write_waits_for_completion
()
src/tests.rs:159
Functionbuffer_async_rejects_mismatched_lengths_and_devices
()
src/tests.rs:187
next →1–100 of 153, ranked by callers