From 0dbfe3c23ee072ec9dbc477f955a163107af2be1 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 31 Dec 2019 21:08:02 -0300 Subject: Re-add NVDEC project (not integrated) --- Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs (limited to 'Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs') diff --git a/Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs b/Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs new file mode 100644 index 00000000..4f17d8d1 --- /dev/null +++ b/Ryujinx.Graphics.Nvdec/VDec/DecoderHelper.cs @@ -0,0 +1,17 @@ +using System; + +namespace Ryujinx.Graphics.VDec +{ + static class DecoderHelper + { + public static byte[] Combine(byte[] arr0, byte[] arr1) + { + byte[] output = new byte[arr0.Length + arr1.Length]; + + Buffer.BlockCopy(arr0, 0, output, 0, arr0.Length); + Buffer.BlockCopy(arr1, 0, output, arr0.Length, arr1.Length); + + return output; + } + } +} \ No newline at end of file -- cgit v1.2.3