FFCodec.cs
1 using System; 2 3 namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native 4 { 5 struct FFCodec<T> where T : struct 6 { 7 #pragma warning disable CS0649 // Field is never assigned to 8 public T Base; 9 public int 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 CodecCallback; 17 #pragma warning restore CS0649 18 19 // 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. 20 } 21 }