LumaKeyStruct.cs
1 using Ryujinx.Common.Utilities; 2 3 namespace Ryujinx.Graphics.Vic.Types 4 { 5 readonly struct LumaKeyStruct 6 { 7 private readonly long _word0; 8 private readonly long _word1; 9 10 public int LumaCoeff0 => (int)_word0.Extract(0, 20); 11 public int LumaCoeff1 => (int)_word0.Extract(20, 20); 12 public int LumaCoeff2 => (int)_word0.Extract(40, 20); 13 public int LumaRShift => (int)_word0.Extract(60, 4); 14 public int LumaCoeff3 => (int)_word1.Extract(64, 20); 15 public int LumaKeyLower => (int)_word1.Extract(84, 10); 16 public int LumaKeyUpper => (int)_word1.Extract(94, 10); 17 public bool LumaKeyEnabled => _word1.Extract(104); 18 } 19 }