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