From c5bddfeab8a905ce6c306ffafb079d8550f0b027 Mon Sep 17 00:00:00 2001 From: Mary Date: Thu, 14 Jul 2022 15:13:23 +0200 Subject: Remove dependency for FFmpeg.AutoGen and Update FFmpeg to 5.0.1 for Windows (#3466) * Remove dependency for FFMpeg.AutoGen Also prepare for FFMpeg 5.0 and 5.1 * Update Ryujinx.Graphics.Nvdec.Dependencies to 5.0.1-build10 * Address gdkchan's comments * Address Ack's comment * Address gdkchan's comment --- Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs (limited to 'Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs') diff --git a/Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs b/Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs new file mode 100644 index 00000000..8b08c02c --- /dev/null +++ b/Ryujinx.Graphics.Nvdec.FFmpeg/Native/FFCodec.cs @@ -0,0 +1,23 @@ +using System; + +namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native +{ + struct FFCodec + { + public unsafe delegate int AVCodec_decode(AVCodecContext* avctx, void* outdata, int* got_frame_ptr, AVPacket* avpkt); + +#pragma warning disable CS0649 + public AVCodec Base; + public int CapsInternalOrCbType; + public int PrivDataSize; + public IntPtr UpdateThreadContext; + public IntPtr UpdateThreadContextForUser; + public IntPtr Defaults; + public IntPtr InitStaticData; + public IntPtr Init; + public IntPtr CodecCallback; +#pragma warning restore CS0649 + + // 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. + } +} -- cgit v1.2.3