1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-18 05:36:40 +00:00
Ryujinx/Ryujinx.Graphics.Vic/VicRegisters.cs
gdkchan f4f496cb48
NVDEC (H264): Use separate contexts per channel and decode frames in DTS order (#2671)
* Use separate NVDEC contexts per channel (for FFMPEG)

* Remove NVDEC -> VIC frame override hack

* Add missing bottom_field_pic_order_in_frame_present_flag

* Make FFMPEG logging static

* nit: Remove empty lines

* New FFMPEG decoding approach -- call h264_decode_frame directly, trim surface cache to reduce memory usage

* Fix case

* Silence warnings

* PR feedback

* Per-decoder rather than per-codec ownership of surfaces on the cache
2021-09-29 00:43:40 +02:00

51 lines
1.6 KiB
C#

using Ryujinx.Common.Memory;
namespace Ryujinx.Graphics.Vic
{
struct PlaneOffsets
{
#pragma warning disable CS0649
public uint LumaOffset;
public uint ChromaUOffset;
public uint ChromaVOffset;
#pragma warning restore CS0649
}
struct VicRegisters
{
#pragma warning disable CS0649
public Array64<uint> Reserved0;
public uint Nop;
public Array15<uint> Reserved104;
public uint PmTrigger;
public Array47<uint> Reserved144;
public uint SetApplicationID;
public uint SetWatchdogTimer;
public Array14<uint> Reserved208;
public uint SemaphoreA;
public uint SemaphoreB;
public uint SemaphoreC;
public uint CtxSaveArea;
public uint CtxSwitch;
public Array43<uint> Reserved254;
public uint Execute;
public uint SemaphoreD;
public Array62<uint> Reserved308;
public Array8<Array8<PlaneOffsets>> SetSurfacexSlotx;
public uint SetPictureIndex;
public uint SetControlParams;
public uint SetConfigStructOffset;
public uint SetFilterStructOffset;
public uint SetPaletteOffset;
public uint SetHistOffset;
public uint SetContextId;
public uint SetFceUcodeSize;
public PlaneOffsets SetOutputSurface;
public uint SetFceUcodeOffset;
public Array4<uint> Reserved730;
public Array8<uint> SetSlotContextId;
public Array8<uint> SetCompTagBufferOffset;
public Array8<uint> SetHistoryBufferOffset;
#pragma warning restore CS0649
}
}