Implement VP9 loop filtering

* Initialize loop filter parameters
* Adjust docstrings for CodecError.cs
* Remove duplicate BitUtils methods
This commit is contained in:
gdkchan 2023-02-04 19:44:30 -03:00 committed by KeatonTheBot
parent 49b0927fd5
commit 7218c66565
79 changed files with 11328 additions and 3016 deletions

View file

@ -51,6 +51,7 @@ namespace Ryujinx.Graphics.Nvdec.Vp9.Common
{
Marshal.FreeHGlobal(item.Pointer);
}
item.Pointer = ptr;
item.Length = lengthInBytes;
break;
@ -58,7 +59,11 @@ namespace Ryujinx.Graphics.Nvdec.Vp9.Common
}
}
return new ArrayPtr<T>(ptr, length);
ArrayPtr<T> allocation = new ArrayPtr<T>(ptr, length);
allocation.AsSpan().Fill(default);
return allocation;
}
public unsafe void Free<T>(ArrayPtr<T> arr) where T : unmanaged