2021-03-30 23:27:42 +08:00
|
|
|
#pragma once
|
|
|
|
#include <initguid.h>
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
#include <dshow.h>
|
|
|
|
|
2023-01-16 19:18:55 +08:00
|
|
|
// disable warning 26471 - Don't use reinterpret_cast. A cast from void* can use static_cast
|
2023-02-08 19:54:16 +08:00
|
|
|
// disable warning 26492 - Don't use const_cast to cast away const on winrt
|
2023-02-08 18:59:34 +08:00
|
|
|
// Disable 26497 for winrt - This function function-name could be marked constexpr if compile-time evaluation is desired.
|
2023-01-16 19:18:55 +08:00
|
|
|
#pragma warning(push)
|
2023-02-08 19:54:16 +08:00
|
|
|
#pragma warning(disable : 26471 26492 26497)
|
2021-03-30 23:27:42 +08:00
|
|
|
#include <wil/com.h>
|
2023-01-16 19:18:55 +08:00
|
|
|
#pragma warning(push)
|
|
|
|
|
2021-03-30 23:27:42 +08:00
|
|
|
#include <winrt/Windows.Foundation.h>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
std::ofstream& log();
|
|
|
|
|
|
|
|
#define TRACE log() << __FUNCTION__ << '\n';
|
|
|
|
#define LOG(msg) log() << msg << '\n';
|
|
|
|
|
|
|
|
void DeleteMediaTypeHelper(AM_MEDIA_TYPE* pmt);
|
|
|
|
|
|
|
|
using unique_media_type_ptr =
|
|
|
|
wistd::unique_ptr<AM_MEDIA_TYPE, wil::function_deleter<decltype(&DeleteMediaTypeHelper), DeleteMediaTypeHelper>>;
|