mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-30 15:23:01 +00:00
cmake, code: Abuse pre-processor to disable/enable warnings
This commit is contained in:
parent
8e52bbf88b
commit
08544b4116
158 changed files with 710 additions and 899 deletions
|
@ -20,6 +20,8 @@ NamespaceIndentation: All
|
||||||
# Includes
|
# Includes
|
||||||
#IncludeBlocks: Regroup
|
#IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
|
- Regex: '^"warning-disable.hpp"$'
|
||||||
|
Priority: 50
|
||||||
- Regex: '^(<|")(config.hpp|common.hpp|ui-common.hpp|strings.hpp|version.hpp|obs.h)("|>)'
|
- Regex: '^(<|")(config.hpp|common.hpp|ui-common.hpp|strings.hpp|version.hpp|obs.h)("|>)'
|
||||||
Priority: 100
|
Priority: 100
|
||||||
- Regex: '^<obs-'
|
- Regex: '^<obs-'
|
||||||
|
@ -32,6 +34,8 @@ IncludeCategories:
|
||||||
Priority: 300
|
Priority: 300
|
||||||
- Regex: '.moc"$'
|
- Regex: '.moc"$'
|
||||||
Priority: 300
|
Priority: 300
|
||||||
|
- Regex: '^"warning-enable.hpp"$'
|
||||||
|
Priority: 500
|
||||||
SortIncludes: true
|
SortIncludes: true
|
||||||
|
|
||||||
# Alignment
|
# Alignment
|
||||||
|
|
|
@ -1036,6 +1036,8 @@ endif()
|
||||||
|
|
||||||
# Core
|
# Core
|
||||||
list(APPEND PROJECT_PRIVATE_SOURCE
|
list(APPEND PROJECT_PRIVATE_SOURCE
|
||||||
|
"source/warning-disable.hpp"
|
||||||
|
"source/warning-enable.hpp"
|
||||||
"source/configuration.hpp"
|
"source/configuration.hpp"
|
||||||
"source/configuration.cpp"
|
"source/configuration.cpp"
|
||||||
"source/common.hpp"
|
"source/common.hpp"
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
|
||||||
// Common C includes
|
// Common C includes
|
||||||
#include <cfloat>
|
#include <cfloat>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
@ -44,6 +46,8 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// Common Plugin includes
|
// Common Plugin includes
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
|
@ -56,17 +60,8 @@
|
||||||
#include "util/utility.hpp"
|
#include "util/utility.hpp"
|
||||||
|
|
||||||
// Common OBS includes
|
// Common OBS includes
|
||||||
|
#include "warning-disable.hpp"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <obs.h>
|
#include <obs.h>
|
||||||
|
|
||||||
#include <obs-config.h>
|
#include <obs-config.h>
|
||||||
|
@ -85,15 +80,11 @@ extern "C" {
|
||||||
#include <graphics/vec4.h>
|
#include <graphics/vec4.h>
|
||||||
|
|
||||||
#include <util/platform.h>
|
#include <util/platform.h>
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Fix libOBS's global defines
|
// Fix libOBS's global defines
|
||||||
#undef strtoll
|
#undef strtoll
|
||||||
}
|
}
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// Common Global defines
|
// Common Global defines
|
||||||
/// Logging
|
/// Logging
|
||||||
|
|
|
@ -19,8 +19,11 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx {
|
namespace streamfx {
|
||||||
class configuration {
|
class configuration {
|
||||||
|
|
|
@ -23,9 +23,12 @@
|
||||||
//--------------------------------------------------------------------------------//
|
//--------------------------------------------------------------------------------//
|
||||||
|
|
||||||
#include "encoder-aom-av1.hpp"
|
#include "encoder-aom-av1.hpp"
|
||||||
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include "util/util-logging.hpp"
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
|
|
|
@ -24,30 +24,20 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <memory>
|
|
||||||
#include <queue>
|
|
||||||
#include "encoders/codecs/av1.hpp"
|
#include "encoders/codecs/av1.hpp"
|
||||||
#include "obs/obs-encoder-factory.hpp"
|
#include "obs/obs-encoder-factory.hpp"
|
||||||
#include "util/util-library.hpp"
|
#include "util/util-library.hpp"
|
||||||
#include "util/util-profiler.hpp"
|
#include "util/util-profiler.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include <queue>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <aom/aomcx.h>
|
#include <aom/aomcx.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace streamfx::encoder::aom::av1 {
|
namespace streamfx::encoder::aom::av1 {
|
||||||
|
|
|
@ -21,13 +21,30 @@
|
||||||
|
|
||||||
#include "encoder-ffmpeg.hpp"
|
#include "encoder-ffmpeg.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <sstream>
|
|
||||||
#include "codecs/hevc.hpp"
|
#include "codecs/hevc.hpp"
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
#include "handlers/debug_handler.hpp"
|
#include "handlers/debug_handler.hpp"
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <sstream>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <obs-avc.h>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <libavcodec/avcodec.h>
|
||||||
|
#include <libavutil/dict.h>
|
||||||
|
#include <libavutil/frame.h>
|
||||||
|
#include <libavutil/opt.h>
|
||||||
|
#include <libavutil/pixdesc.h>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_ENCODER_FFMPEG_AMF
|
#ifdef ENABLE_ENCODER_FFMPEG_AMF
|
||||||
#include "handlers/amf_h264_handler.hpp"
|
#include "handlers/amf_h264_handler.hpp"
|
||||||
#include "handlers/amf_hevc_handler.hpp"
|
#include "handlers/amf_hevc_handler.hpp"
|
||||||
|
@ -46,46 +63,6 @@
|
||||||
#include "handlers/dnxhd_handler.hpp"
|
#include "handlers/dnxhd_handler.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <obs-avc.h>
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
|
||||||
#include <libavutil/dict.h>
|
|
||||||
#include <libavutil/frame.h>
|
|
||||||
#include <libavutil/opt.h>
|
|
||||||
#include <libavutil/pixdesc.h>
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "ffmpeg/hwapi/d3d11.hpp"
|
#include "ffmpeg/hwapi/d3d11.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,6 +21,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
#include "ffmpeg/avframe-queue.hpp"
|
||||||
|
#include "ffmpeg/hwapi/base.hpp"
|
||||||
|
#include "ffmpeg/swscale.hpp"
|
||||||
|
#include "handlers/handler.hpp"
|
||||||
|
#include "obs/obs-encoder-factory.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
@ -28,27 +35,13 @@
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "ffmpeg/avframe-queue.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "ffmpeg/hwapi/base.hpp"
|
|
||||||
#include "ffmpeg/swscale.hpp"
|
|
||||||
#include "handlers/handler.hpp"
|
|
||||||
#include "obs/obs-encoder-factory.hpp"
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavutil/frame.h>
|
#include <libavutil/frame.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg {
|
namespace streamfx::encoder::ffmpeg {
|
||||||
|
|
|
@ -28,22 +28,9 @@
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
|
|
|
@ -26,22 +26,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -31,19 +31,9 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Settings
|
// Settings
|
||||||
|
|
|
@ -25,22 +25,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -27,22 +27,9 @@
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Translation
|
// Translation
|
||||||
|
|
|
@ -26,22 +26,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler::amf {
|
namespace streamfx::encoder::ffmpeg::handler::amf {
|
||||||
|
|
|
@ -21,30 +21,20 @@
|
||||||
|
|
||||||
#include "debug_handler.hpp"
|
#include "debug_handler.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
#include "handler.hpp"
|
||||||
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "handler.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "plugin.hpp"
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace streamfx::encoder::ffmpeg::handler;
|
using namespace streamfx::encoder::ffmpeg::handler;
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
#include "dnxhd_handler.hpp"
|
#include "dnxhd_handler.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <array>
|
|
||||||
#include "../codecs/dnxhr.hpp"
|
#include "../codecs/dnxhr.hpp"
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <array>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
using namespace streamfx::encoder::ffmpeg::handler;
|
using namespace streamfx::encoder::ffmpeg::handler;
|
||||||
using namespace streamfx::encoder::codec::dnxhr;
|
using namespace streamfx::encoder::codec::dnxhr;
|
||||||
|
|
||||||
|
|
|
@ -24,22 +24,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -24,22 +24,9 @@
|
||||||
#include "ffmpeg/hwapi/base.hpp"
|
#include "ffmpeg/hwapi/base.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg {
|
namespace streamfx::encoder::ffmpeg {
|
||||||
|
|
|
@ -29,22 +29,9 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ST_KEY_PROFILE "H264.Profile"
|
#define ST_KEY_PROFILE "H264.Profile"
|
||||||
|
|
|
@ -23,22 +23,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -29,22 +29,9 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ST_KEY_PROFILE "H265.Profile"
|
#define ST_KEY_PROFILE "H265.Profile"
|
||||||
|
|
|
@ -23,22 +23,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -24,22 +24,9 @@
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ST_I18N_PRESET "Encoder.FFmpeg.NVENC.Preset"
|
#define ST_I18N_PRESET "Encoder.FFmpeg.NVENC.Preset"
|
||||||
|
|
|
@ -24,14 +24,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4242 4244 4365)
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NVENC has multiple compression modes:
|
/* NVENC has multiple compression modes:
|
||||||
|
|
|
@ -21,11 +21,14 @@
|
||||||
|
|
||||||
#include "prores_aw_handler.hpp"
|
#include "prores_aw_handler.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <array>
|
|
||||||
#include "../codecs/prores.hpp"
|
#include "../codecs/prores.hpp"
|
||||||
#include "ffmpeg/tools.hpp"
|
#include "ffmpeg/tools.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <array>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
using namespace streamfx::encoder::ffmpeg::handler;
|
using namespace streamfx::encoder::ffmpeg::handler;
|
||||||
using namespace streamfx::encoder::codec::prores;
|
using namespace streamfx::encoder::codec::prores;
|
||||||
|
|
||||||
|
|
|
@ -23,22 +23,9 @@
|
||||||
#include "handler.hpp"
|
#include "handler.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::encoder::ffmpeg::handler {
|
namespace streamfx::encoder::ffmpeg::handler {
|
||||||
|
|
|
@ -21,23 +21,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/frame.h>
|
#include <libavutil/frame.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::ffmpeg {
|
namespace streamfx::ffmpeg {
|
||||||
|
|
|
@ -21,24 +21,17 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/frame.h>
|
#include <libavutil/frame.h>
|
||||||
#include <libavutil/hwcontext.h>
|
#include <libavutil/hwcontext.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::ffmpeg::hwapi {
|
namespace streamfx::ffmpeg::hwapi {
|
||||||
|
|
|
@ -22,24 +22,17 @@
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
||||||
#include "d3d11.hpp"
|
#include "d3d11.hpp"
|
||||||
#include <sstream>
|
|
||||||
#include <vector>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <sstream>
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/hwcontext_d3d11va.h>
|
#include <libavutil/hwcontext_d3d11va.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace streamfx::ffmpeg::hwapi;
|
using namespace streamfx::ffmpeg::hwapi;
|
||||||
|
|
|
@ -22,22 +22,12 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "base.hpp"
|
#include "base.hpp"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <atlutil.h>
|
#include <atlutil.h>
|
||||||
#include <d3d11.h>
|
#include <d3d11.h>
|
||||||
#include <d3d11_1.h>
|
#include <d3d11_1.h>
|
||||||
#include <dxgi.h>
|
#include <dxgi.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace streamfx::ffmpeg::hwapi {
|
namespace streamfx::ffmpeg::hwapi {
|
||||||
class d3d11 : public streamfx::ffmpeg::hwapi::base {
|
class d3d11 : public streamfx::ffmpeg::hwapi::base {
|
||||||
|
|
|
@ -20,7 +20,10 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "swscale.hpp"
|
#include "swscale.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
using namespace streamfx::ffmpeg;
|
using namespace streamfx::ffmpeg;
|
||||||
|
|
||||||
|
|
|
@ -21,23 +21,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavutil/pixfmt.h>
|
#include <libavutil/pixfmt.h>
|
||||||
#include <libswscale/swscale.h>
|
#include <libswscale/swscale.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::ffmpeg {
|
namespace streamfx::ffmpeg {
|
||||||
|
|
|
@ -20,27 +20,20 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "tools.hpp"
|
#include "tools.hpp"
|
||||||
#include <list>
|
|
||||||
#include <sstream>
|
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <list>
|
||||||
|
#include <sstream>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavutil/error.h>
|
#include <libavutil/error.h>
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#include <libavutil/pixdesc.h>
|
#include <libavutil/pixdesc.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using namespace streamfx::ffmpeg;
|
using namespace streamfx::ffmpeg;
|
||||||
|
|
|
@ -21,24 +21,17 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavutil/opt.h>
|
#include <libavutil/opt.h>
|
||||||
#include <libavutil/pixfmt.h>
|
#include <libavutil/pixfmt.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace streamfx::ffmpeg::tools {
|
namespace streamfx::ffmpeg::tools {
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <atomic>
|
|
||||||
#include <list>
|
|
||||||
#include <memory>
|
|
||||||
#include <mutex>
|
|
||||||
#include "gfx/gfx-debug.hpp"
|
#include "gfx/gfx-debug.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
@ -31,6 +27,13 @@
|
||||||
#include "util/util-threadpool.hpp"
|
#include "util/util-threadpool.hpp"
|
||||||
#include "util/utility.hpp"
|
#include "util/utility.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <atomic>
|
||||||
|
#include <list>
|
||||||
|
#include <memory>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef ENABLE_FILTER_AUTOFRAMING_NVIDIA
|
#ifdef ENABLE_FILTER_AUTOFRAMING_NVIDIA
|
||||||
#include "nvidia/ar/nvidia-ar-facedetection.hpp"
|
#include "nvidia/ar/nvidia-ar-facedetection.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
|
|
||||||
#include "filter-blur.hpp"
|
#include "filter-blur.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <cfloat>
|
|
||||||
#include <cinttypes>
|
|
||||||
#include <cmath>
|
|
||||||
#include <map>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "gfx/blur/gfx-blur-box-linear.hpp"
|
#include "gfx/blur/gfx-blur-box-linear.hpp"
|
||||||
#include "gfx/blur/gfx-blur-box.hpp"
|
#include "gfx/blur/gfx-blur-box.hpp"
|
||||||
#include "gfx/blur/gfx-blur-dual-filtering.hpp"
|
#include "gfx/blur/gfx-blur-dual-filtering.hpp"
|
||||||
|
@ -33,6 +28,22 @@
|
||||||
#include "obs/obs-source-tracker.hpp"
|
#include "obs/obs-source-tracker.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cfloat>
|
||||||
|
#include <cinttypes>
|
||||||
|
#include <cmath>
|
||||||
|
#include <map>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
|
// OBS
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <callback/signal.h>
|
||||||
|
#include <graphics/graphics.h>
|
||||||
|
#include <graphics/matrix4.h>
|
||||||
|
#include <util/platform.h>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
@ -47,19 +58,6 @@
|
||||||
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// OBS
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4201)
|
|
||||||
#endif
|
|
||||||
#include <callback/signal.h>
|
|
||||||
#include <graphics/graphics.h>
|
|
||||||
#include <graphics/matrix4.h>
|
|
||||||
#include <util/platform.h>
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Translation Strings
|
// Translation Strings
|
||||||
#define ST_I18N "Filter.Blur"
|
#define ST_I18N "Filter.Blur"
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <chrono>
|
|
||||||
#include <functional>
|
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include "gfx/blur/gfx-blur-base.hpp"
|
#include "gfx/blur/gfx-blur-base.hpp"
|
||||||
#include "gfx/gfx-source-texture.hpp"
|
#include "gfx/gfx-source-texture.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
|
@ -31,6 +27,13 @@
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
#include "obs/obs-source-factory.hpp"
|
#include "obs/obs-source-factory.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <chrono>
|
||||||
|
#include <functional>
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::filter::blur {
|
namespace streamfx::filter::blur {
|
||||||
enum class mask_type : int64_t {
|
enum class mask_type : int64_t {
|
||||||
Region,
|
Region,
|
||||||
|
|
|
@ -19,10 +19,22 @@
|
||||||
|
|
||||||
#include "filter-color-grade.hpp"
|
#include "filter-color-grade.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
|
// OBS
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
extern "C" {
|
||||||
|
#include <graphics/graphics.h>
|
||||||
|
#include <graphics/matrix4.h>
|
||||||
|
#include <util/platform.h>
|
||||||
|
}
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
@ -37,18 +49,6 @@
|
||||||
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// OBS
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4201)
|
|
||||||
#endif
|
|
||||||
#include <graphics/graphics.h>
|
|
||||||
#include <graphics/matrix4.h>
|
|
||||||
#include <util/platform.h>
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ST_I18N "Filter.ColorGrade"
|
#define ST_I18N "Filter.ColorGrade"
|
||||||
// Lift
|
// Lift
|
||||||
#define ST_KEY_LIFT "Filter.ColorGrade.Lift"
|
#define ST_KEY_LIFT "Filter.ColorGrade.Lift"
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <vector>
|
|
||||||
#include "gfx/lut/gfx-lut-consumer.hpp"
|
#include "gfx/lut/gfx-lut-consumer.hpp"
|
||||||
#include "gfx/lut/gfx-lut-producer.hpp"
|
#include "gfx/lut/gfx-lut-producer.hpp"
|
||||||
#include "gfx/lut/gfx-lut.hpp"
|
#include "gfx/lut/gfx-lut.hpp"
|
||||||
|
@ -29,6 +28,10 @@
|
||||||
#include "obs/obs-source-factory.hpp"
|
#include "obs/obs-source-factory.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::filter::color_grade {
|
namespace streamfx::filter::color_grade {
|
||||||
enum class detection_mode {
|
enum class detection_mode {
|
||||||
HSV,
|
HSV,
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "filter-denoising.hpp"
|
#include "filter-denoising.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <atomic>
|
|
||||||
#include <memory>
|
|
||||||
#include <mutex>
|
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
@ -29,6 +26,12 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-threadpool.hpp"
|
#include "util/util-threadpool.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <atomic>
|
||||||
|
#include <memory>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
#ifdef ENABLE_FILTER_DENOISING_NVIDIA
|
||||||
#include "nvidia/vfx/nvidia-vfx-denoising.hpp"
|
#include "nvidia/vfx/nvidia-vfx-denoising.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,11 +23,14 @@
|
||||||
|
|
||||||
#include "filter-displacement.hpp"
|
#include "filter-displacement.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
|
|
||||||
#include "filter-dynamic-mask.hpp"
|
#include "filter-dynamic-mask.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "util/util-logging.hpp"
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <list>
|
|
||||||
#include <map>
|
|
||||||
#include "gfx/gfx-source-texture.hpp"
|
#include "gfx/gfx-source-texture.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/obs-source-active-reference.hpp"
|
#include "obs/obs-source-active-reference.hpp"
|
||||||
|
@ -30,6 +28,11 @@
|
||||||
#include "obs/obs-source.hpp"
|
#include "obs/obs-source.hpp"
|
||||||
#include "obs/obs-tools.hpp"
|
#include "obs/obs-tools.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::filter::dynamic_mask {
|
namespace streamfx::filter::dynamic_mask {
|
||||||
enum class channel : int8_t { Invalid = -1, Red, Green, Blue, Alpha };
|
enum class channel : int8_t { Invalid = -1, Red, Green, Blue, Alpha };
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,13 @@
|
||||||
|
|
||||||
#include "filter-sdf-effects.hpp"
|
#include "filter-sdf-effects.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,10 +19,13 @@
|
||||||
|
|
||||||
#include "filter-shader.hpp"
|
#include "filter-shader.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,11 +19,21 @@
|
||||||
|
|
||||||
#include "filter-transform.hpp"
|
#include "filter-transform.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
|
// OBS
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <graphics/graphics.h>
|
||||||
|
#include <graphics/matrix4.h>
|
||||||
|
#include <util/platform.h>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
@ -38,18 +48,6 @@
|
||||||
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
#define D_LOG_DEBUG(...) P_LOG_DEBUG(ST_PREFIX __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// OBS
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4201)
|
|
||||||
#endif
|
|
||||||
#include <graphics/graphics.h>
|
|
||||||
#include <graphics/matrix4.h>
|
|
||||||
#include <util/platform.h>
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ST_I18N "Filter.Transform"
|
#define ST_I18N "Filter.Transform"
|
||||||
#define ST_I18N_CAMERA ST_I18N ".Camera"
|
#define ST_I18N_CAMERA ST_I18N ".Camera"
|
||||||
#define ST_I18N_CAMERA_MODE ST_I18N_CAMERA ".Mode"
|
#define ST_I18N_CAMERA_MODE ST_I18N_CAMERA ".Mode"
|
||||||
|
|
|
@ -19,13 +19,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <vector>
|
|
||||||
#include "obs/gs/gs-mipmapper.hpp"
|
#include "obs/gs/gs-mipmapper.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
#include "obs/gs/gs-vertexbuffer.hpp"
|
#include "obs/gs/gs-vertexbuffer.hpp"
|
||||||
#include "obs/obs-source-factory.hpp"
|
#include "obs/obs-source-factory.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::filter::transform {
|
namespace streamfx::filter::transform {
|
||||||
enum class transform_mode {
|
enum class transform_mode {
|
||||||
ORTHOGRAPHIC = 0,
|
ORTHOGRAPHIC = 0,
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "filter-upscaling.hpp"
|
#include "filter-upscaling.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <atomic>
|
|
||||||
#include <memory>
|
|
||||||
#include <mutex>
|
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
@ -29,6 +26,12 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-threadpool.hpp"
|
#include "util/util-threadpool.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <atomic>
|
||||||
|
#include <memory>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
#ifdef ENABLE_FILTER_UPSCALING_NVIDIA
|
||||||
#include "nvidia/vfx/nvidia-vfx-superresolution.hpp"
|
#include "nvidia/vfx/nvidia-vfx-superresolution.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "filter-virtual-greenscreen.hpp"
|
#include "filter-virtual-greenscreen.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,9 +19,6 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <atomic>
|
|
||||||
#include <memory>
|
|
||||||
#include <mutex>
|
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
@ -29,6 +26,12 @@
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-threadpool.hpp"
|
#include "util/util-threadpool.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <atomic>
|
||||||
|
#include <memory>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef ENABLE_FILTER_VIRTUAL_GREENSCREEN_NVIDIA
|
#ifdef ENABLE_FILTER_VIRTUAL_GREENSCREEN_NVIDIA
|
||||||
#include "nvidia/vfx/nvidia-vfx-greenscreen.hpp"
|
#include "nvidia/vfx/nvidia-vfx-greenscreen.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,7 +16,10 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
void streamfx::gfx::blur::base::set_step_scale_x(double_t v)
|
void streamfx::gfx::blur::base::set_step_scale_x(double_t v)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
|
|
||||||
#include "gfx-blur-box-linear.hpp"
|
#include "gfx-blur-box-linear.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "plugin.hpp"
|
|
||||||
|
|
||||||
#define ST_MAX_BLUR_SIZE 128 // Also change this in box-linear.effect if modified.
|
#define ST_MAX_BLUR_SIZE 128 // Also change this in box-linear.effect if modified.
|
||||||
|
|
||||||
|
|
|
@ -17,12 +17,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace blur {
|
namespace blur {
|
||||||
class box_linear_data {
|
class box_linear_data {
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
|
|
||||||
#include "gfx-blur-box.hpp"
|
#include "gfx-blur-box.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "plugin.hpp"
|
|
||||||
|
|
||||||
#define ST_MAX_BLUR_SIZE 128 // Also change this in box.effect if modified.
|
#define ST_MAX_BLUR_SIZE 128 // Also change this in box.effect if modified.
|
||||||
|
|
||||||
|
|
|
@ -17,12 +17,15 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace blur {
|
namespace blur {
|
||||||
class box_data {
|
class box_data {
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
|
|
||||||
#include "gfx-blur-dual-filtering.hpp"
|
#include "gfx-blur-dual-filtering.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// Dual Filtering Blur
|
// Dual Filtering Blur
|
||||||
//
|
//
|
||||||
// This type of Blur uses downsampling and upsampling and clever math. That makes it less
|
// This type of Blur uses downsampling and upsampling and clever math. That makes it less
|
||||||
|
|
|
@ -17,13 +17,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include <vector>
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace blur {
|
namespace blur {
|
||||||
class dual_filtering_data {
|
class dual_filtering_data {
|
||||||
|
|
|
@ -17,9 +17,12 @@
|
||||||
|
|
||||||
#include "gfx-blur-gaussian-linear.hpp"
|
#include "gfx-blur-gaussian-linear.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// FIXME: This breaks when MAX_KERNEL_SIZE is changed, due to the way the Gaussian
|
// FIXME: This breaks when MAX_KERNEL_SIZE is changed, due to the way the Gaussian
|
||||||
// function first goes up at the point, and then once we pass the critical point
|
// function first goes up at the point, and then once we pass the critical point
|
||||||
// will go down again and it is not handled well. This is a pretty basic
|
// will go down again and it is not handled well. This is a pretty basic
|
||||||
|
|
|
@ -17,13 +17,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include <vector>
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace blur {
|
namespace blur {
|
||||||
class gaussian_linear_data {
|
class gaussian_linear_data {
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
|
|
||||||
#include "gfx-blur-gaussian.hpp"
|
#include "gfx-blur-gaussian.hpp"
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// TODO: It may be possible to optimize to run much faster: https://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/
|
// TODO: It may be possible to optimize to run much faster: https://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/
|
||||||
|
|
||||||
#define ST_KERNEL_SIZE 128u
|
#define ST_KERNEL_SIZE 128u
|
||||||
|
|
|
@ -17,13 +17,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include <vector>
|
|
||||||
#include "gfx-blur-base.hpp"
|
#include "gfx-blur-base.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace blur {
|
namespace blur {
|
||||||
class gaussian_data {
|
class gaussian_data {
|
||||||
|
|
|
@ -19,12 +19,15 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "gfx-debug.hpp"
|
#include "gfx-debug.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "graphics/matrix4.h"
|
#include "graphics/matrix4.h"
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -18,10 +18,13 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-vertexbuffer.hpp"
|
#include "obs/gs/gs-vertexbuffer.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
class debug {
|
class debug {
|
||||||
std::shared_ptr<::streamfx::obs::gs::effect> _effect;
|
std::shared_ptr<::streamfx::obs::gs::effect> _effect;
|
||||||
|
|
|
@ -19,21 +19,15 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "gfx-opengl.hpp"
|
#include "gfx-opengl.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// OpenGL
|
// OpenGL
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include "glad/gl.h"
|
#include "glad/gl.h"
|
||||||
#ifdef D_PLATFORM_WINDOWS
|
#ifdef D_PLATFORM_WINDOWS
|
||||||
#include "glad/wgl.h"
|
#include "glad/wgl.h"
|
||||||
|
@ -41,11 +35,7 @@
|
||||||
#ifdef D_PLATFORM_LINUX
|
#ifdef D_PLATFORM_LINUX
|
||||||
#include "glad/glx.h"
|
#include "glad/glx.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
class opengl {
|
class opengl {
|
||||||
|
|
|
@ -16,10 +16,13 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
#include "gfx-source-texture.hpp"
|
#include "gfx-source-texture.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "obs/obs-tools.hpp"
|
#include "obs/obs-tools.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
streamfx::gfx::source_texture::~source_texture()
|
streamfx::gfx::source_texture::~source_texture()
|
||||||
{
|
{
|
||||||
if (_child && _parent) {
|
if (_child && _parent) {
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <map>
|
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
#include "obs/obs-weak-source.hpp"
|
#include "obs/obs-weak-source.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <map>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
class source_texture {
|
class source_texture {
|
||||||
streamfx::obs::source _parent;
|
streamfx::obs::source _parent;
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "gfx-lut-consumer.hpp"
|
#include "gfx-lut-consumer.hpp"
|
||||||
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
|
|
||||||
streamfx::gfx::lut::consumer::consumer()
|
streamfx::gfx::lut::consumer::consumer()
|
||||||
|
|
|
@ -19,12 +19,14 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
#include "gfx-lut.hpp"
|
#include "gfx-lut.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx::lut {
|
namespace streamfx::gfx::lut {
|
||||||
class consumer {
|
class consumer {
|
||||||
std::shared_ptr<streamfx::gfx::lut::data> _data;
|
std::shared_ptr<streamfx::gfx::lut::data> _data;
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "gfx-lut.hpp"
|
#include "gfx-lut.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx::lut {
|
namespace streamfx::gfx::lut {
|
||||||
class producer {
|
class producer {
|
||||||
|
|
|
@ -19,11 +19,14 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "gfx-lut.hpp"
|
#include "gfx-lut.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,10 +19,12 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
#include "obs/gs/gs-effect.hpp"
|
#include "obs/gs/gs-effect.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx::lut {
|
namespace streamfx::gfx::lut {
|
||||||
class data {
|
class data {
|
||||||
std::shared_ptr<streamfx::obs::gs::effect> _producer_effect;
|
std::shared_ptr<streamfx::obs::gs::effect> _producer_effect;
|
||||||
|
|
|
@ -17,10 +17,13 @@
|
||||||
|
|
||||||
#include "gfx-shader-param-basic.hpp"
|
#include "gfx-shader-param-basic.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
static const std::string_view _annotation_field_type = "field_type";
|
static const std::string_view _annotation_field_type = "field_type";
|
||||||
static const std::string_view _annotation_suffix = "suffix";
|
static const std::string_view _annotation_suffix = "suffix";
|
||||||
|
|
|
@ -17,10 +17,13 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <vector>
|
|
||||||
#include "gfx-shader-param.hpp"
|
#include "gfx-shader-param.hpp"
|
||||||
#include "obs/gs/gs-effect-parameter.hpp"
|
#include "obs/gs/gs-effect-parameter.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <vector>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace shader {
|
namespace shader {
|
||||||
enum class basic_field_type {
|
enum class basic_field_type {
|
||||||
|
|
|
@ -17,15 +17,18 @@
|
||||||
|
|
||||||
#include "gfx-shader-param-texture.hpp"
|
#include "gfx-shader-param-texture.hpp"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
#include <map>
|
|
||||||
#include <sstream>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "gfx-shader.hpp"
|
#include "gfx-shader.hpp"
|
||||||
#include "gfx/gfx-debug.hpp"
|
#include "gfx/gfx-debug.hpp"
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "obs/obs-source-tracker.hpp"
|
#include "obs/obs-source-tracker.hpp"
|
||||||
#include "util/util-platform.hpp"
|
#include "util/util-platform.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <map>
|
||||||
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// - FFT Audio Conversion
|
// - FFT Audio Conversion
|
||||||
// - FFT Variable Size...
|
// - FFT Variable Size...
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include <chrono>
|
|
||||||
#include <mutex>
|
|
||||||
#include "gfx-shader-param.hpp"
|
#include "gfx-shader-param.hpp"
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
@ -12,6 +10,11 @@
|
||||||
#include "obs/obs-tools.hpp"
|
#include "obs/obs-tools.hpp"
|
||||||
#include "obs/obs-weak-source.hpp"
|
#include "obs/obs-weak-source.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <chrono>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace shader {
|
namespace shader {
|
||||||
enum class texture_field_type {
|
enum class texture_field_type {
|
||||||
|
|
|
@ -16,11 +16,14 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
#include "gfx-shader-param.hpp"
|
#include "gfx-shader-param.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <sstream>
|
|
||||||
#include "gfx-shader-param-basic.hpp"
|
#include "gfx-shader-param-basic.hpp"
|
||||||
#include "gfx-shader-param-texture.hpp"
|
#include "gfx-shader-param-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <sstream>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#define ST_ANNO_ORDER "order"
|
#define ST_ANNO_ORDER "order"
|
||||||
#define ST_ANNO_VISIBILITY "visible"
|
#define ST_ANNO_VISIBILITY "visible"
|
||||||
#define ST_ANNO_AUTOMATIC "automatic"
|
#define ST_ANNO_AUTOMATIC "automatic"
|
||||||
|
|
|
@ -16,9 +16,12 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "obs/gs/gs-effect-parameter.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "obs/gs/gs-effect-parameter.hpp"
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace shader {
|
namespace shader {
|
||||||
|
|
|
@ -16,13 +16,16 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
|
|
||||||
#include "gfx-shader.hpp"
|
#include "gfx-shader.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "obs/obs-tools.hpp"
|
#include "obs/obs-tools.hpp"
|
||||||
#include "plugin.hpp"
|
#include "plugin.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstring>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#define ST_I18N "Shader"
|
#define ST_I18N "Shader"
|
||||||
#define ST_I18N_REFRESH ST_I18N ".Refresh"
|
#define ST_I18N_REFRESH ST_I18N ".Refresh"
|
||||||
#define ST_KEY_REFRESH "Shader.Refresh"
|
#define ST_KEY_REFRESH "Shader.Refresh"
|
||||||
|
|
|
@ -17,13 +17,16 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
|
#include "gfx/shader/gfx-shader-param.hpp"
|
||||||
|
#include "obs/gs/gs-effect.hpp"
|
||||||
|
#include "obs/gs/gs-rendertarget.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include "gfx/shader/gfx-shader-param.hpp"
|
#include "warning-enable.hpp"
|
||||||
#include "obs/gs/gs-effect.hpp"
|
|
||||||
#include "obs/gs/gs-rendertarget.hpp"
|
|
||||||
|
|
||||||
namespace streamfx::gfx {
|
namespace streamfx::gfx {
|
||||||
namespace shader {
|
namespace shader {
|
||||||
|
|
|
@ -18,11 +18,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nvidia-ar-facedetection.hpp"
|
#include "nvidia-ar-facedetection.hpp"
|
||||||
#include <algorithm>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -19,13 +19,16 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <string_view>
|
|
||||||
#include "nvidia/ar/nvidia-ar.hpp"
|
#include "nvidia/ar/nvidia-ar.hpp"
|
||||||
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
||||||
#include "nvidia/cv/nvidia-cv-image.hpp"
|
#include "nvidia/cv/nvidia-cv-image.hpp"
|
||||||
#include "nvidia/cv/nvidia-cv-texture.hpp"
|
#include "nvidia/cv/nvidia-cv-texture.hpp"
|
||||||
#include "nvidia/cv/nvidia-cv.hpp"
|
#include "nvidia/cv/nvidia-cv.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <string_view>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::ar {
|
namespace streamfx::nvidia::ar {
|
||||||
class feature {
|
class feature {
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -19,13 +19,16 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "nvidia-ar.hpp"
|
#include "nvidia-ar.hpp"
|
||||||
#include <filesystem>
|
|
||||||
#include <mutex>
|
|
||||||
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
#include "util/util-platform.hpp"
|
#include "util/util-platform.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <filesystem>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
@ -41,24 +44,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <KnownFolders.h>
|
#include <KnownFolders.h>
|
||||||
#include <ShlObj.h>
|
#include <ShlObj.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ST_LIBRARY_NAME "nvARPose.dll"
|
#define ST_LIBRARY_NAME "nvARPose.dll"
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -19,9 +19,12 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cinttypes>
|
|
||||||
#include "nvidia/cv/nvidia-cv.hpp"
|
#include "nvidia/cv/nvidia-cv.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cinttypes>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#define P_NVAR_DEFINE_FUNCTION(name, ...) \
|
#define P_NVAR_DEFINE_FUNCTION(name, ...) \
|
||||||
private: \
|
private: \
|
||||||
typedef ::streamfx::nvidia::cv::result (*t##name)(__VA_ARGS__); \
|
typedef ::streamfx::nvidia::cv::result (*t##name)(__VA_ARGS__); \
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nvidia-cuda-context.hpp"
|
#include "nvidia-cuda-context.hpp"
|
||||||
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "util/util-logging.hpp"
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
|
@ -37,22 +40,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <atlutil.h>
|
#include <atlutil.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ENABLE_STACK_CHECKS
|
#define ENABLE_STACK_CHECKS
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <memory>
|
|
||||||
#include "nvidia-cuda.hpp"
|
#include "nvidia-cuda.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cuda {
|
namespace streamfx::nvidia::cuda {
|
||||||
class context_stack;
|
class context_stack;
|
||||||
|
|
||||||
|
|
|
@ -18,12 +18,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cstddef>
|
|
||||||
#include <memory>
|
|
||||||
#include "nvidia-cuda-stream.hpp"
|
#include "nvidia-cuda-stream.hpp"
|
||||||
#include "nvidia-cuda.hpp"
|
#include "nvidia-cuda.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cstddef>
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cuda {
|
namespace streamfx::nvidia::cuda {
|
||||||
class gstexture {
|
class gstexture {
|
||||||
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nvidia-cuda-memory.hpp"
|
#include "nvidia-cuda-memory.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "nvidia-cuda.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "nvidia-cuda.hpp"
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cuda {
|
namespace streamfx::nvidia::cuda {
|
||||||
class memory {
|
class memory {
|
||||||
|
|
|
@ -18,11 +18,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <memory>
|
|
||||||
#include "nvidia-cuda-context.hpp"
|
#include "nvidia-cuda-context.hpp"
|
||||||
#include "nvidia-cuda-stream.hpp"
|
#include "nvidia-cuda-stream.hpp"
|
||||||
#include "nvidia-cuda.hpp"
|
#include "nvidia-cuda.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cuda {
|
namespace streamfx::nvidia::cuda {
|
||||||
class obs {
|
class obs {
|
||||||
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nvidia-cuda-stream.hpp"
|
#include "nvidia-cuda-stream.hpp"
|
||||||
#include <stdexcept>
|
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <stdexcept>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <memory>
|
|
||||||
#include "nvidia-cuda.hpp"
|
#include "nvidia-cuda.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <memory>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cuda {
|
namespace streamfx::nvidia::cuda {
|
||||||
class stream {
|
class stream {
|
||||||
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
std::shared_ptr<::streamfx::nvidia::cuda::cuda> _cuda;
|
||||||
|
|
|
@ -18,9 +18,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nvidia-cuda.hpp"
|
#include "nvidia-cuda.hpp"
|
||||||
#include <mutex>
|
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
|
|
@ -18,29 +18,19 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cstddef>
|
|
||||||
#include <tuple>
|
|
||||||
#include "util/util-bitmask.hpp"
|
#include "util/util-bitmask.hpp"
|
||||||
#include "util/util-library.hpp"
|
#include "util/util-library.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cstddef>
|
||||||
|
#include <tuple>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <d3d11.h>
|
#include <d3d11.h>
|
||||||
#include <dxgi.h>
|
#include <dxgi.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define P_CUDA_DEFINE_FUNCTION(name, ...) \
|
#define P_CUDA_DEFINE_FUNCTION(name, ...) \
|
||||||
|
|
|
@ -19,9 +19,12 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cinttypes>
|
|
||||||
#include "nvidia/cv/nvidia-cv.hpp"
|
#include "nvidia/cv/nvidia-cv.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cinttypes>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cv {
|
namespace streamfx::nvidia::cv {
|
||||||
using ::streamfx::nvidia::cv::component_layout;
|
using ::streamfx::nvidia::cv::component_layout;
|
||||||
using ::streamfx::nvidia::cv::component_type;
|
using ::streamfx::nvidia::cv::component_type;
|
||||||
|
|
|
@ -19,10 +19,13 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cinttypes>
|
|
||||||
#include "nvidia/cv/nvidia-cv-image.hpp"
|
#include "nvidia/cv/nvidia-cv-image.hpp"
|
||||||
#include "obs/gs/gs-texture.hpp"
|
#include "obs/gs/gs-texture.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cinttypes>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
namespace streamfx::nvidia::cv {
|
namespace streamfx::nvidia::cv {
|
||||||
using ::streamfx::nvidia::cv::component_layout;
|
using ::streamfx::nvidia::cv::component_layout;
|
||||||
using ::streamfx::nvidia::cv::component_type;
|
using ::streamfx::nvidia::cv::component_type;
|
||||||
|
|
|
@ -23,13 +23,16 @@
|
||||||
// - NVIDIA Augmented Reality SDK
|
// - NVIDIA Augmented Reality SDK
|
||||||
|
|
||||||
#include "nvidia-cv.hpp"
|
#include "nvidia-cv.hpp"
|
||||||
#include <filesystem>
|
|
||||||
#include <mutex>
|
|
||||||
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
#include "nvidia/cuda/nvidia-cuda-obs.hpp"
|
||||||
#include "obs/gs/gs-helper.hpp"
|
#include "obs/gs/gs-helper.hpp"
|
||||||
#include "util/util-logging.hpp"
|
#include "util/util-logging.hpp"
|
||||||
#include "util/util-platform.hpp"
|
#include "util/util-platform.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <filesystem>
|
||||||
|
#include <mutex>
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define ST_PREFIX "<%s> "
|
#define ST_PREFIX "<%s> "
|
||||||
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
#define D_LOG_ERROR(x, ...) P_LOG_ERROR(ST_PREFIX##x, __FUNCTION_SIG__, __VA_ARGS__)
|
||||||
|
@ -45,24 +48,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
#ifdef _MSC_VER
|
#include "warning-disable.hpp"
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <KnownFolders.h>
|
#include <KnownFolders.h>
|
||||||
#include <ShlObj.h>
|
#include <ShlObj.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#ifdef _MSC_VER
|
#include "warning-enable.hpp"
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LIB_NAME "NVCVImage.dll"
|
#define LIB_NAME "NVCVImage.dll"
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -19,30 +19,17 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cinttypes>
|
|
||||||
#include "nvidia/cuda/nvidia-cuda.hpp"
|
#include "nvidia/cuda/nvidia-cuda.hpp"
|
||||||
#include "util/util-bitmask.hpp"
|
#include "util/util-bitmask.hpp"
|
||||||
#include "util/util-library.hpp"
|
#include "util/util-library.hpp"
|
||||||
|
|
||||||
|
#include "warning-disable.hpp"
|
||||||
|
#include <cinttypes>
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(push)
|
|
||||||
#pragma warning(disable : 4464)
|
|
||||||
#pragma warning(disable : 4820)
|
|
||||||
#pragma warning(disable : 5220)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wall"
|
|
||||||
#pragma GCC diagnostic ignored "-Wextra"
|
|
||||||
#endif
|
|
||||||
#include <d3d11.h>
|
#include <d3d11.h>
|
||||||
#include <dxgi.h>
|
#include <dxgi.h>
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning(pop)
|
|
||||||
#else
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
#include "warning-enable.hpp"
|
||||||
|
|
||||||
#define NVCVI_DEFINE_FUNCTION(name, ...) \
|
#define NVCVI_DEFINE_FUNCTION(name, ...) \
|
||||||
private: \
|
private: \
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue