mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 23:35:47 +00:00
Add AV1 support for the AML backend
This commit is contained in:
parent
c883b6786f
commit
eb46891f4c
@ -111,6 +111,11 @@ int aml_setup(int videoFormat, int width, int height, int redrawRate, void* cont
|
|||||||
} else if (videoFormat & VIDEO_FORMAT_MASK_H265) {
|
} else if (videoFormat & VIDEO_FORMAT_MASK_H265) {
|
||||||
codecParam.video_type = VFORMAT_HEVC;
|
codecParam.video_type = VFORMAT_HEVC;
|
||||||
codecParam.am_sysinfo.format = VIDEO_DEC_FORMAT_HEVC;
|
codecParam.am_sysinfo.format = VIDEO_DEC_FORMAT_HEVC;
|
||||||
|
#ifdef CODEC_TAG_AV1
|
||||||
|
} else if (videoFormat & VIDEO_FORMAT_MASK_AV1) {
|
||||||
|
codecParam.video_type = VFORMAT_AV1;
|
||||||
|
codecParam.am_sysinfo.format = VIDEO_DEC_FORMAT_AV1;
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
printf("Video format not supported\n");
|
printf("Video format not supported\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user