avfilter/vsrc_gfxcapture: make checkheaders happy

This commit is contained in:
Timo Rothenpieler
2025-09-14 18:47:02 +02:00
parent 9e3c07f2df
commit d74d3080ff
3 changed files with 30 additions and 21 deletions

View File

@@ -19,6 +19,10 @@
#ifndef AVFILTER_VSRC_GFXCAPTURE_H #ifndef AVFILTER_VSRC_GFXCAPTURE_H
#define AVFILTER_VSRC_GFXCAPTURE_H #define AVFILTER_VSRC_GFXCAPTURE_H
#include "libavutil/log.h"
#include "libavutil/rational.h"
#include "libavfilter/avfilter.h"
typedef struct GfxCaptureContextCpp GfxCaptureContextCpp; typedef struct GfxCaptureContextCpp GfxCaptureContextCpp;
enum GfxResizeMode { enum GfxResizeMode {

View File

@@ -16,24 +16,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
extern "C" { #include "vsrc_gfxcapture_winrt.hpp"
#include "config.h" #include "vsrc_gfxcapture_shader.h"
}
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0A00
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0A00
#endif
#define WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION 0x130000
// work around bug in mingw double-defining IReference<unsigned char> (BYTE == boolean)
#define ____FIReference_1_boolean_INTERFACE_DEFINED__
#include <windows.h>
#include <initguid.h>
#include <wrl.h>
#include <roapi.h>
#include <dwmapi.h> #include <dwmapi.h>
#include <d3d11.h> #include <d3d11.h>
#include <d3dcompiler.h> #include <d3dcompiler.h>
@@ -66,16 +51,12 @@ extern "C" {
#include <atomic> #include <atomic>
#include <cinttypes> #include <cinttypes>
#include <condition_variable> #include <condition_variable>
#include <functional>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <regex> #include <regex>
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include "vsrc_gfxcapture_winrt.h"
#include "vsrc_gfxcapture_shader.h"
using namespace ABI::Windows::System; using namespace ABI::Windows::System;
using namespace ABI::Windows::Foundation; using namespace ABI::Windows::Foundation;
using namespace ABI::Windows::Graphics::Capture; using namespace ABI::Windows::Graphics::Capture;

View File

@@ -19,6 +19,30 @@
#ifndef AVFILTER_VSRC_GFXCAPTURE_WINRT_H #ifndef AVFILTER_VSRC_GFXCAPTURE_WINRT_H
#define AVFILTER_VSRC_GFXCAPTURE_WINRT_H #define AVFILTER_VSRC_GFXCAPTURE_WINRT_H
extern "C" {
#include "config.h"
}
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0A00
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0A00
#endif
#define WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION 0x130000
// work around bug in mingw double-defining IReference<unsigned char> (BYTE == boolean)
#define ____FIReference_1_boolean_INTERFACE_DEFINED__
#include <windows.h>
#include <initguid.h>
#include <wrl.h>
#include <roapi.h>
#include <windows.foundation.h>
#include <atomic>
#include <functional>
#include <memory>
// Forward-declare IDirect3DDxgiInterfaceAccess if headers too old // Forward-declare IDirect3DDxgiInterfaceAccess if headers too old
#if !HAVE_IDIRECT3DDXGIINTERFACEACCESS #if !HAVE_IDIRECT3DDXGIINTERFACEACCESS
namespace Windows::Graphics::DirectX::Direct3D11 { namespace Windows::Graphics::DirectX::Direct3D11 {