github.com/racerxdl/gonx@v0.0.0-20210103083128-c5afc43bcbd2/services/nv/types.go (about)

     1  package nv
     2  
     3  type Layout uint8
     4  type DisplayScanFormat uint8
     5  type Kind uint8
     6  type ColorFormat uint64
     7  
     8  const (
     9  	LayoutPitch       Layout = 1
    10  	LayoutTiled       Layout = 2
    11  	LayoutBlockLinear Layout = 3
    12  )
    13  
    14  const (
    15  	DisplayScanFormatProgressive DisplayScanFormat = 0
    16  	DisplayScanFormatInterlaced  DisplayScanFormat = 1
    17  )
    18  
    19  const (
    20  	KindPitch                    Kind = 0x0
    21  	KindZ16                      Kind = 0x1
    22  	KindZ162C                    Kind = 0x2
    23  	KindZ16MS22C                 Kind = 0x3
    24  	KindZ16MS42C                 Kind = 0x4
    25  	KindZ16MS82C                 Kind = 0x5
    26  	KindZ16MS162C                Kind = 0x6
    27  	KindZ162Z                    Kind = 0x7
    28  	KindZ16MS22Z                 Kind = 0x8
    29  	KindZ16MS42Z                 Kind = 0x9
    30  	KindZ16MS82Z                 Kind = 0xa
    31  	KindZ16MS162Z                Kind = 0xb
    32  	KindZ164CZ                   Kind = 0xc
    33  	KindZ16MS24CZ                Kind = 0xd
    34  	KindZ16MS44CZ                Kind = 0xe
    35  	KindZ16MS84CZ                Kind = 0xf
    36  	KindZ16MS164CZ               Kind = 0x10
    37  	KindS8Z24                    Kind = 0x11
    38  	KindS8Z241Z                  Kind = 0x12
    39  	KindS8Z24MS21Z               Kind = 0x13
    40  	KindS8Z24MS41Z               Kind = 0x14
    41  	KindS8Z24MS81Z               Kind = 0x15
    42  	KindS8Z24MS161Z              Kind = 0x16
    43  	KindS8Z242CZ                 Kind = 0x17
    44  	KindS8Z24MS22CZ              Kind = 0x18
    45  	KindS8Z24MS42CZ              Kind = 0x19
    46  	KindS8Z24MS82CZ              Kind = 0x1a
    47  	KindS8Z24MS162CZ             Kind = 0x1b
    48  	KindS8Z242CS                 Kind = 0x1C
    49  	KindS8Z24MS22CS              Kind = 0x1d
    50  	KindS8Z24MS42CS              Kind = 0x1e
    51  	KindS8Z24MS82CS              Kind = 0x1f
    52  	KindS8Z24MS162CS             Kind = 0x20
    53  	KindS8Z244CSZV               Kind = 0x21
    54  	KindS8Z24MS24CSZV            Kind = 0x22
    55  	KindS8Z24MS44CSZV            Kind = 0x23
    56  	KindS8Z24MS84CSZV            Kind = 0x24
    57  	KindS8Z24MS164CSZV           Kind = 0x25
    58  	KindV8Z24MS4VC12             Kind = 0x26
    59  	KindV8Z24MS4VC4              Kind = 0x27
    60  	KindV8Z24MS8VC8              Kind = 0x28
    61  	KindV8Z24MS8VC24             Kind = 0x29
    62  	KindS8                       Kind = 0x2a
    63  	KindS82S                     Kind = 0x2b
    64  	KindV8Z24MS4VC121ZV          Kind = 0x2e
    65  	KindV8Z24MS4VC41ZV           Kind = 0x2f
    66  	KindV8Z24MS8VC81ZV           Kind = 0x30
    67  	KindV8Z24MS8VC241ZV          Kind = 0x31
    68  	KindV8Z24MS4VC122CS          Kind = 0x32
    69  	KindV8Z24MS4VC42CS           Kind = 0x33
    70  	KindV8Z24MS8VC82CS           Kind = 0x34
    71  	KindV8Z24MS8VC242CS          Kind = 0x35
    72  	KindV8Z24MS4VC122CZV         Kind = 0x3a
    73  	KindV8Z24MS4VC42CZV          Kind = 0x3b
    74  	KindV8Z24MS8VC82CZV          Kind = 0x3c
    75  	KindV8Z24MS8VC242CZV         Kind = 0x3d
    76  	KindV8Z24MS4VC122ZV          Kind = 0x3e
    77  	KindV8Z24MS4VC42ZV           Kind = 0x3f
    78  	KindV8Z24MS8VC82ZV           Kind = 0x40
    79  	KindV8Z24MS8VC242ZV          Kind = 0x41
    80  	KindV8Z24MS4VC124CSZV        Kind = 0x42
    81  	KindV8Z24MS4VC44CSZV         Kind = 0x43
    82  	KindV8Z24MS8VC84CSZV         Kind = 0x44
    83  	KindV8Z24MS8VC244CSZV        Kind = 0x45
    84  	KindZ24S8                    Kind = 0x46
    85  	KindZ24S81Z                  Kind = 0x47
    86  	KindZ24S8MS21Z               Kind = 0x48
    87  	KindZ24S8MS41Z               Kind = 0x49
    88  	KindZ24S8MS81Z               Kind = 0x4a
    89  	KindZ24S8MS161Z              Kind = 0x4b
    90  	KindZ24S82CS                 Kind = 0x4c
    91  	KindZ24S8MS22CS              Kind = 0x4d
    92  	KindZ24S8MS42CS              Kind = 0x4e
    93  	KindZ24S8MS82CS              Kind = 0x4f
    94  	KindZ24S8MS162CS             Kind = 0x50
    95  	KindZ24S82CZ                 Kind = 0x51
    96  	KindZ24S8MS22CZ              Kind = 0x52
    97  	KindZ24S8MS42CZ              Kind = 0x53
    98  	KindZ24S8MS82CZ              Kind = 0x54
    99  	KindZ24S8MS162CZ             Kind = 0x55
   100  	KindZ24S84CSZV               Kind = 0x56
   101  	KindZ24S8MS24CSZV            Kind = 0x57
   102  	KindZ24S8MS44CSZV            Kind = 0x58
   103  	KindZ24S8MS84CSZV            Kind = 0x59
   104  	KindZ24S8MS164CSZV           Kind = 0x5a
   105  	KindZ24V8MS4VC12             Kind = 0x5b
   106  	KindZ24V8MS4VC4              Kind = 0x5C
   107  	KindZ24V8MS8VC8              Kind = 0x5d
   108  	KindZ24V8MS8VC24             Kind = 0x5e
   109  	KindZ24V8MS4VC121ZV          Kind = 0x63
   110  	KindZ24V8MS4VC41ZV           Kind = 0x64
   111  	KindZ24V8MS8VC81ZV           Kind = 0x65
   112  	KindZ24V8MS8VC241ZV          Kind = 0x66
   113  	KindZ24V8MS4VC122CS          Kind = 0x67
   114  	KindZ24V8MS4VC42CS           Kind = 0x68
   115  	KindZ24V8MS8VC82CS           Kind = 0x69
   116  	KindZ24V8MS8VC242CS          Kind = 0x6a
   117  	KindZ24V8MS4VC122CZV         Kind = 0x6f
   118  	KindZ24V8MS4VC42CZV          Kind = 0x70
   119  	KindZ24V8MS8VC82CZV          Kind = 0x71
   120  	KindZ24V8MS8VC242CZV         Kind = 0x72
   121  	KindZ24V8MS4VC122ZV          Kind = 0x73
   122  	KindZ24V8MS4VC42ZV           Kind = 0x74
   123  	KindZ24V8MS8VC82ZV           Kind = 0x75
   124  	KindZ24V8MS8VC242ZV          Kind = 0x76
   125  	KindZ24V8MS4VC124CSZV        Kind = 0x77
   126  	KindZ24V8MS4VC44CSZV         Kind = 0x78
   127  	KindZ24V8MS8VC84CSZV         Kind = 0x79
   128  	KindZ24V8MS8VC244CSZV        Kind = 0x7a
   129  	KindZF32                     Kind = 0x7b
   130  	KindZF321Z                   Kind = 0x7C
   131  	KindZF32MS21Z                Kind = 0x7d
   132  	KindZF32MS41Z                Kind = 0x7e
   133  	KindZF32MS81Z                Kind = 0x7f
   134  	KindZF32MS161Z               Kind = 0x80
   135  	KindZF322CS                  Kind = 0x81
   136  	KindZF32MS22CS               Kind = 0x82
   137  	KindZF32MS42CS               Kind = 0x83
   138  	KindZF32MS82CS               Kind = 0x84
   139  	KindZF32MS162CS              Kind = 0x85
   140  	KindZF322CZ                  Kind = 0x86
   141  	KindZF32MS22CZ               Kind = 0x87
   142  	KindZF32MS42CZ               Kind = 0x88
   143  	KindZF32MS82CZ               Kind = 0x89
   144  	KindZF32MS162CZ              Kind = 0x8a
   145  	KindX8Z24X16V8S8MS4VC12      Kind = 0x8b
   146  	KindX8Z24X16V8S8MS4VC4       Kind = 0x8c
   147  	KindX8Z24X16V8S8MS8VC8       Kind = 0x8d
   148  	KindX8Z24X16V8S8MS8VC24      Kind = 0x8e
   149  	KindX8Z24X16V8S8MS4VC121CS   Kind = 0x8f
   150  	KindX8Z24X16V8S8MS4VC41CS    Kind = 0x90
   151  	KindX8Z24X16V8S8MS8VC81CS    Kind = 0x91
   152  	KindX8Z24X16V8S8MS8VC241CS   Kind = 0x92
   153  	KindX8Z24X16V8S8MS4VC121ZV   Kind = 0x97
   154  	KindX8Z24X16V8S8MS4VC41ZV    Kind = 0x98
   155  	KindX8Z24X16V8S8MS8VC81ZV    Kind = 0x99
   156  	KindX8Z24X16V8S8MS8VC241ZV   Kind = 0x9a
   157  	KindX8Z24X16V8S8MS4VC121CZV  Kind = 0x9b
   158  	KindX8Z24X16V8S8MS4VC41CZV   Kind = 0x9c
   159  	KindX8Z24X16V8S8MS8VC81CZV   Kind = 0x9d
   160  	KindX8Z24X16V8S8MS8VC241CZV  Kind = 0x9e
   161  	KindX8Z24X16V8S8MS4VC122CS   Kind = 0x9f
   162  	KindX8Z24X16V8S8MS4VC42CS    Kind = 0xa0
   163  	KindX8Z24X16V8S8MS8VC82CS    Kind = 0xa1
   164  	KindX8Z24X16V8S8MS8VC242CS   Kind = 0xa2
   165  	KindX8Z24X16V8S8MS4VC122CSZV Kind = 0xa3
   166  	KindX8Z24X16V8S8MS4VC42CSZV  Kind = 0xa4
   167  	KindX8Z24X16V8S8MS8VC82CSZV  Kind = 0xa5
   168  	KindX8Z24X16V8S8MS8VC242CSZV Kind = 0xa6
   169  	KindZF32X16V8S8MS4VC12       Kind = 0xa7
   170  	KindZF32X16V8S8MS4VC4        Kind = 0xa8
   171  	KindZF32X16V8S8MS8VC8        Kind = 0xa9
   172  	KindZF32X16V8S8MS8VC24       Kind = 0xaa
   173  	KindZF32X16V8S8MS4VC121CS    Kind = 0xab
   174  	KindZF32X16V8S8MS4VC41CS     Kind = 0xac
   175  	KindZF32X16V8S8MS8VC81CS     Kind = 0xad
   176  	KindZF32X16V8S8MS8VC241CS    Kind = 0xae
   177  	KindZF32X16V8S8MS4VC121ZV    Kind = 0xb3
   178  	KindZF32X16V8S8MS4VC41ZV     Kind = 0xb4
   179  	KindZF32X16V8S8MS8VC81ZV     Kind = 0xb5
   180  	KindZF32X16V8S8MS8VC241ZV    Kind = 0xb6
   181  	KindZF32X16V8S8MS4VC121CZV   Kind = 0xb7
   182  	KindZF32X16V8S8MS4VC41CZV    Kind = 0xb8
   183  	KindZF32X16V8S8MS8VC81CZV    Kind = 0xb9
   184  	KindZF32X16V8S8MS8VC241CZV   Kind = 0xba
   185  	KindZF32X16V8S8MS4VC122CS    Kind = 0xbb
   186  	KindZF32X16V8S8MS4VC42CS     Kind = 0xbc
   187  	KindZF32X16V8S8MS8VC82CS     Kind = 0xbd
   188  	KindZF32X16V8S8MS8VC242CS    Kind = 0xbe
   189  	KindZF32X16V8S8MS4VC122CSZV  Kind = 0xbf
   190  	KindZF32X16V8S8MS4VC42CSZV   Kind = 0xc0
   191  	KindZF32X16V8S8MS8VC82CSZV   Kind = 0xc1
   192  	KindZF32X16V8S8MS8VC242CSZV  Kind = 0xc2
   193  	KindZF32X24S8                Kind = 0xc3
   194  	KindZF32X24S81CS             Kind = 0xc4
   195  	KindZF32X24S8MS21CS          Kind = 0xc5
   196  	KindZF32X24S8MS41CS          Kind = 0xc6
   197  	KindZF32X24S8MS81CS          Kind = 0xc7
   198  	KindZF32X24S8MS161CS         Kind = 0xc8
   199  	KindSmskedMessage            Kind = 0xca
   200  	KindSmhostMessage            Kind = 0xcb
   201  	KindC64MS22CRA               Kind = 0xcd
   202  	KindZF32X24S82CSZV           Kind = 0xce
   203  	KindZF32X24S8MS22CSZV        Kind = 0xcf
   204  	KindZF32X24S8MS42CSZV        Kind = 0xd0
   205  	KindZF32X24S8MS82CSZV        Kind = 0xd1
   206  	KindZF32X24S8MS162CSZV       Kind = 0xd2
   207  	KindZF32X24S82CS             Kind = 0xd3
   208  	KindZF32X24S8MS22CS          Kind = 0xd4
   209  	KindZF32X24S8MS42CS          Kind = 0xd5
   210  	KindZF32X24S8MS82CS          Kind = 0xd6
   211  	KindZF32X24S8MS162CS         Kind = 0xd7
   212  	KindC322C                    Kind = 0xd8
   213  	KindC322CBR                  Kind = 0xd9
   214  	KindC322CBA                  Kind = 0xda
   215  	KindC322CRA                  Kind = 0xdb
   216  	KindC322BRA                  Kind = 0xdc
   217  	KindC32MS22C                 Kind = 0xdd
   218  	KindC32MS22CBR               Kind = 0xde
   219  	KindC32MS22CRA               Kind = 0xcc
   220  	KindC32MS42C                 Kind = 0xdf
   221  	KindC32MS42CBR               Kind = 0xe0
   222  	KindC32MS42CBA               Kind = 0xe1
   223  	KindC32MS42CRA               Kind = 0xe2
   224  	KindC32MS42BRA               Kind = 0xe3
   225  	KindC32MS8MS162C             Kind = 0xe4
   226  	KindC32MS8MS162CRA           Kind = 0xe5
   227  	KindC642C                    Kind = 0xe6
   228  	KindC642CBR                  Kind = 0xe7
   229  	KindC642CBA                  Kind = 0xe8
   230  	KindC642CRA                  Kind = 0xe9
   231  	KindC642BRA                  Kind = 0xea
   232  	KindC64MS22C                 Kind = 0xeb
   233  	KindC64MS22CBR               Kind = 0xec
   234  	KindC64MS42C                 Kind = 0xed
   235  	KindC64MS42CBR               Kind = 0xee
   236  	KindC64MS42CBA               Kind = 0xef
   237  	KindC64MS42CRA               Kind = 0xf0
   238  	KindC64MS42BRA               Kind = 0xf1
   239  	KindC64MS8MS162C             Kind = 0xf2
   240  	KindC64MS8MS162CRA           Kind = 0xf3
   241  	KindC1282C                   Kind = 0xf4
   242  	KindC1282CR                  Kind = 0xf5
   243  	KindC128MS22C                Kind = 0xf6
   244  	KindC128MS22CR               Kind = 0xf7
   245  	KindC128MS42C                Kind = 0xf8
   246  	KindC128MS42CR               Kind = 0xf9
   247  	KindC128MS8MS162C            Kind = 0xfa
   248  	KindC128MS8MS162CR           Kind = 0xfb
   249  	KindX8C24                    Kind = 0xfc
   250  	KindPitchNoSwizzle           Kind = 0xfd
   251  	KindGeneric16BX2             Kind = 0xfe
   252  	KindInvalid                  Kind = 0xff
   253  )
   254  
   255  const (
   256  	ColorFormat_Unspecified                     ColorFormat = 0x0000000000
   257  	ColorFormat_NonColor8                       ColorFormat = 0x0009200408
   258  	ColorFormat_NonColor16                      ColorFormat = 0x0009200A10
   259  	ColorFormat_NonColor24                      ColorFormat = 0x0009201A18
   260  	ColorFormat_NonColor32                      ColorFormat = 0x0009201C20
   261  	ColorFormat_X4C4                            ColorFormat = 0x0009210508
   262  	ColorFormat_A4L4                            ColorFormat = 0x0100490508
   263  	ColorFormat_A8L8                            ColorFormat = 0x0100490E10
   264  	ColorFormat_Float_A16L16                    ColorFormat = 0x0100495D20
   265  	ColorFormat_A1B5G5R5                        ColorFormat = 0x0100531410
   266  	ColorFormat_A4B4G4R4                        ColorFormat = 0x0100531510
   267  	ColorFormat_A5B5G5R1                        ColorFormat = 0x0100531810
   268  	ColorFormat_A2B10G10R10                     ColorFormat = 0x0100532020
   269  	ColorFormat_A8B8G8R8                        ColorFormat = 0x0100532120
   270  	ColorFormat_A16B16G16R16                    ColorFormat = 0x0100532740
   271  	ColorFormat_Float_A16B16G16R16              ColorFormat = 0x0100536740
   272  	ColorFormat_A1R5G5B5                        ColorFormat = 0x0100D11410
   273  	ColorFormat_A4R4G4B4                        ColorFormat = 0x0100D11510
   274  	ColorFormat_A5R1G5B5                        ColorFormat = 0x0100D11610
   275  	ColorFormat_A2R10G10B10                     ColorFormat = 0x0100D12020
   276  	ColorFormat_A8R8G8B8                        ColorFormat = 0x0100D12120
   277  	ColorFormat_A1                              ColorFormat = 0x0101240101
   278  	ColorFormat_A2                              ColorFormat = 0x0101240202
   279  	ColorFormat_A4                              ColorFormat = 0x0101240304
   280  	ColorFormat_A8                              ColorFormat = 0x0101240408
   281  	ColorFormat_A16                             ColorFormat = 0x0101240A10
   282  	ColorFormat_A32                             ColorFormat = 0x0101241C20
   283  	ColorFormat_Float_A16                       ColorFormat = 0x0101244A10
   284  	ColorFormat_L4A4                            ColorFormat = 0x0102000508
   285  	ColorFormat_L8A8                            ColorFormat = 0x0102000E10
   286  	ColorFormat_B4G4R4A4                        ColorFormat = 0x01060A1510
   287  	ColorFormat_B5G5R1A5                        ColorFormat = 0x01060A1710
   288  	ColorFormat_B5G5R5A1                        ColorFormat = 0x01060A1810
   289  	ColorFormat_B8G8R8A8                        ColorFormat = 0x01060A2120
   290  	ColorFormat_B10G10R10A2                     ColorFormat = 0x01060A2320
   291  	ColorFormat_R1G5B5A5                        ColorFormat = 0x0106881410
   292  	ColorFormat_R4G4B4A4                        ColorFormat = 0x0106881510
   293  	ColorFormat_R5G5B5A1                        ColorFormat = 0x0106881810
   294  	ColorFormat_R8G8B8A8                        ColorFormat = 0x0106882120
   295  	ColorFormat_R10G10B10A2                     ColorFormat = 0x0106882320
   296  	ColorFormat_L1                              ColorFormat = 0x010A000101
   297  	ColorFormat_L2                              ColorFormat = 0x010A000202
   298  	ColorFormat_L4                              ColorFormat = 0x010A000304
   299  	ColorFormat_L8                              ColorFormat = 0x010A000408
   300  	ColorFormat_L16                             ColorFormat = 0x010A000A10
   301  	ColorFormat_L32                             ColorFormat = 0x010A001C20
   302  	ColorFormat_Float_L16                       ColorFormat = 0x010A004A10
   303  	ColorFormat_B5G6R5                          ColorFormat = 0x010A0A1210
   304  	ColorFormat_B6G5R5                          ColorFormat = 0x010A0A1310
   305  	ColorFormat_B5G5R5X1                        ColorFormat = 0x010A0A1810
   306  	ColorFormat_B8_G8_R8                        ColorFormat = 0x010A0A1918
   307  	ColorFormat_B8G8R8X8                        ColorFormat = 0x010A0A2120
   308  	ColorFormat_Float_B10G11R11                 ColorFormat = 0x010A0A5E20
   309  	ColorFormat_X1B5G5R5                        ColorFormat = 0x010A531410
   310  	ColorFormat_X8B8G8R8                        ColorFormat = 0x010A532120
   311  	ColorFormat_X16B16G16R16                    ColorFormat = 0x010A532740
   312  	ColorFormat_Float_X16B16G16R16              ColorFormat = 0x010A536740
   313  	ColorFormat_R3G3B2                          ColorFormat = 0x010A880608
   314  	ColorFormat_R5G5B6                          ColorFormat = 0x010A881110
   315  	ColorFormat_R5G6B5                          ColorFormat = 0x010A881210
   316  	ColorFormat_R5G5B5X1                        ColorFormat = 0x010A881810
   317  	ColorFormat_R8_G8_B8                        ColorFormat = 0x010A881918
   318  	ColorFormat_R8G8B8X8                        ColorFormat = 0x010A882120
   319  	ColorFormat_X1R5G5B5                        ColorFormat = 0x010AD11410
   320  	ColorFormat_X8R8G8B8                        ColorFormat = 0x010AD12120
   321  	ColorFormat_RG8                             ColorFormat = 0x010B080E10
   322  	ColorFormat_R16G16                          ColorFormat = 0x010B081D20
   323  	ColorFormat_Float_R16G16                    ColorFormat = 0x010B085D20
   324  	ColorFormat_R8                              ColorFormat = 0x010B200408
   325  	ColorFormat_R16                             ColorFormat = 0x010B200A10
   326  	ColorFormat_Float_R16                       ColorFormat = 0x010B204A10
   327  	ColorFormat_A2B10G10R10_sRGB                ColorFormat = 0x0200532020
   328  	ColorFormat_A8B8G8R8_sRGB                   ColorFormat = 0x0200532120
   329  	ColorFormat_A16B16G16R16_sRGB               ColorFormat = 0x0200532740
   330  	ColorFormat_A2R10G10B10_sRGB                ColorFormat = 0x0200D12020
   331  	ColorFormat_B10G10R10A2_sRGB                ColorFormat = 0x02060A2320
   332  	ColorFormat_R10G10B10A2_sRGB                ColorFormat = 0x0206882320
   333  	ColorFormat_X8B8G8R8_sRGB                   ColorFormat = 0x020A532120
   334  	ColorFormat_X16B16G16R16_sRGB               ColorFormat = 0x020A532740
   335  	ColorFormat_A2B10G10R10_709                 ColorFormat = 0x0300532020
   336  	ColorFormat_A8B8G8R8_709                    ColorFormat = 0x0300532120
   337  	ColorFormat_A16B16G16R16_709                ColorFormat = 0x0300532740
   338  	ColorFormat_A2R10G10B10_709                 ColorFormat = 0x0300D12020
   339  	ColorFormat_B10G10R10A2_709                 ColorFormat = 0x03060A2320
   340  	ColorFormat_R10G10B10A2_709                 ColorFormat = 0x0306882320
   341  	ColorFormat_X8B8G8R8_709                    ColorFormat = 0x030A532120
   342  	ColorFormat_X16B16G16R16_709                ColorFormat = 0x030A532740
   343  	ColorFormat_A2B10G10R10_709_Linear          ColorFormat = 0x0400532020
   344  	ColorFormat_A8B8G8R8_709_Linear             ColorFormat = 0x0400532120
   345  	ColorFormat_A16B16G16R16_709_Linear         ColorFormat = 0x0400532740
   346  	ColorFormat_A2R10G10B10_709_Linear          ColorFormat = 0x0400D12020
   347  	ColorFormat_B10G10R10A2_709_Linear          ColorFormat = 0x04060A2320
   348  	ColorFormat_R10G10B10A2_709_Linear          ColorFormat = 0x0406882320
   349  	ColorFormat_X8B8G8R8_709_Linear             ColorFormat = 0x040A532120
   350  	ColorFormat_X16B16G16R16_709_Linear         ColorFormat = 0x040A532740
   351  	ColorFormat_Float_A16B16G16R16_scRGB_Linear ColorFormat = 0x0500536740
   352  	ColorFormat_A2B10G10R10_2020                ColorFormat = 0x0600532020
   353  	ColorFormat_A8B8G8R8_2020                   ColorFormat = 0x0600532120
   354  	ColorFormat_A16B16G16R16_2020               ColorFormat = 0x0600532740
   355  	ColorFormat_A2R10G10B10_2020                ColorFormat = 0x0600D12020
   356  	ColorFormat_B10G10R10A2_2020                ColorFormat = 0x06060A2320
   357  	ColorFormat_R10G10B10A2_2020                ColorFormat = 0x0606882320
   358  	ColorFormat_X8B8G8R8_2020                   ColorFormat = 0x060A532120
   359  	ColorFormat_X16B16G16R16_2020               ColorFormat = 0x060A532740
   360  	ColorFormat_A2B10G10R10_2020_Linear         ColorFormat = 0x0700532020
   361  	ColorFormat_A8B8G8R8_2020_Linear            ColorFormat = 0x0700532120
   362  	ColorFormat_A16B16G16R16_2020_Linear        ColorFormat = 0x0700532740
   363  	ColorFormat_Float_A16B16G16R16_2020_Linear  ColorFormat = 0x0700536740
   364  	ColorFormat_A2R10G10B10_2020_Linear         ColorFormat = 0x0700D12020
   365  	ColorFormat_B10G10R10A2_2020_Linear         ColorFormat = 0x07060A2320
   366  	ColorFormat_R10G10B10A2_2020_Linear         ColorFormat = 0x0706882320
   367  	ColorFormat_X8B8G8R8_2020_Linear            ColorFormat = 0x070A532120
   368  	ColorFormat_X16B16G16R16_2020_Linear        ColorFormat = 0x070A532740
   369  	ColorFormat_Float_A16B16G16R16_2020_PQ      ColorFormat = 0x0800536740
   370  	ColorFormat_A4I4                            ColorFormat = 0x0901210508
   371  	ColorFormat_A8I8                            ColorFormat = 0x0901210E10
   372  	ColorFormat_I4A4                            ColorFormat = 0x0903200508
   373  	ColorFormat_I8A8                            ColorFormat = 0x0903200E10
   374  	ColorFormat_I1                              ColorFormat = 0x0909200101
   375  	ColorFormat_I2                              ColorFormat = 0x0909200202
   376  	ColorFormat_I4                              ColorFormat = 0x0909200304
   377  	ColorFormat_I8                              ColorFormat = 0x0909200408
   378  	ColorFormat_A8Y8U8V8                        ColorFormat = 0x0A00D12120
   379  	ColorFormat_A16Y16U16V16                    ColorFormat = 0x0A00D12740
   380  	ColorFormat_Y8U8V8A8                        ColorFormat = 0x0A06882120
   381  	ColorFormat_V8_U8                           ColorFormat = 0x0A080C0710
   382  	ColorFormat_V8U8                            ColorFormat = 0x0A080C0E10
   383  	ColorFormat_V10U10                          ColorFormat = 0x0A08142220
   384  	ColorFormat_V12U12                          ColorFormat = 0x0A08142420
   385  	ColorFormat_V8                              ColorFormat = 0x0A08240408
   386  	ColorFormat_V10                             ColorFormat = 0x0A08240F10
   387  	ColorFormat_V12                             ColorFormat = 0x0A08241010
   388  	ColorFormat_U8_V8                           ColorFormat = 0x0A08440710
   389  	ColorFormat_U8V8                            ColorFormat = 0x0A08440E10
   390  	ColorFormat_U10V10                          ColorFormat = 0x0A08842220
   391  	ColorFormat_U12V12                          ColorFormat = 0x0A08842420
   392  	ColorFormat_U8                              ColorFormat = 0x0A09040408
   393  	ColorFormat_U10                             ColorFormat = 0x0A09040F10
   394  	ColorFormat_U12                             ColorFormat = 0x0A09041010
   395  	ColorFormat_Y8                              ColorFormat = 0x0A09200408
   396  	ColorFormat_Y10                             ColorFormat = 0x0A09200F10
   397  	ColorFormat_Y12                             ColorFormat = 0x0A09201010
   398  	ColorFormat_YVYU                            ColorFormat = 0x0A0A500810
   399  	ColorFormat_VYUY                            ColorFormat = 0x0A0A500910
   400  	ColorFormat_YUYV                            ColorFormat = 0x0A0A880810
   401  	ColorFormat_UYVY                            ColorFormat = 0x0A0A880910
   402  	ColorFormat_Y8_U8_V8                        ColorFormat = 0x0A0A881918
   403  	ColorFormat_V8_U8_RR                        ColorFormat = 0x0B080C0710
   404  	ColorFormat_V8U8_RR                         ColorFormat = 0x0B080C0E10
   405  	ColorFormat_V8_RR                           ColorFormat = 0x0B08240408
   406  	ColorFormat_U8_V8_RR                        ColorFormat = 0x0B08440710
   407  	ColorFormat_U8V8_RR                         ColorFormat = 0x0B08440E10
   408  	ColorFormat_U8_RR                           ColorFormat = 0x0B09040408
   409  	ColorFormat_Y8_RR                           ColorFormat = 0x0B09200408
   410  	ColorFormat_V8_U8_ER                        ColorFormat = 0x0C080C0710
   411  	ColorFormat_V8U8_ER                         ColorFormat = 0x0C080C0E10
   412  	ColorFormat_V8_ER                           ColorFormat = 0x0C08240408
   413  	ColorFormat_U8_V8_ER                        ColorFormat = 0x0C08440710
   414  	ColorFormat_U8V8_ER                         ColorFormat = 0x0C08440E10
   415  	ColorFormat_U8_ER                           ColorFormat = 0x0C09040408
   416  	ColorFormat_Y8_ER                           ColorFormat = 0x0C09200408
   417  	ColorFormat_V8_U8_709                       ColorFormat = 0x0D080C0710
   418  	ColorFormat_V8U8_709                        ColorFormat = 0x0D080C0E10
   419  	ColorFormat_V10U10_709                      ColorFormat = 0x0D08142220
   420  	ColorFormat_V12U12_709                      ColorFormat = 0x0D08142420
   421  	ColorFormat_V8_709                          ColorFormat = 0x0D08240408
   422  	ColorFormat_V10_709                         ColorFormat = 0x0D08240F10
   423  	ColorFormat_V12_709                         ColorFormat = 0x0D08241010
   424  	ColorFormat_U8_V8_709                       ColorFormat = 0x0D08440710
   425  	ColorFormat_U8V8_709                        ColorFormat = 0x0D08440E10
   426  	ColorFormat_U10V10_709                      ColorFormat = 0x0D08842220
   427  	ColorFormat_U12V12_709                      ColorFormat = 0x0D08842420
   428  	ColorFormat_U8_709                          ColorFormat = 0x0D09040408
   429  	ColorFormat_U10_709                         ColorFormat = 0x0D09040F10
   430  	ColorFormat_U12_709                         ColorFormat = 0x0D09041010
   431  	ColorFormat_Y8_709                          ColorFormat = 0x0D09200408
   432  	ColorFormat_Y10_709                         ColorFormat = 0x0D09200F10
   433  	ColorFormat_Y12_709                         ColorFormat = 0x0D09201010
   434  	ColorFormat_V8_U8_709_ER                    ColorFormat = 0x0E080C0710
   435  	ColorFormat_V8U8_709_ER                     ColorFormat = 0x0E080C0E10
   436  	ColorFormat_V10U10_709_ER                   ColorFormat = 0x0E08142220
   437  	ColorFormat_V12U12_709_ER                   ColorFormat = 0x0E08142420
   438  	ColorFormat_V8_709_ER                       ColorFormat = 0x0E08240408
   439  	ColorFormat_V10_709_ER                      ColorFormat = 0x0E08240F10
   440  	ColorFormat_V12_709_ER                      ColorFormat = 0x0E08241010
   441  	ColorFormat_U8_V8_709_ER                    ColorFormat = 0x0E08440710
   442  	ColorFormat_U8V8_709_ER                     ColorFormat = 0x0E08440E10
   443  	ColorFormat_U10V10_709_ER                   ColorFormat = 0x0E08842220
   444  	ColorFormat_U12V12_709_ER                   ColorFormat = 0x0E08842420
   445  	ColorFormat_U8_709_ER                       ColorFormat = 0x0E09040408
   446  	ColorFormat_U10_709_ER                      ColorFormat = 0x0E09040F10
   447  	ColorFormat_U12_709_ER                      ColorFormat = 0x0E09041010
   448  	ColorFormat_Y8_709_ER                       ColorFormat = 0x0E09200408
   449  	ColorFormat_Y10_709_ER                      ColorFormat = 0x0E09200F10
   450  	ColorFormat_Y12_709_ER                      ColorFormat = 0x0E09201010
   451  	ColorFormat_V10U10_2020                     ColorFormat = 0x0F08142220
   452  	ColorFormat_V12U12_2020                     ColorFormat = 0x0F08142420
   453  	ColorFormat_V10_2020                        ColorFormat = 0x0F08240F10
   454  	ColorFormat_V12_2020                        ColorFormat = 0x0F08241010
   455  	ColorFormat_U10V10_2020                     ColorFormat = 0x0F08842220
   456  	ColorFormat_U12V12_2020                     ColorFormat = 0x0F08842420
   457  	ColorFormat_U10_2020                        ColorFormat = 0x0F09040F10
   458  	ColorFormat_U12_2020                        ColorFormat = 0x0F09041010
   459  	ColorFormat_Y10_2020                        ColorFormat = 0x0F09200F10
   460  	ColorFormat_Y12_2020                        ColorFormat = 0x0F09201010
   461  	ColorFormat_Bayer8RGGB                      ColorFormat = 0x1009200408
   462  	ColorFormat_Bayer16RGGB                     ColorFormat = 0x1009200A10
   463  	ColorFormat_BayerS16RGGB                    ColorFormat = 0x1009208A10
   464  	ColorFormat_X2Bayer14RGGB                   ColorFormat = 0x1009210B10
   465  	ColorFormat_X4Bayer12RGGB                   ColorFormat = 0x1009210C10
   466  	ColorFormat_X6Bayer10RGGB                   ColorFormat = 0x1009210D10
   467  	ColorFormat_Bayer8BGGR                      ColorFormat = 0x1109200408
   468  	ColorFormat_Bayer16BGGR                     ColorFormat = 0x1109200A10
   469  	ColorFormat_BayerS16BGGR                    ColorFormat = 0x1109208A10
   470  	ColorFormat_X2Bayer14BGGR                   ColorFormat = 0x1109210B10
   471  	ColorFormat_X4Bayer12BGGR                   ColorFormat = 0x1109210C10
   472  	ColorFormat_X6Bayer10BGGR                   ColorFormat = 0x1109210D10
   473  	ColorFormat_Bayer8GRBG                      ColorFormat = 0x1209200408
   474  	ColorFormat_Bayer16GRBG                     ColorFormat = 0x1209200A10
   475  	ColorFormat_BayerS16GRBG                    ColorFormat = 0x1209208A10
   476  	ColorFormat_X2Bayer14GRBG                   ColorFormat = 0x1209210B10
   477  	ColorFormat_X4Bayer12GRBG                   ColorFormat = 0x1209210C10
   478  	ColorFormat_X6Bayer10GRBG                   ColorFormat = 0x1209210D10
   479  	ColorFormat_Bayer8GBRG                      ColorFormat = 0x1309200408
   480  	ColorFormat_Bayer16GBRG                     ColorFormat = 0x1309200A10
   481  	ColorFormat_BayerS16GBRG                    ColorFormat = 0x1309208A10
   482  	ColorFormat_X2Bayer14GBRG                   ColorFormat = 0x1309210B10
   483  	ColorFormat_X4Bayer12GBRG                   ColorFormat = 0x1309210C10
   484  	ColorFormat_X6Bayer10GBRG                   ColorFormat = 0x1309210D10
   485  	ColorFormat_XYZ                             ColorFormat = 0x140A886640
   486  )
   487  
   488  var ColorFormatTable = []ColorFormat{
   489  	ColorFormat_A8B8G8R8, // PIXEL_FORMAT_RGBA_8888
   490  	ColorFormat_X8B8G8R8, // PIXEL_FORMAT_RGBX_8888
   491  	ColorFormat_R8_G8_B8, // PIXEL_FORMAT_RGB_888   <-- doesn't work
   492  	ColorFormat_R5G6B5,   // PIXEL_FORMAT_RGB_565
   493  	ColorFormat_A8R8G8B8, // PIXEL_FORMAT_BGRA_8888
   494  	ColorFormat_R5G5B5A1, // PIXEL_FORMAT_RGBA_5551 <-- doesn't work
   495  	ColorFormat_A4B4G4R4, // PIXEL_FORMAT_RGBA_4444
   496  }