The Values are as follows.
Red1 is the value of the variable red1. Similarly green1 and blue1.
Red is the value of the variable red. Similarly green and red.
Redmask is the value of the variable xvisual->red_mask. Similarly GreenMask, and BlueMask.

RedMask f800, GreenMask 7e0, BlueMask 1f
Red1 2048, Green1 32, Blue1 1
Red 2048, Green 32, Blue 1
Red 4096, Green 64, Blue 2
Red 6144, Green 96, Blue 3
Red 8192, Green 128, Blue 4
Red 10240, Green 160, Blue 5
Red 12288, Green 192, Blue 6
Red 14336, Green 224, Blue 7
Red 16384, Green 256, Blue 8
Red 18432, Green 288, Blue 9
Red 20480, Green 320, Blue 10
Red 22528, Green 352, Blue 11
Red 24576, Green 384, Blue 12
Red 26624, Green 416, Blue 13
Red 28672, Green 448, Blue 14
Red 30720, Green 480, Blue 15
Red 32768, Green 512, Blue 16
Red 34816, Green 544, Blue 17
Red 36864, Green 576, Blue 18
Red 38912, Green 608, Blue 19
Red 40960, Green 640, Blue 20
Red 43008, Green 672, Blue 21
Red 45056, Green 704, Blue 22
Red 47104, Green 736, Blue 23
Red 49152, Green 768, Blue 24
Red 51200, Green 800, Blue 25
Red 53248, Green 832, Blue 26
Red 55296, Green 864, Blue 27
Red 57344, Green 896, Blue 28
Red 59392, Green 928, Blue 29
Red 61440, Green 960, Blue 30
Red 63488, Green 992, Blue 31
Red 0, Green 1024, Blue 0
Red 2048, Green 1056, Blue 1
Red 4096, Green 1088, Blue 2
Red 6144, Green 1120, Blue 3
Red 8192, Green 1152, Blue 4
Red 10240, Green 1184, Blue 5
Red 12288, Green 1216, Blue 6
Red 14336, Green 1248, Blue 7
Red 16384, Green 1280, Blue 8
Red 18432, Green 1312, Blue 9
Red 20480, Green 1344, Blue 10
Red 22528, Green 1376, Blue 11
Red 24576, Green 1408, Blue 12
Red 26624, Green 1440, Blue 13
Red 28672, Green 1472, Blue 14
Red 30720, Green 1504, Blue 15
Red 32768, Green 1536, Blue 16
Red 34816, Green 1568, Blue 17
Red 36864, Green 1600, Blue 18
Red 38912, Green 1632, Blue 19
Red 40960, Green 1664, Blue 20
Red 43008, Green 1696, Blue 21
Red 45056, Green 1728, Blue 22
Red 47104, Green 1760, Blue 23
Red 49152, Green 1792, Blue 24
Red 51200, Green 1824, Blue 25
Red 53248, Green 1856, Blue 26
Red 55296, Green 1888, Blue 27
Red 57344, Green 1920, Blue 28
Red 59392, Green 1952, Blue 29
Red 61440, Green 1984, Blue 30
Red 63488, Green 2016, Blue 31
Red 0, Green 0, Blue 0
