[host] ICapture portable interface definition

This commit is contained in:
arcnmx 2017-12-14 14:22:22 -05:00
parent a01d755ab5
commit fdfa3006b4

View File

@ -58,15 +58,15 @@ enum GrabStatus
typedef std::vector<const char *> CaptureOptions; typedef std::vector<const char *> CaptureOptions;
__interface ICapture class ICapture
{ {
public: public:
const char * GetName(); virtual const char * GetName() = 0;
bool Initialize(CaptureOptions * options); virtual bool Initialize(CaptureOptions * options) = 0;
void DeInitialize(); virtual void DeInitialize() = 0;
bool ReInitialize(); virtual bool ReInitialize() = 0;
enum FrameType GetFrameType(); virtual enum FrameType GetFrameType() = 0;
size_t GetMaxFrameSize(); virtual size_t GetMaxFrameSize() = 0;
enum GrabStatus GrabFrame(struct FrameInfo & frame); virtual enum GrabStatus GrabFrame(struct FrameInfo & frame) = 0;
}; };