AVFrame.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Ryujinx.Common.Memory;
  2. using System;
  3. namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native
  4. {
  5. struct AVFrame
  6. {
  7. #pragma warning disable CS0649
  8. public Array8<IntPtr> Data;
  9. public Array8<int> LineSize;
  10. public IntPtr ExtendedData;
  11. public int Width;
  12. public int Height;
  13. public int NumSamples;
  14. public int Format;
  15. public int KeyFrame;
  16. public int PictureType;
  17. public AVRational SampleAspectRatio;
  18. public long Pts;
  19. public long PktDts;
  20. public AVRational TimeBase;
  21. public int CodedPictureNumber;
  22. public int DisplayPictureNumber;
  23. public int Quality;
  24. public IntPtr Opaque;
  25. public int RepeatPicture;
  26. public int InterlacedFrame;
  27. public int TopFieldFirst;
  28. public int PaletteHasChanged;
  29. public long ReorderedOpaque;
  30. public int SampleRate;
  31. public ulong ChannelLayout;
  32. #pragma warning restore CS0649
  33. // 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.
  34. }
  35. }