Begin Stream v12

This commit is contained in:
Florian Märkl 2020-12-20 17:03:05 +01:00
commit a8d2c6c29f
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
8 changed files with 64 additions and 16 deletions

View file

@ -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

View file

@ -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;

View file

@ -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.