mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 15:27:19 +00:00
[c-host] actually use the 2nd LGMP frame
This commit is contained in:
parent
c7aa8871e4
commit
a75b95694b
@ -107,13 +107,9 @@ static int frameThread(void * opaque)
|
|||||||
|
|
||||||
bool frameValid = false;
|
bool frameValid = false;
|
||||||
bool repeatFrame = false;
|
bool repeatFrame = false;
|
||||||
int frameIndex = 0;
|
|
||||||
CaptureFrame frame = { 0 };
|
CaptureFrame frame = { 0 };
|
||||||
const long pageSize = sysinfo_getPageSize();
|
const long pageSize = sysinfo_getPageSize();
|
||||||
|
|
||||||
(void)frameIndex;
|
|
||||||
(void)repeatFrame;
|
|
||||||
|
|
||||||
while(app.running)
|
while(app.running)
|
||||||
{
|
{
|
||||||
switch(app.iface->waitFrame(&frame))
|
switch(app.iface->waitFrame(&frame))
|
||||||
@ -164,8 +160,8 @@ static int frameThread(void * opaque)
|
|||||||
|
|
||||||
// we increment the index first so that if we need to repeat a frame
|
// we increment the index first so that if we need to repeat a frame
|
||||||
// the index still points to the latest valid frame
|
// the index still points to the latest valid frame
|
||||||
if (frameIndex++ == LGMP_Q_FRAME_LEN)
|
if (app.frameIndex++ == LGMP_Q_FRAME_LEN)
|
||||||
frameIndex = 0;
|
app.frameIndex = 0;
|
||||||
|
|
||||||
KVMFRFrame * fi = lgmpHostMemPtr(app.frameMemory[app.frameIndex]);
|
KVMFRFrame * fi = lgmpHostMemPtr(app.frameMemory[app.frameIndex]);
|
||||||
switch(frame.format)
|
switch(frame.format)
|
||||||
|
Loading…
Reference in New Issue
Block a user