mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-30 17:16:25 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
29
src/Ryujinx.Graphics.Nvdec/NvdecDecoderContext.cs
Normal file
29
src/Ryujinx.Graphics.Nvdec/NvdecDecoderContext.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Nvdec
|
||||
{
|
||||
class NvdecDecoderContext : IDisposable
|
||||
{
|
||||
private FFmpeg.H264.Decoder _h264Decoder;
|
||||
private FFmpeg.Vp8.Decoder _vp8Decoder;
|
||||
|
||||
public FFmpeg.H264.Decoder GetH264Decoder()
|
||||
{
|
||||
return _h264Decoder ??= new FFmpeg.H264.Decoder();
|
||||
}
|
||||
|
||||
public FFmpeg.Vp8.Decoder GetVp8Decoder()
|
||||
{
|
||||
return _vp8Decoder ??= new FFmpeg.Vp8.Decoder();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_h264Decoder?.Dispose();
|
||||
_h264Decoder = null;
|
||||
|
||||
_vp8Decoder?.Dispose();
|
||||
_vp8Decoder = null;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue