Add: Amlogic hardware video decoder backend

This commit is contained in:
Daniel Mehrwald
2016-03-13 11:09:59 -04:00
committed by Iwan Timmer
parent 3943ba8cd8
commit c1f5a2a30e
10 changed files with 225 additions and 6 deletions

View File

@@ -83,6 +83,11 @@ 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)
@@ -154,6 +159,10 @@ 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);
}