#ifndef __DXGI_CAPTURER_H__ #define __DXGI_CAPTURER_H__ #include #include struct AVFrame; class DxgiCapturer { public: DxgiCapturer(); ~DxgiCapturer(); public: bool Open(int left, int top, int width, int height); void Close(); public: HDC GetHdc(); AVFrame* GetFrame(); private: class DxgiCapturerPrivate* d; }; #endif