2017-10-31 12:21:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-31 13:51:53 +00:00
|
|
|
#include "common/KVMGFXHeader.h"
|
2017-10-31 12:21:05 +00:00
|
|
|
|
2017-10-31 14:46:47 +00:00
|
|
|
struct FrameInfo
|
|
|
|
{
|
|
|
|
unsigned int width;
|
|
|
|
unsigned int height;
|
|
|
|
unsigned int stride;
|
|
|
|
void * buffer;
|
|
|
|
size_t bufferSize;
|
|
|
|
size_t outSize;
|
|
|
|
};
|
|
|
|
|
2017-10-31 12:21:05 +00:00
|
|
|
__interface ICapture
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool Initialize();
|
2017-10-31 13:51:53 +00:00
|
|
|
void DeInitialize();
|
2017-10-31 12:21:05 +00:00
|
|
|
enum FrameType GetFrameType();
|
|
|
|
enum FrameComp GetFrameCompression();
|
|
|
|
size_t GetMaxFrameSize();
|
2017-10-31 14:46:47 +00:00
|
|
|
bool GrabFrame(struct FrameInfo & frame);
|
2017-10-31 12:21:05 +00:00
|
|
|
};
|