aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Nvdec/NvdecDecoderContext.cs
blob: 90da0bee7404d6abbd0299132eb9573d3731ebc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
        }
    }
}