mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
project: Re-apply formatting
This commit is contained in:
parent
ce7e4c97d4
commit
82faab4380
12 changed files with 29 additions and 21 deletions
|
@ -18,11 +18,11 @@
|
|||
*/
|
||||
|
||||
#include "filter-blur.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cfloat>
|
||||
#include <cinttypes>
|
||||
#include <cmath>
|
||||
#include <map>
|
||||
#include <stdexcept>
|
||||
#include "gfx/blur/gfx-blur-box-linear.hpp"
|
||||
#include "gfx/blur/gfx-blur-box.hpp"
|
||||
#include "gfx/blur/gfx-blur-dual-filtering.hpp"
|
||||
|
|
|
@ -74,7 +74,6 @@
|
|||
#define MODE_LOG Log
|
||||
#define MODE_LOG10 Log10
|
||||
|
||||
|
||||
const char* get_name(void*)
|
||||
{
|
||||
return D_TRANSLATE(ST);
|
||||
|
@ -319,58 +318,67 @@ obs_properties_t* get_properties(void*)
|
|||
return pr;
|
||||
}
|
||||
|
||||
void* create(obs_data_t* data, obs_source_t* source) try {
|
||||
void* create(obs_data_t* data, obs_source_t* source)
|
||||
try {
|
||||
return new filter::color_grade::color_grade_instance(data, source);
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to create: %s", obs_source_get_name(source), ex.what());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void destroy(void* ptr) try {
|
||||
void destroy(void* ptr)
|
||||
try {
|
||||
delete reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr);
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to destroy: %s", ex.what());
|
||||
}
|
||||
|
||||
uint32_t get_width(void* ptr) try {
|
||||
uint32_t get_width(void* ptr)
|
||||
try {
|
||||
return reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->get_width();
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to get width: %s", ex.what());
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t get_height(void* ptr) try {
|
||||
uint32_t get_height(void* ptr)
|
||||
try {
|
||||
return reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->get_height();
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to get height: %s", ex.what());
|
||||
return 0;
|
||||
}
|
||||
|
||||
void update(void* ptr, obs_data_t* data) try {
|
||||
void update(void* ptr, obs_data_t* data)
|
||||
try {
|
||||
reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->update(data);
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to update: %s", ex.what());
|
||||
}
|
||||
|
||||
void activate(void* ptr) try {
|
||||
void activate(void* ptr)
|
||||
try {
|
||||
reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->activate();
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to activate: %s", ex.what());
|
||||
}
|
||||
|
||||
void deactivate(void* ptr) try {
|
||||
void deactivate(void* ptr)
|
||||
try {
|
||||
reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->deactivate();
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to deactivate: %s", ex.what());
|
||||
}
|
||||
|
||||
void video_tick(void* ptr, float time) try {
|
||||
void video_tick(void* ptr, float time)
|
||||
try {
|
||||
reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->video_tick(time);
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to tick video: %s", ex.what());
|
||||
}
|
||||
|
||||
void video_render(void* ptr, gs_effect_t* effect) try {
|
||||
void video_render(void* ptr, gs_effect_t* effect)
|
||||
try {
|
||||
reinterpret_cast<filter::color_grade::color_grade_instance*>(ptr)->video_render(effect);
|
||||
} catch (std::exception& ex) {
|
||||
P_LOG_ERROR("<filter-color-grade> Failed to render video: %s", ex.what());
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
|
||||
#include "filter-dynamic-mask.hpp"
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include "strings.hpp"
|
||||
|
||||
// Filter to allow dynamic masking
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
#include "gfx-blur-box-linear.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include "obs/gs/gs-helper.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "util-math.hpp"
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
#include "gfx-blur-box.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include "obs/gs/gs-helper.hpp"
|
||||
#include "plugin.hpp"
|
||||
#include "util-math.hpp"
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
|
||||
#include "gfx-effect-source.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cfloat>
|
||||
#include <climits>
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include <sys/stat.h>
|
||||
#include "obs/gs/gs-helper.hpp"
|
||||
#include "obs/obs-source-tracker.hpp"
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
|
||||
#include "obs-tools.hpp"
|
||||
#include <stdexcept>
|
||||
#include <map>
|
||||
#include <stdexcept>
|
||||
|
||||
struct scs_searchdata {
|
||||
obs_source_t* source;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "plugin.hpp"
|
||||
#include <stdexcept>
|
||||
#include "obs/obs-source-tracker.hpp"
|
||||
#include "filters/filter-blur.hpp"
|
||||
#include "filters/filter-color-grade.hpp"
|
||||
#include "filters/filter-displacement.hpp"
|
||||
|
@ -27,6 +26,7 @@
|
|||
#include "filters/filter-sdf-effects.hpp"
|
||||
#include "filters/filter-shader.hpp"
|
||||
#include "filters/filter-transform.hpp"
|
||||
#include "obs/obs-source-tracker.hpp"
|
||||
#include "sources/source-mirror.hpp"
|
||||
#include "sources/source-shader.hpp"
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@
|
|||
*/
|
||||
|
||||
#include "source-mirror.hpp"
|
||||
#include <stdexcept>
|
||||
#include <bitset>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
#include "obs/obs-source-tracker.hpp"
|
||||
#include "obs/obs-tools.hpp"
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
*/
|
||||
|
||||
#include "util-math.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cctype>
|
||||
#include <cstdlib>
|
||||
#include <stdexcept>
|
||||
#include "util-memory.hpp"
|
||||
|
||||
void* util::vec2a::operator new(size_t count)
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
|
||||
#include "util-memory.hpp"
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
#include <stdexcept>
|
||||
|
||||
#define USE_STD_ALLOC_FREE
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
*/
|
||||
|
||||
#include "utility.hpp"
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include "plugin.hpp"
|
||||
|
||||
// OBS
|
||||
|
|
Loading…
Reference in a new issue