mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-08 17:06:26 +00:00
Update libgamestream for h265
This commit is contained in:
@@ -202,7 +202,7 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
||||
config->forcehw = true;
|
||||
break;
|
||||
case 'x':
|
||||
config->hevc = true;
|
||||
config->stream.supportsHevc = true;
|
||||
break;
|
||||
case 1:
|
||||
if (config->action == NULL)
|
||||
@@ -285,6 +285,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
||||
config->stream.packetSize = 1024;
|
||||
config->stream.streamingRemotely = 0;
|
||||
config->stream.audioConfiguration = AUDIO_CONFIGURATION_STEREO;
|
||||
config->stream.supportsHevc = false;
|
||||
|
||||
config->platform = "default";
|
||||
config->app = "Steam";
|
||||
@@ -294,7 +295,6 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
|
||||
config->sops = true;
|
||||
config->localaudio = false;
|
||||
config->fullscreen = true;
|
||||
config->hevc = false;
|
||||
|
||||
config->inputsCount = 0;
|
||||
config->mapping = get_path("mappings/default.conf", getenv("XDG_DATA_DIRS"));
|
||||
|
||||
@@ -43,7 +43,6 @@ typedef struct _CONFIGURATION {
|
||||
bool forcehw;
|
||||
struct input_config inputs[MAX_INPUTS];
|
||||
int inputsCount;
|
||||
bool hevc;
|
||||
} CONFIGURATION, *PCONFIGURATION;
|
||||
|
||||
bool inputAdded;
|
||||
|
||||
@@ -83,11 +83,6 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
// h265
|
||||
if (config->hevc) {
|
||||
config->stream.supportsHevc = 1;
|
||||
}
|
||||
|
||||
int ret = gs_start_app(server, &config->stream, appId, config->sops, config->localaudio);
|
||||
if (ret < 0) {
|
||||
if (ret == GS_NOT_SUPPORTED_4K)
|
||||
@@ -142,7 +137,7 @@ static void help() {
|
||||
printf("\t-60fps\t\t\tUse 60fps [default]\n");
|
||||
printf("\t-bitrate <bitrate>\tSpecify the bitrate in Kbps\n");
|
||||
printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n");
|
||||
printf("\t-hevc \t\tUse high efficiency video decoding (HEVC)\n");
|
||||
printf("\t-forcehevc\t\tUse high efficiency video decoding (HEVC)\n");
|
||||
printf("\t-remote\t\t\tEnable remote optimizations\n");
|
||||
printf("\t-app <app>\t\tName of app to stream\n");
|
||||
printf("\t-nosops\t\t\tDon't allow GFE to modify game settings\n");
|
||||
|
||||
Reference in New Issue
Block a user