mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Allow encoder to pick optimal ref frame count if RFI is supported by the decoder
This commit is contained in:
1 parent
c9426a6a71
commit
169078d0a9
3 files changed
+12
-7
No files matched your search
+5
-1
@@ -386,7 +386,11 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
}
|
||||
|
||||
if (AppVersionQuad[0] >= 7) {
|
||||
if (isReferenceFrameInvalidationEnabled()) {
|
||||
// If the decoder supports reference frame invalidation, that indicates it also supports
|
||||
// the maximum number of reference frames allowed by the codec. Even if we can't use RFI
|
||||
// due to lack of host support, we can still allow the host to pick a number of reference
|
||||
// frames greater than 1 to improve encoding efficiency.
|
||||
if (isReferenceFrameInvalidationSupportedByDecoder()) {
|
||||
err |= addAttributeString(&optionHead, "x-nv-video[0].maxNumReferenceFrames", "0");
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user