mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 10:05:25 +00:00
c86aacde76
* Initial nvdec implementation using FFmpeg * Fix swapped channels on the video decoder and the G8R8 texture format * Fix texture samplers not being set properly (regression) * Rebased * Remove unused code introduced on the rebase * Add support for RGBA8 output format on the video image composer * Correct spacing * Some fixes for rebase and other tweaks * Allow size mismatch on frame copy * Get rid of GetHostAddress calls on VDec
38 lines
752 B
C#
38 lines
752 B
C#
using System.Threading;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nv.NvMap
|
|
{
|
|
class NvMapHandle
|
|
{
|
|
public int Handle;
|
|
public int Id;
|
|
public int Size;
|
|
public int Align;
|
|
public int Kind;
|
|
public long Address;
|
|
public bool Allocated;
|
|
public long DmaMapAddress;
|
|
|
|
private long Dupes;
|
|
|
|
public NvMapHandle()
|
|
{
|
|
Dupes = 1;
|
|
}
|
|
|
|
public NvMapHandle(int Size) : this()
|
|
{
|
|
this.Size = Size;
|
|
}
|
|
|
|
public void IncrementRefCount()
|
|
{
|
|
Interlocked.Increment(ref Dupes);
|
|
}
|
|
|
|
public long DecrementRefCount()
|
|
{
|
|
return Interlocked.Decrement(ref Dupes);
|
|
}
|
|
}
|
|
} |