LumaKeyStruct.cs 668 B

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