mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-28 18:10:50 +01:00
21 lines
393 B
C#
21 lines
393 B
C#
|
using Ryujinx.Graphics.Nvdec.H264;
|
||
|
using System;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Nvdec
|
||
|
{
|
||
|
class NvdecDecoderContext : IDisposable
|
||
|
{
|
||
|
private Decoder _decoder;
|
||
|
|
||
|
public Decoder GetDecoder()
|
||
|
{
|
||
|
return _decoder ??= new Decoder();
|
||
|
}
|
||
|
|
||
|
public void Dispose()
|
||
|
{
|
||
|
_decoder?.Dispose();
|
||
|
_decoder = null;
|
||
|
}
|
||
|
}
|
||
|
}
|