obs-studio/plugins/win-mf/mf-plugin.cpp

41 lines
682 B
C++
Raw Normal View History

#include <obs-module.h>
#include "mf-config.hpp"
#if ENABLE_WINMF
#include <util/profiler.h>
#include "mf-common.hpp"
extern "C" extern void RegisterMFAACEncoder();
extern void RegisterMFH264Encoders();
#endif
extern "C" bool obs_module_load(void)
{
#if ENABLE_WINMF
MFStartup(MF_VERSION, MFSTARTUP_FULL);
RegisterMFAACEncoder();
RegisterMFH264Encoders();
#endif
return true;
}
extern "C" void obs_module_unload(void)
{
#if ENABLE_WINMF
MFShutdown();
#endif
}
OBS_DECLARE_MODULE()
2018-09-11 01:51:38 -07:00
MODULE_EXPORT const char *obs_module_description(void)
{
return "Windows Media Foundations H.264/AAC encoder";
}
#if ENABLE_WINMF
OBS_MODULE_USE_DEFAULT_LOCALE("win-mf", "en-US")
#endif