FFCodecLegacy.cs 740 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native
  3. {
  4. struct FFCodecLegacy<T> where T: struct
  5. {
  6. #pragma warning disable CS0649
  7. public T Base;
  8. public uint CapsInternalOrCbType;
  9. public int PrivDataSize;
  10. public IntPtr UpdateThreadContext;
  11. public IntPtr UpdateThreadContextForUser;
  12. public IntPtr Defaults;
  13. public IntPtr InitStaticData;
  14. public IntPtr Init;
  15. public IntPtr EncodeSub;
  16. public IntPtr Encode2;
  17. public IntPtr Decode;
  18. #pragma warning restore CS0649
  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. }