/* * @Author: DI JUNKUN * @Date: 2023-12-15 * Copyright (c) 2023 by DI JUNKUN, All Rights Reserved. */ #ifndef _SCREEN_CAPTURER_H_ #define _SCREEN_CAPTURER_H_ #include class ScreenCapturer { public: typedef struct { int left; int top; int right; int bottom; } RECORD_DESKTOP_RECT; typedef std::function cb_desktop_data; public: virtual ~ScreenCapturer() {} public: virtual int Init(const RECORD_DESKTOP_RECT &rect, const int fps, cb_desktop_data cb) = 0; virtual int Destroy() = 0; virtual int Start() = 0; virtual int Stop() = 0; }; #endif