mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
30 lines
563 B
C++
30 lines
563 B
C++
#pragma once
|
|
#include "pch.h"
|
|
|
|
|
|
enum class CaptureredFrameType {
|
|
D2DImage, WICBitmap
|
|
};
|
|
|
|
enum class CaptureStyle {
|
|
Normal, Event
|
|
};
|
|
|
|
|
|
// 所有类型的 WindowCapturer 的基类
|
|
class WindowCapturerBase {
|
|
public:
|
|
WindowCapturerBase() {}
|
|
|
|
virtual ~WindowCapturerBase() {}
|
|
|
|
// 不可复制,不可移动
|
|
WindowCapturerBase(const WindowCapturerBase&) = delete;
|
|
WindowCapturerBase(WindowCapturerBase&&) = delete;
|
|
|
|
// 捕获一帧
|
|
virtual ComPtr<ID3D11Texture2D> GetFrame() = 0;
|
|
|
|
// 捕获的帧的类型
|
|
virtual CaptureredFrameType GetFrameType() = 0;
|
|
};
|