FFCodec.cs 790 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native
  3. {
  4. struct FFCodec
  5. {
  6. public unsafe delegate int AVCodec_decode(AVCodecContext* avctx, void* outdata, int* got_frame_ptr, AVPacket* avpkt);
  7. #pragma warning disable CS0649
  8. public AVCodec 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. // 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.
  19. }
  20. }