mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-05-14 11:17:53 +00:00
21 lines
313 B
C++
21 lines
313 B
C++
#pragma once
|
|
|
|
#include "comet/handle_except.h"
|
|
#include <mfapi.h>
|
|
|
|
namespace comet
|
|
{
|
|
struct auto_mf
|
|
{
|
|
auto_mf(DWORD dwFlags = MFSTARTUP_FULL)
|
|
{
|
|
MFStartup(MF_VERSION) | comet::raise_exception;
|
|
}
|
|
~auto_mf()
|
|
{
|
|
MFShutdown();
|
|
}
|
|
};
|
|
}
|
|
|