mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Make hevc generic for all platforms
This commit is contained in:
@@ -63,9 +63,7 @@ static struct option long_options[] = {
|
||||
{"surround", no_argument, NULL, 'u'},
|
||||
{"fps", required_argument, NULL, 'v'},
|
||||
{"forcehw", no_argument, NULL, 'w'},
|
||||
#ifdef HAVE_AML
|
||||
{"hevc", no_argument, NULL, 'x'},
|
||||
#endif
|
||||
{"forcehevc", no_argument, NULL, 'x'},
|
||||
{0, 0, 0, 0},
|
||||
};
|
||||
|
||||
@@ -203,11 +201,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
||||
case 'w':
|
||||
config->forcehw = true;
|
||||
break;
|
||||
#ifdef HAVE_AML
|
||||
case 'x':
|
||||
config->hevc = true;
|
||||
break;
|
||||
#endif
|
||||
case 1:
|
||||
if (config->action == NULL)
|
||||
config->action = value;
|
||||
|
||||
@@ -43,9 +43,7 @@ typedef struct _CONFIGURATION {
|
||||
bool forcehw;
|
||||
struct input_config inputs[MAX_INPUTS];
|
||||
int inputsCount;
|
||||
#ifdef HAVE_AML
|
||||
bool hevc;
|
||||
#endif
|
||||
} CONFIGURATION, *PCONFIGURATION;
|
||||
|
||||
bool inputAdded;
|
||||
|
||||
@@ -142,6 +142,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-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");
|
||||
@@ -159,10 +160,6 @@ static void help() {
|
||||
printf("\t-audio <device>\t\tUse <device> as ALSA audio output device (default sysdefault)\n");
|
||||
printf("\t-forcehw \t\tTry to use video hardware acceleration\n");
|
||||
#endif
|
||||
#ifdef HAVE_AML
|
||||
printf("\n Amlogic Codec options\n\n");
|
||||
printf("\t-hevc \t\tUse high efficiency video decoding (HEVC)\n");
|
||||
#endif
|
||||
printf("\nUse Ctrl+Alt+Shift+Q to exit streaming session\n\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user