mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
filter/denoising: Fix incorrect define checks
This commit is contained in:
parent
1d5d601256
commit
a5166c409e
1 changed files with 4 additions and 4 deletions
|
@ -144,7 +144,7 @@ void denoising_instance::update(obs_data_t* data)
|
|||
std::unique_lock<std::mutex> ul(_provider_lock);
|
||||
|
||||
switch (_provider) {
|
||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
||||
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||
case denoising_provider::NVIDIA_DENOISING:
|
||||
nvvfx_denoising_update(data);
|
||||
break;
|
||||
|
@ -158,7 +158,7 @@ void denoising_instance::update(obs_data_t* data)
|
|||
void streamfx::filter::denoising::denoising_instance::properties(obs_properties_t* properties)
|
||||
{
|
||||
switch (_provider_ui) {
|
||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
||||
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||
case denoising_provider::NVIDIA_DENOISING:
|
||||
nvvfx_denoising_properties(properties);
|
||||
break;
|
||||
|
@ -190,7 +190,7 @@ void denoising_instance::video_tick(float_t time)
|
|||
std::unique_lock<std::mutex> ul(_provider_lock);
|
||||
|
||||
switch (_provider) {
|
||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
||||
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||
case denoising_provider::NVIDIA_DENOISING:
|
||||
nvvfx_denoising_size();
|
||||
break;
|
||||
|
@ -343,7 +343,7 @@ void denoising_instance::video_render(gs_effect_t* effect)
|
|||
::streamfx::obs::gs::debug_marker profiler1{::streamfx::obs::gs::debug_color_convert, "Process"};
|
||||
#endif
|
||||
switch (_provider) {
|
||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
||||
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||
case denoising_provider::NVIDIA_DENOISING:
|
||||
nvvfx_denoising_process();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue