mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +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);
|
std::unique_lock<std::mutex> ul(_provider_lock);
|
||||||
|
|
||||||
switch (_provider) {
|
switch (_provider) {
|
||||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||||
case denoising_provider::NVIDIA_DENOISING:
|
case denoising_provider::NVIDIA_DENOISING:
|
||||||
nvvfx_denoising_update(data);
|
nvvfx_denoising_update(data);
|
||||||
break;
|
break;
|
||||||
|
@ -158,7 +158,7 @@ void denoising_instance::update(obs_data_t* data)
|
||||||
void streamfx::filter::denoising::denoising_instance::properties(obs_properties_t* properties)
|
void streamfx::filter::denoising::denoising_instance::properties(obs_properties_t* properties)
|
||||||
{
|
{
|
||||||
switch (_provider_ui) {
|
switch (_provider_ui) {
|
||||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||||
case denoising_provider::NVIDIA_DENOISING:
|
case denoising_provider::NVIDIA_DENOISING:
|
||||||
nvvfx_denoising_properties(properties);
|
nvvfx_denoising_properties(properties);
|
||||||
break;
|
break;
|
||||||
|
@ -190,7 +190,7 @@ void denoising_instance::video_tick(float_t time)
|
||||||
std::unique_lock<std::mutex> ul(_provider_lock);
|
std::unique_lock<std::mutex> ul(_provider_lock);
|
||||||
|
|
||||||
switch (_provider) {
|
switch (_provider) {
|
||||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||||
case denoising_provider::NVIDIA_DENOISING:
|
case denoising_provider::NVIDIA_DENOISING:
|
||||||
nvvfx_denoising_size();
|
nvvfx_denoising_size();
|
||||||
break;
|
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"};
|
::streamfx::obs::gs::debug_marker profiler1{::streamfx::obs::gs::debug_color_convert, "Process"};
|
||||||
#endif
|
#endif
|
||||||
switch (_provider) {
|
switch (_provider) {
|
||||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||||
case denoising_provider::NVIDIA_DENOISING:
|
case denoising_provider::NVIDIA_DENOISING:
|
||||||
nvvfx_denoising_process();
|
nvvfx_denoising_process();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue