mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-27 23:48:53 +00:00
29 lines
509 B
C
29 lines
509 B
C
#define QUEUE_SIZE 64
|
|
#define PACKET_SIZE 5 * 1024 * 1024
|
|
|
|
typedef struct {
|
|
int active;
|
|
int codec;
|
|
|
|
int env_width, env_height;
|
|
int width, height;
|
|
float client_offsetX, client_offsetY;
|
|
float offsetX, offsetY;
|
|
|
|
float scalar_inv;
|
|
}QueueMetadata;
|
|
|
|
typedef struct {
|
|
int size;
|
|
char data[PACKET_SIZE];
|
|
} Packet;
|
|
|
|
typedef struct _Queue{
|
|
int inindex;
|
|
int outindex;
|
|
void* handle;
|
|
QueueMetadata metadata;
|
|
|
|
Packet incoming[QUEUE_SIZE];
|
|
Packet outcoming[QUEUE_SIZE];
|
|
}Queue; |