mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-18 22:50:54 +00:00
Basic AV1 plumbing
This commit is contained in:
@@ -47,7 +47,7 @@ static VideoDecoderRenderer* renderer;
|
||||
|
||||
int DrDecoderSetup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags)
|
||||
{
|
||||
[renderer setupWithVideoFormat:videoFormat frameRate:redrawRate];
|
||||
[renderer setupWithVideoFormat:videoFormat width:width height:height frameRate:redrawRate];
|
||||
lastFrameNumber = 0;
|
||||
activeVideoFormat = videoFormat;
|
||||
memset(¤tVideoStats, 0, sizeof(currentVideoStats));
|
||||
@@ -95,6 +95,15 @@ void DrStop(void)
|
||||
else {
|
||||
return @"HEVC Main 10 SDR";
|
||||
}
|
||||
case VIDEO_FORMAT_AV1_MAIN8:
|
||||
return @"AV1";
|
||||
case VIDEO_FORMAT_AV1_MAIN10:
|
||||
if (LiGetCurrentHostDisplayHdrMode()) {
|
||||
return @"AV1 10-bit HDR";
|
||||
}
|
||||
else {
|
||||
return @"AV1 10-bit SDR";
|
||||
}
|
||||
default:
|
||||
return @"UNKNOWN";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user