|
|
@@ -1,136 +1,5 @@
|
|
|
-// ReSharper disable InconsistentNaming
|
|
|
-namespace Ryujinx.HLE.HOS.Services.Android
|
|
|
+namespace Ryujinx.HLE.HOS.Services.Android
|
|
|
{
|
|
|
- class ColorShift
|
|
|
- {
|
|
|
- public const int Swizzle = 16;
|
|
|
- public const int DataType = 14;
|
|
|
- public const int Space = 32;
|
|
|
- public const int Component = 8;
|
|
|
- }
|
|
|
-
|
|
|
- enum ColorSwizzle
|
|
|
- {
|
|
|
- XYZW = 0x688 << ColorShift.Swizzle,
|
|
|
- ZYXW = 0x60a << ColorShift.Swizzle,
|
|
|
- WZYX = 0x053 << ColorShift.Swizzle,
|
|
|
- YZWX = 0x0d1 << ColorShift.Swizzle,
|
|
|
- XYZ1 = 0xa88 << ColorShift.Swizzle,
|
|
|
- YZW1 = 0xad1 << ColorShift.Swizzle,
|
|
|
- XXX1 = 0xa00 << ColorShift.Swizzle,
|
|
|
- XZY1 = 0xa50 << ColorShift.Swizzle,
|
|
|
- ZYX1 = 0xa0a << ColorShift.Swizzle,
|
|
|
- WZY1 = 0xa53 << ColorShift.Swizzle,
|
|
|
- X000 = 0x920 << ColorShift.Swizzle,
|
|
|
- Y000 = 0x921 << ColorShift.Swizzle,
|
|
|
- XY01 = 0xb08 << ColorShift.Swizzle,
|
|
|
- X001 = 0xb20 << ColorShift.Swizzle,
|
|
|
- X00X = 0x121 << ColorShift.Swizzle,
|
|
|
- X00Y = 0x320 << ColorShift.Swizzle,
|
|
|
- _0YX0 = 0x80c << ColorShift.Swizzle,
|
|
|
- _0ZY0 = 0x814 << ColorShift.Swizzle,
|
|
|
- _0XZ0 = 0x884 << ColorShift.Swizzle,
|
|
|
- _0X00 = 0x904 << ColorShift.Swizzle,
|
|
|
- _00X0 = 0x824 << ColorShift.Swizzle,
|
|
|
- _000X = 0x124 << ColorShift.Swizzle,
|
|
|
- _0XY0 = 0x844 << ColorShift.Swizzle,
|
|
|
- XXXY = 0x200 << ColorShift.Swizzle,
|
|
|
- YYYX = 0x049 << ColorShift.Swizzle
|
|
|
- }
|
|
|
-
|
|
|
- enum ColorBytePerPixel
|
|
|
- {
|
|
|
- Bpp1 = 1,
|
|
|
- Bpp2 = 2,
|
|
|
- Bpp4 = 4,
|
|
|
- Bpp8 = 8,
|
|
|
- Bpp16 = 16,
|
|
|
- Bpp24 = 24,
|
|
|
- Bpp32 = 32,
|
|
|
- Bpp48 = 48,
|
|
|
- Bpp64 = 64,
|
|
|
- Bpp96 = 96,
|
|
|
- Bpp128 = 128
|
|
|
- }
|
|
|
-
|
|
|
- enum ColorComponent : uint
|
|
|
- {
|
|
|
- X1 = (0x01 << ColorShift.Component) | ColorBytePerPixel.Bpp1,
|
|
|
- X2 = (0x02 << ColorShift.Component) | ColorBytePerPixel.Bpp2,
|
|
|
- X4 = (0x03 << ColorShift.Component) | ColorBytePerPixel.Bpp4,
|
|
|
- X8 = (0x04 << ColorShift.Component) | ColorBytePerPixel.Bpp8,
|
|
|
- Y4X4 = (0x05 << ColorShift.Component) | ColorBytePerPixel.Bpp8,
|
|
|
- X3Y3Z2 = (0x06 << ColorShift.Component) | ColorBytePerPixel.Bpp8,
|
|
|
- X8Y8 = (0x07 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X8Y8X8Z8 = (0x08 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Y8X8Z8X8 = (0x09 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X16 = (0x0A << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Y2X14 = (0x0B << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Y4X12 = (0x0C << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Y6X10 = (0x0D << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Y8X8 = (0x0E << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X10 = (0x0F << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X12 = (0x10 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- Z5Y5X6 = (0x11 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X5Y6Z5 = (0x12 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X6Y5Z5 = (0x13 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X1Y5Z5W5 = (0x14 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X4Y4Z4W4 = (0x15 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X5Y1Z5W5 = (0x16 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X5Y5Z1W5 = (0x17 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X5Y5Z5W1 = (0x18 << ColorShift.Component) | ColorBytePerPixel.Bpp16,
|
|
|
- X8Y8Z8 = (0x19 << ColorShift.Component) | ColorBytePerPixel.Bpp24,
|
|
|
- X24 = (0x1A << ColorShift.Component) | ColorBytePerPixel.Bpp24,
|
|
|
- X32 = (0x1C << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X16Y16 = (0x1D << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X11Y11Z10 = (0x1E << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X2Y10Z10W10 = (0x20 << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X8Y8Z8W8 = (0x21 << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- Y10X10 = (0x22 << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X10Y10Z10W2 = (0x23 << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- Y12X12 = (0x24 << ColorShift.Component) | ColorBytePerPixel.Bpp32,
|
|
|
- X20Y20Z20 = (0x26 << ColorShift.Component) | ColorBytePerPixel.Bpp64,
|
|
|
- X16Y16Z16W16 = (0x27 << ColorShift.Component) | ColorBytePerPixel.Bpp64,
|
|
|
- }
|
|
|
-
|
|
|
- enum ColorDataType
|
|
|
- {
|
|
|
- Integer = 0x0 << ColorShift.DataType,
|
|
|
- Float = 0x1 << ColorShift.DataType,
|
|
|
- Stencil = 0x2 << ColorShift.DataType
|
|
|
- }
|
|
|
-
|
|
|
- enum ColorSpace : ulong
|
|
|
- {
|
|
|
- NonColor = 0x0L << ColorShift.Space,
|
|
|
- LinearRGBA = 0x1L << ColorShift.Space,
|
|
|
- SRGB = 0x2L << ColorShift.Space,
|
|
|
-
|
|
|
- RGB709 = 0x3L << ColorShift.Space,
|
|
|
- LinearRGB709 = 0x4L << ColorShift.Space,
|
|
|
-
|
|
|
- LinearScRGB = 0x5L << ColorShift.Space,
|
|
|
-
|
|
|
- RGB2020 = 0x6L << ColorShift.Space,
|
|
|
- LinearRGB2020 = 0x7L << ColorShift.Space,
|
|
|
- RGB2020_PQ = 0x8L << ColorShift.Space,
|
|
|
-
|
|
|
- ColorIndex = 0x9L << ColorShift.Space,
|
|
|
-
|
|
|
- YCbCr601 = 0xAL << ColorShift.Space,
|
|
|
- YCbCr601_RR = 0xBL << ColorShift.Space,
|
|
|
- YCbCr601_ER = 0xCL << ColorShift.Space,
|
|
|
- YCbCr709 = 0xDL << ColorShift.Space,
|
|
|
- YCbCr709_ER = 0xEL << ColorShift.Space,
|
|
|
-
|
|
|
- BayerRGGB = 0x10L << ColorShift.Space,
|
|
|
- BayerBGGR = 0x11L << ColorShift.Space,
|
|
|
- BayerGRBG = 0x12L << ColorShift.Space,
|
|
|
- BayerGBRG = 0x13L << ColorShift.Space,
|
|
|
-
|
|
|
- XYZ = 0x14L << ColorShift.Space,
|
|
|
- }
|
|
|
-
|
|
|
enum ColorFormat : ulong
|
|
|
{
|
|
|
NonColor8 = ColorSpace.NonColor | ColorSwizzle.X000 | ColorComponent.X8 | ColorDataType.Integer,
|