From fdfa3006b44604227a08cec01774687e6281a30c Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 14 Dec 2017 14:22:22 -0500 Subject: [PATCH] [host] ICapture portable interface definition --- host/ICapture.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/host/ICapture.h b/host/ICapture.h index 9ea0e018..37d8d41d 100644 --- a/host/ICapture.h +++ b/host/ICapture.h @@ -58,15 +58,15 @@ enum GrabStatus typedef std::vector CaptureOptions; -__interface ICapture +class ICapture { public: - const char * GetName(); - - bool Initialize(CaptureOptions * options); - void DeInitialize(); - bool ReInitialize(); - enum FrameType GetFrameType(); - size_t GetMaxFrameSize(); - enum GrabStatus GrabFrame(struct FrameInfo & frame); -}; \ No newline at end of file + virtual const char * GetName() = 0; + + virtual bool Initialize(CaptureOptions * options) = 0; + virtual void DeInitialize() = 0; + virtual bool ReInitialize() = 0; + virtual enum FrameType GetFrameType() = 0; + virtual size_t GetMaxFrameSize() = 0; + virtual enum GrabStatus GrabFrame(struct FrameInfo & frame) = 0; +};