mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-17 20:26:33 +00:00
1402d8391d
* Support NVDEC H264 interlaced video decoding and VIC deinterlacing * Remove unused code
64 lines
3.1 KiB
C#
64 lines
3.1 KiB
C#
namespace Ryujinx.Graphics.Vic.Types
|
|
{
|
|
struct SlotConfig
|
|
{
|
|
private long _word0;
|
|
private long _word1;
|
|
private long _word2;
|
|
private long _word3;
|
|
private long _word4;
|
|
private long _word5;
|
|
private long _word6;
|
|
private long _word7;
|
|
|
|
public bool SlotEnable => _word0.Extract(0);
|
|
public bool DeNoise => _word0.Extract(1);
|
|
public bool AdvancedDenoise => _word0.Extract(2);
|
|
public bool CadenceDetect => _word0.Extract(3);
|
|
public bool MotionMap => _word0.Extract(4);
|
|
public bool MMapCombine => _word0.Extract(5);
|
|
public bool IsEven => _word0.Extract(6);
|
|
public bool ChromaEven => _word0.Extract(7);
|
|
public bool CurrentFieldEnable => _word0.Extract(8);
|
|
public bool PrevFieldEnable => _word0.Extract(9);
|
|
public bool NextFieldEnable => _word0.Extract(10);
|
|
public bool NextNrFieldEnable => _word0.Extract(11);
|
|
public bool CurMotionFieldEnable => _word0.Extract(12);
|
|
public bool PrevMotionFieldEnable => _word0.Extract(13);
|
|
public bool PpMotionFieldEnable => _word0.Extract(14);
|
|
public bool CombMotionFieldEnable => _word0.Extract(15);
|
|
public FrameFormat FrameFormat => (FrameFormat)_word0.Extract(16, 4);
|
|
public int FilterLengthY => _word0.Extract(20, 2);
|
|
public int FilterLengthX => _word0.Extract(22, 2);
|
|
public int Panoramic => _word0.Extract(24, 12);
|
|
public int DetailFltClamp => _word0.Extract(58, 6);
|
|
public int FilterNoise => _word1.Extract(64, 10);
|
|
public int FilterDetail => _word1.Extract(74, 10);
|
|
public int ChromaNoise => _word1.Extract(84, 10);
|
|
public int ChromaDetail => _word1.Extract(94, 10);
|
|
public DeinterlaceMode DeinterlaceMode => (DeinterlaceMode)_word1.Extract(104, 4);
|
|
public int MotionAccumWeight => _word1.Extract(108, 3);
|
|
public int NoiseIir => _word1.Extract(111, 11);
|
|
public int LightLevel => _word1.Extract(122, 4);
|
|
public int SoftClampLow => _word2.Extract(128, 10);
|
|
public int SoftClampHigh => _word2.Extract(138, 10);
|
|
public int PlanarAlpha => _word2.Extract(160, 10);
|
|
public bool ConstantAlpha => _word2.Extract(170);
|
|
public int StereoInterleave => _word2.Extract(171, 3);
|
|
public bool ClipEnabled => _word2.Extract(174);
|
|
public int ClearRectMask => _word2.Extract(175, 8);
|
|
public int DegammaMode => _word2.Extract(183, 2);
|
|
public bool DecompressEnable => _word2.Extract(186);
|
|
public int DecompressCtbCount => _word3.Extract(192, 8);
|
|
public int DecompressZbcColor => _word3.Extract(200, 32);
|
|
public int SourceRectLeft => _word4.Extract(256, 30);
|
|
public int SourceRectRight => _word4.Extract(288, 30);
|
|
public int SourceRectTop => _word5.Extract(320, 30);
|
|
public int SourceRectBottom => _word5.Extract(352, 30);
|
|
public int DstRectLeft => _word6.Extract(384, 14);
|
|
public int DstRectRight => _word6.Extract(400, 14);
|
|
public int DstRectTop => _word6.Extract(416, 14);
|
|
public int DstRectBottom => _word6.Extract(432, 14);
|
|
}
|
|
}
|