mf-plugin.cpp 568 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <obs-module.h>
  2. #include "mf-config.hpp"
  3. #if ENABLE_WINMF
  4. #include <util/profiler.h>
  5. #include "mf-common.hpp"
  6. extern "C" extern void RegisterMFAACEncoder();
  7. extern void RegisterMFH264Encoders();
  8. #endif
  9. extern "C" bool obs_module_load(void)
  10. {
  11. #if ENABLE_WINMF
  12. MFStartup(MF_VERSION, MFSTARTUP_FULL);
  13. RegisterMFAACEncoder();
  14. RegisterMFH264Encoders();
  15. #endif
  16. return true;
  17. }
  18. extern "C" void obs_module_unload(void)
  19. {
  20. #if ENABLE_WINMF
  21. MFShutdown();
  22. #endif
  23. }
  24. OBS_DECLARE_MODULE()
  25. #if ENABLE_WINMF
  26. OBS_MODULE_USE_DEFAULT_LOCALE("win-mf", "en-US")
  27. #endif