[host] Updated to use the new header format

This commit is contained in:
Geoffrey McRae 2017-11-25 18:00:04 +11:00
parent cb96bd6493
commit 5ecf2d36c1
4 changed files with 1 additions and 19 deletions

View file

@ -222,14 +222,6 @@ FrameType DXGI::GetFrameType()
return FRAME_TYPE_ARGB;
}
FrameComp DXGI::GetFrameCompression()
{
if (!m_initialized)
return FRAME_COMP_NONE;
return FRAME_COMP_NONE;
}
size_t DXGI::GetMaxFrameSize()
{
if (!m_initialized)

View file

@ -202,14 +202,6 @@ FrameType NvFBC::GetFrameType()
return FRAME_TYPE_ARGB;
}
FrameComp NvFBC::GetFrameCompression()
{
if (!m_initialized)
return FRAME_COMP_NONE;
return FRAME_COMP_NONE;
}
size_t NvFBC::GetMaxFrameSize()
{
if (!m_initialized)

View file

@ -41,7 +41,6 @@ public:
bool Initialize(CaptureOptions * options);
void DeInitialize();
enum FrameType GetFrameType();
enum FrameComp GetFrameCompression();
size_t GetMaxFrameSize();
bool GrabFrame(struct FrameInfo & frame);
};

View file

@ -84,7 +84,7 @@ bool Service::Initialize(ICapture * captureDevice)
ZeroMemory(header, sizeof(KVMGFXHeader));
memcpy(header->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC));
header->version = 2;
header->version = KVMGFX_HEADER_VERSION;
header->guestID = m_ivshmem->GetPeerID();
header->hostID = hostID;
@ -131,7 +131,6 @@ bool Service::Process()
// setup the header
header->frameType = m_capture->GetFrameType();
header->compType = m_capture->GetFrameCompression();
header->dataLen = 0;
FrameInfo frame;