mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-03 08:15:32 +00:00
Move ServerCodecModeSupport values into public header
This commit is contained in:
parent
9b5fbff7ba
commit
27428e655b
@ -45,13 +45,6 @@ extern SS_PING VideoPingPayload;
|
|||||||
#define SS_FF_CONTROLLER_TOUCH_EVENTS 0x02
|
#define SS_FF_CONTROLLER_TOUCH_EVENTS 0x02
|
||||||
extern uint32_t SunshineFeatureFlags;
|
extern uint32_t SunshineFeatureFlags;
|
||||||
|
|
||||||
// ServerCodecModeSupport values
|
|
||||||
#define SCM_H264 0x00001
|
|
||||||
#define SCM_HEVC 0x00100
|
|
||||||
#define SCM_HEVC_MAIN10 0x00200
|
|
||||||
#define SCM_AV1_MAIN8 0x10000 // Sunshine extension
|
|
||||||
#define SCM_AV1_MAIN10 0x20000 // Sunshine extension
|
|
||||||
|
|
||||||
// ENet channel ID values
|
// ENet channel ID values
|
||||||
#define CTRL_CHANNEL_GENERIC 0x00
|
#define CTRL_CHANNEL_GENERIC 0x00
|
||||||
#define CTRL_CHANNEL_URGENT 0x01 // IDR and reference frame invalidation requests
|
#define CTRL_CHANNEL_URGENT 0x01 // IDR and reference frame invalidation requests
|
||||||
|
@ -487,6 +487,19 @@ typedef struct _CONNECTION_LISTENER_CALLBACKS {
|
|||||||
// Use this function to zero the connection callbacks when allocated on the stack or heap
|
// Use this function to zero the connection callbacks when allocated on the stack or heap
|
||||||
void LiInitializeConnectionCallbacks(PCONNECTION_LISTENER_CALLBACKS clCallbacks);
|
void LiInitializeConnectionCallbacks(PCONNECTION_LISTENER_CALLBACKS clCallbacks);
|
||||||
|
|
||||||
|
// ServerCodecModeSupport values
|
||||||
|
#define SCM_H264 0x00001
|
||||||
|
#define SCM_HEVC 0x00100
|
||||||
|
#define SCM_HEVC_MAIN10 0x00200
|
||||||
|
#define SCM_AV1_MAIN8 0x10000 // Sunshine extension
|
||||||
|
#define SCM_AV1_MAIN10 0x20000 // Sunshine extension
|
||||||
|
|
||||||
|
// SCM masks to identify various codec capabilities
|
||||||
|
#define SCM_MASK_H264 SCM_H264
|
||||||
|
#define SCM_MASK_HEVC (SCM_HEVC | SCM_HEVC_MAIN10)
|
||||||
|
#define SCM_MASK_AV1 (SCM_AV1_MAIN8 | SCM_AV1_MAIN10)
|
||||||
|
#define SCM_MASK_10BIT (SCM_HEVC_MAIN10 | SCM_AV1_MAIN10)
|
||||||
|
|
||||||
typedef struct _SERVER_INFORMATION {
|
typedef struct _SERVER_INFORMATION {
|
||||||
// Server host name or IP address in text form
|
// Server host name or IP address in text form
|
||||||
const char* address;
|
const char* address;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user