mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +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;
|
return FRAME_TYPE_ARGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameComp DXGI::GetFrameCompression()
|
|
||||||
{
|
|
||||||
if (!m_initialized)
|
|
||||||
return FRAME_COMP_NONE;
|
|
||||||
|
|
||||||
return FRAME_COMP_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t DXGI::GetMaxFrameSize()
|
size_t DXGI::GetMaxFrameSize()
|
||||||
{
|
{
|
||||||
if (!m_initialized)
|
if (!m_initialized)
|
||||||
|
@ -202,14 +202,6 @@ FrameType NvFBC::GetFrameType()
|
|||||||
return FRAME_TYPE_ARGB;
|
return FRAME_TYPE_ARGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
FrameComp NvFBC::GetFrameCompression()
|
|
||||||
{
|
|
||||||
if (!m_initialized)
|
|
||||||
return FRAME_COMP_NONE;
|
|
||||||
|
|
||||||
return FRAME_COMP_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t NvFBC::GetMaxFrameSize()
|
size_t NvFBC::GetMaxFrameSize()
|
||||||
{
|
{
|
||||||
if (!m_initialized)
|
if (!m_initialized)
|
||||||
|
@ -41,7 +41,6 @@ public:
|
|||||||
bool Initialize(CaptureOptions * options);
|
bool Initialize(CaptureOptions * options);
|
||||||
void DeInitialize();
|
void DeInitialize();
|
||||||
enum FrameType GetFrameType();
|
enum FrameType GetFrameType();
|
||||||
enum FrameComp GetFrameCompression();
|
|
||||||
size_t GetMaxFrameSize();
|
size_t GetMaxFrameSize();
|
||||||
bool GrabFrame(struct FrameInfo & frame);
|
bool GrabFrame(struct FrameInfo & frame);
|
||||||
};
|
};
|
@ -84,7 +84,7 @@ bool Service::Initialize(ICapture * captureDevice)
|
|||||||
ZeroMemory(header, sizeof(KVMGFXHeader));
|
ZeroMemory(header, sizeof(KVMGFXHeader));
|
||||||
memcpy(header->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC));
|
memcpy(header->magic, KVMGFX_HEADER_MAGIC, sizeof(KVMGFX_HEADER_MAGIC));
|
||||||
|
|
||||||
header->version = 2;
|
header->version = KVMGFX_HEADER_VERSION;
|
||||||
header->guestID = m_ivshmem->GetPeerID();
|
header->guestID = m_ivshmem->GetPeerID();
|
||||||
header->hostID = hostID;
|
header->hostID = hostID;
|
||||||
|
|
||||||
@ -131,7 +131,6 @@ bool Service::Process()
|
|||||||
|
|
||||||
// setup the header
|
// setup the header
|
||||||
header->frameType = m_capture->GetFrameType();
|
header->frameType = m_capture->GetFrameType();
|
||||||
header->compType = m_capture->GetFrameCompression();
|
|
||||||
header->dataLen = 0;
|
header->dataLen = 0;
|
||||||
|
|
||||||
FrameInfo frame;
|
FrameInfo frame;
|
||||||
|
Loading…
Reference in New Issue
Block a user