2017-06-28 21:21:42 +00:00
|
|
|
/*
|
|
|
|
* Modern effects for a modern Streamer
|
|
|
|
* Copyright (C) 2017 Michael Fabian Dirks
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "plugin.h"
|
2017-07-03 00:46:33 +00:00
|
|
|
#include "filter-blur.h"
|
2017-06-28 21:21:42 +00:00
|
|
|
#include "filter-displacement.h"
|
|
|
|
#include "filter-shape.h"
|
2017-06-29 01:41:32 +00:00
|
|
|
#include "filter-transform.h"
|
2017-06-28 21:21:42 +00:00
|
|
|
|
|
|
|
OBS_DECLARE_MODULE();
|
|
|
|
OBS_MODULE_AUTHOR("Michael Fabian Dirks");
|
|
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("obs-stream-effects", "en-US");
|
|
|
|
|
2017-07-03 00:46:33 +00:00
|
|
|
Filter::Blur *filterBlur;
|
2017-06-28 21:21:42 +00:00
|
|
|
Filter::Displacement *filterDisplacement;
|
|
|
|
Filter::Shape *filterShape;
|
2017-06-29 01:41:32 +00:00
|
|
|
Filter::Transform *filterTransform;
|
2017-06-28 21:21:42 +00:00
|
|
|
|
|
|
|
MODULE_EXPORT bool obs_module_load(void) {
|
|
|
|
filterDisplacement = new Filter::Displacement();
|
|
|
|
filterShape = new Filter::Shape();
|
2017-06-29 01:41:32 +00:00
|
|
|
filterTransform = new Filter::Transform();
|
2017-07-03 00:46:33 +00:00
|
|
|
filterBlur = new Filter::Blur();
|
2017-06-28 21:21:42 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
MODULE_EXPORT void obs_module_unload(void) {
|
2017-06-29 01:41:32 +00:00
|
|
|
delete filterTransform;
|
2017-06-28 21:21:42 +00:00
|
|
|
delete filterShape;
|
|
|
|
delete filterDisplacement;
|
2017-07-03 00:46:33 +00:00
|
|
|
delete filterBlur;
|
2017-06-28 21:21:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MODULE_EXPORT const char* obs_module_name() {
|
|
|
|
return PLUGIN_NAME;
|
|
|
|
}
|
|
|
|
|
|
|
|
MODULE_EXPORT const char* obs_module_description() {
|
|
|
|
return PLUGIN_NAME;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define NOMINMAX
|
|
|
|
#define NOINOUT
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE, DWORD, LPVOID) {
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|