mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[Tools] Add DShow webcam report tool (#10502)
This commit is contained in:
22
tools/WebcamReportTool/DirectShowUtils.h
Normal file
22
tools/WebcamReportTool/DirectShowUtils.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include <initguid.h>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <dshow.h>
|
||||
|
||||
#include <wil/com.h>
|
||||
#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>>;
|
||||
Reference in New Issue
Block a user