2015-09-15 11:45:37 -07:00
|
|
|
#include <obs-module.h>
|
2018-02-25 22:37:56 -08:00
|
|
|
#include "mf-config.hpp"
|
2015-09-15 11:45:37 -07:00
|
|
|
|
2018-02-25 22:37:56 -08:00
|
|
|
#if ENABLE_WINMF
|
|
|
|
#include <util/profiler.h>
|
2015-09-15 11:45:37 -07:00
|
|
|
#include "mf-common.hpp"
|
|
|
|
|
|
|
|
extern "C" extern void RegisterMFAACEncoder();
|
|
|
|
extern void RegisterMFH264Encoders();
|
2018-02-25 22:37:56 -08:00
|
|
|
#endif
|
2015-09-15 11:45:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
extern "C" bool obs_module_load(void)
|
|
|
|
{
|
2018-02-25 22:37:56 -08:00
|
|
|
#if ENABLE_WINMF
|
2015-09-15 11:45:37 -07:00
|
|
|
MFStartup(MF_VERSION, MFSTARTUP_FULL);
|
|
|
|
|
|
|
|
RegisterMFAACEncoder();
|
|
|
|
RegisterMFH264Encoders();
|
2018-02-25 22:37:56 -08:00
|
|
|
#endif
|
2015-09-15 11:45:37 -07:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" void obs_module_unload(void)
|
|
|
|
{
|
2018-02-25 22:37:56 -08:00
|
|
|
#if ENABLE_WINMF
|
2015-09-15 11:45:37 -07:00
|
|
|
MFShutdown();
|
2018-02-25 22:37:56 -08:00
|
|
|
#endif
|
2015-09-15 11:45:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
OBS_DECLARE_MODULE()
|
2018-02-25 22:37:56 -08:00
|
|
|
|
|
|
|
#if ENABLE_WINMF
|
2015-09-15 11:45:37 -07:00
|
|
|
OBS_MODULE_USE_DEFAULT_LOCALE("win-mf", "en-US")
|
2018-02-25 22:37:56 -08:00
|
|
|
#endif
|