mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 14:03:11 -07:00
Begin Stream v12
This commit is contained in:
parent
92827c7911
commit
a8d2c6c29f
8 changed files with 64 additions and 16 deletions
|
@ -21,13 +21,21 @@ typedef struct chiaki_feedback_state_t
|
|||
int16_t right_y;
|
||||
} ChiakiFeedbackState;
|
||||
|
||||
#define CHIAKI_FEEDBACK_STATE_BUF_SIZE 0x19
|
||||
#define CHIAKI_FEEDBACK_STATE_BUF_SIZE_MAX 0x1c
|
||||
|
||||
#define CHIAKI_FEEDBACK_STATE_BUF_SIZE_V9 0x19
|
||||
|
||||
/**
|
||||
* @param buf buffer of at least CHIAKI_FEEDBACK_STATE_BUF_SIZE
|
||||
* @param buf buffer of at least CHIAKI_FEEDBACK_STATE_BUF_SIZE_V9
|
||||
*/
|
||||
CHIAKI_EXPORT void chiaki_feedback_state_format(uint8_t *buf, ChiakiFeedbackState *state);
|
||||
CHIAKI_EXPORT void chiaki_feedback_state_format_v9(uint8_t *buf, ChiakiFeedbackState *state);
|
||||
|
||||
#define CHIAKI_FEEDBACK_STATE_BUF_SIZE_V12 0x1c
|
||||
|
||||
/**
|
||||
* @param buf buffer of at least CHIAKI_FEEDBACK_STATE_BUF_SIZE_V12
|
||||
*/
|
||||
CHIAKI_EXPORT void chiaki_feedback_state_format_v12(uint8_t *buf, ChiakiFeedbackState *state);
|
||||
|
||||
#define CHIAKI_HISTORY_EVENT_SIZE_MAX 0x5
|
||||
|
||||
|
|
|
@ -14,12 +14,14 @@ extern "C" {
|
|||
|
||||
typedef struct chiaki_launch_spec_t
|
||||
{
|
||||
ChiakiTarget target;
|
||||
unsigned int mtu;
|
||||
unsigned int rtt;
|
||||
uint8_t *handshake_key;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
unsigned int max_fps;
|
||||
ChiakiCodec codec;
|
||||
unsigned int bw_kbps_sent;
|
||||
} ChiakiLaunchSpec;
|
||||
|
||||
|
|
|
@ -110,6 +110,7 @@ typedef struct chiaki_takion_connect_info_t
|
|||
typedef struct chiaki_takion_t
|
||||
{
|
||||
ChiakiLog *log;
|
||||
uint8_t version;
|
||||
|
||||
/**
|
||||
* Whether encryption should be used.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue