ConvectionKernels_ETC2.h 869 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <stdint.h>
  2. namespace cvtt
  3. {
  4. namespace Tables
  5. {
  6. namespace ETC2
  7. {
  8. const int16_t g_thModifierTable[8] =
  9. {
  10. 3, 6, 11, 16, 23, 32, 41, 64
  11. };
  12. const int16_t g_alphaModifierTablePositive[16][4] =
  13. {
  14. { 2, 5, 8, 14, },
  15. { 2, 6, 9, 12, },
  16. { 1, 4, 7, 12, },
  17. { 1, 3, 5, 12, },
  18. { 2, 5, 7, 11, },
  19. { 2, 6, 8, 10, },
  20. { 3, 6, 7, 10, },
  21. { 2, 4, 7, 10, },
  22. { 1, 5, 7, 9, },
  23. { 1, 4, 7, 9, },
  24. { 1, 3, 7, 9, },
  25. { 1, 4, 6, 9, },
  26. { 2, 3, 6, 9, },
  27. { 0, 1, 2, 9, },
  28. { 3, 5, 7, 8, },
  29. { 2, 4, 6, 8, },
  30. };
  31. }
  32. }
  33. }