mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-09-02 04:03:56 +00:00
[repos] lgprotocol: import shared protocol definitions
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled
Add LGProtocol as a pinned submodule and consume its KVMFR protocol definitions throughout the client, host, IDD, OBS, and profiler. Keep Looking Glass framebuffer helpers local while removing duplicated protocol headers and migrating users to KVMFR-scoped types.
This commit is contained in:
@@ -22,13 +22,9 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "common/KVMFR.h"
|
||||
#include <LGProtocol/KVMFR.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
/* using common/framebuffer.h breaks compatibillity with C++ due to it's usage
|
||||
* of stdatomic.h, so we need to forward declare the structure here */
|
||||
typedef struct stFrameBuffer FrameBuffer;
|
||||
#else
|
||||
#ifndef __cplusplus
|
||||
#include "common/framebuffer.h"
|
||||
#endif
|
||||
|
||||
@@ -95,8 +91,8 @@ typedef struct CaptureFrame
|
||||
uint32_t hdrMaxFrameAverageLightLevel;
|
||||
uint32_t sdrWhiteLevel;
|
||||
|
||||
uint32_t damageRectsCount;
|
||||
FrameDamageRect damageRects[KVMFR_MAX_DAMAGE_RECTS];
|
||||
uint32_t damageRectsCount;
|
||||
KVMFRFrameDamageRect damageRects[KVMFR_MAX_DAMAGE_RECTS];
|
||||
|
||||
// Producer-local durations. Absolute timestamps must not cross KVMFR as the
|
||||
// client and producer use different monotonic clock domains.
|
||||
@@ -148,18 +144,18 @@ typedef struct CaptureInterface
|
||||
void (*free )(void);
|
||||
|
||||
CaptureResult (*capture )(
|
||||
unsigned frameBufferIndex,
|
||||
FrameBuffer * frame);
|
||||
unsigned frameBufferIndex,
|
||||
KVMFRFrameBuffer * frame);
|
||||
CaptureResult (*waitFrame )(
|
||||
unsigned frameBufferIndex,
|
||||
CaptureFrame * frame,
|
||||
/* Capacity of FrameBuffer::data, excluding the message and header. */
|
||||
const size_t maxFrameSize);
|
||||
CaptureResult (*getFrame )(
|
||||
unsigned frameBufferIndex,
|
||||
FrameBuffer * frame,
|
||||
/* Capacity of FrameBuffer::data, excluding the message and header. */
|
||||
const size_t maxFrameSize,
|
||||
CaptureFrame * captureFrame);
|
||||
CaptureFrame * frame,
|
||||
/* Capacity of KVMFRFrameBuffer::data, excluding message and header. */
|
||||
const size_t maxFrameSize);
|
||||
CaptureResult (*getFrame )(
|
||||
unsigned frameBufferIndex,
|
||||
KVMFRFrameBuffer * frame,
|
||||
/* Capacity of KVMFRFrameBuffer::data, excluding message and header. */
|
||||
const size_t maxFrameSize,
|
||||
CaptureFrame * captureFrame);
|
||||
}
|
||||
CaptureInterface;
|
||||
|
||||
Reference in New Issue
Block a user