mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] Updated to use the new header format
This commit is contained in:
parent
cb96bd6493
commit
5ecf2d36c1
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
};
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user