FFCodecLegacy.cs
1 using System; 2 3 namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native 4 { 5 struct FFCodecLegacy<T> where T : struct 6 { 7 #pragma warning disable CS0649 // Field is never assigned to 8 public T Base; 9 public uint CapsInternalOrCbType; 10 public int PrivDataSize; 11 public IntPtr UpdateThreadContext; 12 public IntPtr UpdateThreadContextForUser; 13 public IntPtr Defaults; 14 public IntPtr InitStaticData; 15 public IntPtr Init; 16 public IntPtr EncodeSub; 17 public IntPtr Encode2; 18 public IntPtr Decode; 19 #pragma warning restore CS0649 20 21 // NOTE: There is more after, but the layout kind of changed a bit and we don't need more than this. This is safe as we only manipulate this behind a reference. 22 } 23 }