@maplibre/mlt 1.1.5 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/decoding/bigEndianDecode.d.ts +13 -0
  2. package/dist/decoding/bigEndianDecode.js +50 -0
  3. package/dist/decoding/bigEndianDecode.js.map +1 -0
  4. package/dist/decoding/decodingTestUtils.d.ts +1 -1
  5. package/dist/decoding/decodingTestUtils.js.map +1 -1
  6. package/dist/decoding/decodingUtils.js +4 -2
  7. package/dist/decoding/decodingUtils.js.map +1 -1
  8. package/dist/decoding/fastPforDecoder.d.ts +48 -0
  9. package/dist/decoding/fastPforDecoder.js +482 -0
  10. package/dist/decoding/fastPforDecoder.js.map +1 -0
  11. package/dist/decoding/fastPforShared.d.ts +9 -0
  12. package/dist/decoding/fastPforShared.js +29 -0
  13. package/dist/decoding/fastPforShared.js.map +1 -0
  14. package/dist/decoding/fastPforUnpack.d.ts +23 -0
  15. package/dist/decoding/fastPforUnpack.js +910 -0
  16. package/dist/decoding/fastPforUnpack.js.map +1 -0
  17. package/dist/decoding/geometryDecoder.d.ts +2 -2
  18. package/dist/decoding/geometryDecoder.js +11 -8
  19. package/dist/decoding/geometryDecoder.js.map +1 -1
  20. package/dist/decoding/integerDecodingUtils.d.ts +14 -10
  21. package/dist/decoding/integerDecodingUtils.js +44 -22
  22. package/dist/decoding/integerDecodingUtils.js.map +1 -1
  23. package/dist/decoding/integerStreamDecoder.d.ts +1 -1
  24. package/dist/decoding/integerStreamDecoder.js +13 -6
  25. package/dist/decoding/integerStreamDecoder.js.map +1 -1
  26. package/dist/decoding/propertyDecoder.js +10 -14
  27. package/dist/decoding/propertyDecoder.js.map +1 -1
  28. package/dist/decoding/stringDecoder.js +2 -11
  29. package/dist/decoding/stringDecoder.js.map +1 -1
  30. package/dist/encoding/bigEndianEncode.d.ts +7 -0
  31. package/dist/encoding/bigEndianEncode.js +16 -0
  32. package/dist/encoding/bigEndianEncode.js.map +1 -0
  33. package/dist/encoding/constGeometryVectorEncoder.d.ts +19 -0
  34. package/dist/encoding/constGeometryVectorEncoder.js +248 -0
  35. package/dist/encoding/constGeometryVectorEncoder.js.map +1 -0
  36. package/dist/encoding/encodingUtils.d.ts +1 -1
  37. package/dist/encoding/encodingUtils.js +2 -2
  38. package/dist/encoding/encodingUtils.js.map +1 -1
  39. package/dist/encoding/fastPforEncoder.d.ts +19 -0
  40. package/dist/encoding/fastPforEncoder.js +310 -0
  41. package/dist/encoding/fastPforEncoder.js.map +1 -0
  42. package/dist/encoding/integerEncodingUtils.d.ts +7 -7
  43. package/dist/encoding/integerEncodingUtils.js +25 -17
  44. package/dist/encoding/integerEncodingUtils.js.map +1 -1
  45. package/dist/encoding/integerStreamEncoder.d.ts +1 -1
  46. package/dist/encoding/integerStreamEncoder.js +5 -5
  47. package/dist/encoding/integerStreamEncoder.js.map +1 -1
  48. package/dist/encoding/packNullableUtils.d.ts +1 -1
  49. package/dist/encoding/packNullableUtils.js.map +1 -1
  50. package/dist/encoding/propertyEncoder.d.ts +1 -1
  51. package/dist/encoding/propertyEncoder.js +8 -8
  52. package/dist/encoding/propertyEncoder.js.map +1 -1
  53. package/dist/encoding/stringEncoder.js +3 -3
  54. package/dist/encoding/stringEncoder.js.map +1 -1
  55. package/dist/encoding/zOrderCurveEncoder.js +1 -1
  56. package/dist/encoding/zOrderCurveEncoder.js.map +1 -1
  57. package/dist/metadata/tile/logicalStreamType.d.ts +3 -3
  58. package/dist/metadata/tile/logicalStreamType.js.map +1 -1
  59. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.d.ts +1 -1
  60. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.js.map +1 -1
  61. package/dist/metadata/tileset/typeMap.d.ts +10 -2
  62. package/dist/metadata/tileset/typeMap.js +25 -15
  63. package/dist/metadata/tileset/typeMap.js.map +1 -1
  64. package/dist/mltDecoder.js +29 -26
  65. package/dist/mltDecoder.js.map +1 -1
  66. package/dist/mltMetadata.js.map +1 -1
  67. package/dist/vector/constant/intConstVector.d.ts +1 -1
  68. package/dist/vector/constant/intConstVector.js +1 -1
  69. package/dist/vector/constant/intConstVector.js.map +1 -1
  70. package/dist/vector/constant/longConstVector.d.ts +1 -1
  71. package/dist/vector/constant/longConstVector.js +1 -1
  72. package/dist/vector/constant/longConstVector.js.map +1 -1
  73. package/dist/vector/dictionary/stringDictionaryVector.d.ts +0 -1
  74. package/dist/vector/dictionary/stringDictionaryVector.js +0 -2
  75. package/dist/vector/dictionary/stringDictionaryVector.js.map +1 -1
  76. package/dist/vector/featureTable.d.ts +4 -5
  77. package/dist/vector/featureTable.js +2 -29
  78. package/dist/vector/featureTable.js.map +1 -1
  79. package/dist/vector/filter/flatSelectionVector.d.ts +1 -1
  80. package/dist/vector/filter/flatSelectionVector.js.map +1 -1
  81. package/dist/vector/filter/selectionVectorUtils.d.ts +1 -1
  82. package/dist/vector/filter/selectionVectorUtils.js.map +1 -1
  83. package/dist/vector/filter/sequenceSelectionVector.d.ts +1 -1
  84. package/dist/vector/filter/sequenceSelectionVector.js.map +1 -1
  85. package/dist/vector/flat/stringFlatVector.d.ts +0 -1
  86. package/dist/vector/flat/stringFlatVector.js +0 -2
  87. package/dist/vector/flat/stringFlatVector.js.map +1 -1
  88. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.d.ts +0 -2
  89. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js +0 -36
  90. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.js.map +1 -1
  91. package/dist/vector/geometry/constGeometryVector.d.ts +2 -2
  92. package/dist/vector/geometry/constGeometryVector.js +1 -1
  93. package/dist/vector/geometry/constGeometryVector.js.map +1 -1
  94. package/dist/vector/geometry/constGpuVector.d.ts +2 -2
  95. package/dist/vector/geometry/constGpuVector.js +1 -1
  96. package/dist/vector/geometry/constGpuVector.js.map +1 -1
  97. package/dist/vector/geometry/flatGeometryVector.d.ts +1 -1
  98. package/dist/vector/geometry/flatGeometryVector.js.map +1 -1
  99. package/dist/vector/geometry/flatGpuVector.d.ts +1 -1
  100. package/dist/vector/geometry/flatGpuVector.js.map +1 -1
  101. package/dist/vector/geometry/geometryType.js.map +1 -1
  102. package/dist/vector/geometry/geometryVector.d.ts +4 -5
  103. package/dist/vector/geometry/geometryVector.js +0 -8
  104. package/dist/vector/geometry/geometryVector.js.map +1 -1
  105. package/dist/vector/geometry/geometryVectorConverter.d.ts +1 -1
  106. package/dist/vector/geometry/geometryVectorConverter.js +167 -211
  107. package/dist/vector/geometry/geometryVectorConverter.js.map +1 -1
  108. package/dist/vector/geometry/gpuVector.d.ts +2 -2
  109. package/dist/vector/geometry/gpuVector.js.map +1 -1
  110. package/dist/vector/geometry/topologyVector.d.ts +5 -9
  111. package/dist/vector/geometry/topologyVector.js +1 -19
  112. package/dist/vector/geometry/topologyVector.js.map +1 -1
  113. package/dist/vector/geometry/vertexBufferType.js.map +1 -1
  114. package/dist/vector/intVector.d.ts +7 -7
  115. package/dist/vector/intVector.js.map +1 -1
  116. package/dist/vector/vector.js +1 -1
  117. package/dist/vector/vector.js.map +1 -1
  118. package/dist/vector/vectorType.js.map +1 -1
  119. package/package.json +9 -10
  120. package/dist/decoding/decodingUtils.spec.d.ts +0 -1
  121. package/dist/decoding/decodingUtils.spec.js +0 -141
  122. package/dist/decoding/decodingUtils.spec.js.map +0 -1
  123. package/dist/decoding/fsstDecoder.spec.d.ts +0 -1
  124. package/dist/decoding/fsstDecoder.spec.js +0 -57
  125. package/dist/decoding/fsstDecoder.spec.js.map +0 -1
  126. package/dist/decoding/integerDecodingUtils.spec.d.ts +0 -1
  127. package/dist/decoding/integerDecodingUtils.spec.js +0 -300
  128. package/dist/decoding/integerDecodingUtils.spec.js.map +0 -1
  129. package/dist/decoding/integerStreamDecoder.spec.d.ts +0 -1
  130. package/dist/decoding/integerStreamDecoder.spec.js +0 -402
  131. package/dist/decoding/integerStreamDecoder.spec.js.map +0 -1
  132. package/dist/decoding/propertyDecoder.spec.d.ts +0 -1
  133. package/dist/decoding/propertyDecoder.spec.js +0 -448
  134. package/dist/decoding/propertyDecoder.spec.js.map +0 -1
  135. package/dist/decoding/stringDecoder.spec.d.ts +0 -1
  136. package/dist/decoding/stringDecoder.spec.js +0 -387
  137. package/dist/decoding/stringDecoder.spec.js.map +0 -1
  138. package/dist/decoding/unpackNullableUtils.spec.d.ts +0 -1
  139. package/dist/decoding/unpackNullableUtils.spec.js +0 -71
  140. package/dist/decoding/unpackNullableUtils.spec.js.map +0 -1
  141. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.spec.d.ts +0 -1
  142. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.spec.js +0 -142
  143. package/dist/metadata/tileset/embeddedTilesetMetadataDecoder.spec.js.map +0 -1
  144. package/dist/mltDecoder.spec.d.ts +0 -1
  145. package/dist/mltDecoder.spec.js +0 -152
  146. package/dist/mltDecoder.spec.js.map +0 -1
  147. package/dist/vector/filter/flatSelectionVector.spec.d.ts +0 -1
  148. package/dist/vector/filter/flatSelectionVector.spec.js +0 -51
  149. package/dist/vector/filter/flatSelectionVector.spec.js.map +0 -1
  150. package/dist/vector/filter/selectionVectorUtil.spec.d.ts +0 -1
  151. package/dist/vector/filter/selectionVectorUtil.spec.js +0 -154
  152. package/dist/vector/filter/selectionVectorUtil.spec.js.map +0 -1
  153. package/dist/vector/filter/sequenceSelectionVector.spec.d.ts +0 -1
  154. package/dist/vector/filter/sequenceSelectionVector.spec.js +0 -115
  155. package/dist/vector/filter/sequenceSelectionVector.spec.js.map +0 -1
  156. package/dist/vector/flat/floatFlatVector.spec.d.ts +0 -1
  157. package/dist/vector/flat/floatFlatVector.spec.js +0 -14
  158. package/dist/vector/flat/floatFlatVector.spec.js.map +0 -1
  159. package/dist/vector/flat/intFlatVector.spec.d.ts +0 -1
  160. package/dist/vector/flat/intFlatVector.spec.js +0 -15
  161. package/dist/vector/flat/intFlatVector.spec.js.map +0 -1
  162. package/dist/vector/flat/longFlatVector.spec.d.ts +0 -1
  163. package/dist/vector/flat/longFlatVector.spec.js +0 -14
  164. package/dist/vector/flat/longFlatVector.spec.js.map +0 -1
  165. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.d.ts +0 -1
  166. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.js +0 -28
  167. package/dist/vector/fsst-dictionary/stringFsstDictionaryVector.spec.js.map +0 -1
  168. package/dist/vector/geometry/zOrderCurve.spec.d.ts +0 -1
  169. package/dist/vector/geometry/zOrderCurve.spec.js +0 -25
  170. package/dist/vector/geometry/zOrderCurve.spec.js.map +0 -1
  171. package/dist/vector/sequence/longSequenceVektor.spec.d.ts +0 -1
  172. package/dist/vector/sequence/longSequenceVektor.spec.js +0 -11
  173. package/dist/vector/sequence/longSequenceVektor.spec.js.map +0 -1
@@ -0,0 +1,910 @@
1
+ import { MASKS } from "./fastPforShared";
2
+ export function fastUnpack32_1(inValues, inPos, out, outPos) {
3
+ const in0 = inValues[inPos] >>> 0;
4
+ for (let i = 0; i < 32; i++) {
5
+ out[outPos + i] = (in0 >>> i) & 1;
6
+ }
7
+ }
8
+ export function fastUnpack32_2(inValues, inPos, out, outPos) {
9
+ let op = outPos;
10
+ const in0 = inValues[inPos] >>> 0;
11
+ const in1 = inValues[inPos + 1] >>> 0;
12
+ out[op++] = (in0 >>> 0) & 0x3;
13
+ out[op++] = (in0 >>> 2) & 0x3;
14
+ out[op++] = (in0 >>> 4) & 0x3;
15
+ out[op++] = (in0 >>> 6) & 0x3;
16
+ out[op++] = (in0 >>> 8) & 0x3;
17
+ out[op++] = (in0 >>> 10) & 0x3;
18
+ out[op++] = (in0 >>> 12) & 0x3;
19
+ out[op++] = (in0 >>> 14) & 0x3;
20
+ out[op++] = (in0 >>> 16) & 0x3;
21
+ out[op++] = (in0 >>> 18) & 0x3;
22
+ out[op++] = (in0 >>> 20) & 0x3;
23
+ out[op++] = (in0 >>> 22) & 0x3;
24
+ out[op++] = (in0 >>> 24) & 0x3;
25
+ out[op++] = (in0 >>> 26) & 0x3;
26
+ out[op++] = (in0 >>> 28) & 0x3;
27
+ out[op++] = (in0 >>> 30) & 0x3;
28
+ out[op++] = (in1 >>> 0) & 0x3;
29
+ out[op++] = (in1 >>> 2) & 0x3;
30
+ out[op++] = (in1 >>> 4) & 0x3;
31
+ out[op++] = (in1 >>> 6) & 0x3;
32
+ out[op++] = (in1 >>> 8) & 0x3;
33
+ out[op++] = (in1 >>> 10) & 0x3;
34
+ out[op++] = (in1 >>> 12) & 0x3;
35
+ out[op++] = (in1 >>> 14) & 0x3;
36
+ out[op++] = (in1 >>> 16) & 0x3;
37
+ out[op++] = (in1 >>> 18) & 0x3;
38
+ out[op++] = (in1 >>> 20) & 0x3;
39
+ out[op++] = (in1 >>> 22) & 0x3;
40
+ out[op++] = (in1 >>> 24) & 0x3;
41
+ out[op++] = (in1 >>> 26) & 0x3;
42
+ out[op++] = (in1 >>> 28) & 0x3;
43
+ out[op] = (in1 >>> 30) & 0x3;
44
+ }
45
+ export function fastUnpack32_3(inValues, inPos, out, outPos) {
46
+ let op = outPos;
47
+ const in0 = inValues[inPos] >>> 0;
48
+ const in1 = inValues[inPos + 1] >>> 0;
49
+ const in2 = inValues[inPos + 2] >>> 0;
50
+ out[op++] = (in0 >>> 0) & 0x7;
51
+ out[op++] = (in0 >>> 3) & 0x7;
52
+ out[op++] = (in0 >>> 6) & 0x7;
53
+ out[op++] = (in0 >>> 9) & 0x7;
54
+ out[op++] = (in0 >>> 12) & 0x7;
55
+ out[op++] = (in0 >>> 15) & 0x7;
56
+ out[op++] = (in0 >>> 18) & 0x7;
57
+ out[op++] = (in0 >>> 21) & 0x7;
58
+ out[op++] = (in0 >>> 24) & 0x7;
59
+ out[op++] = (in0 >>> 27) & 0x7;
60
+ out[op++] = ((in0 >>> 30) | ((in1 & 0x1) << 2)) & 0x7;
61
+ out[op++] = (in1 >>> 1) & 0x7;
62
+ out[op++] = (in1 >>> 4) & 0x7;
63
+ out[op++] = (in1 >>> 7) & 0x7;
64
+ out[op++] = (in1 >>> 10) & 0x7;
65
+ out[op++] = (in1 >>> 13) & 0x7;
66
+ out[op++] = (in1 >>> 16) & 0x7;
67
+ out[op++] = (in1 >>> 19) & 0x7;
68
+ out[op++] = (in1 >>> 22) & 0x7;
69
+ out[op++] = (in1 >>> 25) & 0x7;
70
+ out[op++] = (in1 >>> 28) & 0x7;
71
+ out[op++] = ((in1 >>> 31) | ((in2 & 0x3) << 1)) & 0x7;
72
+ out[op++] = (in2 >>> 2) & 0x7;
73
+ out[op++] = (in2 >>> 5) & 0x7;
74
+ out[op++] = (in2 >>> 8) & 0x7;
75
+ out[op++] = (in2 >>> 11) & 0x7;
76
+ out[op++] = (in2 >>> 14) & 0x7;
77
+ out[op++] = (in2 >>> 17) & 0x7;
78
+ out[op++] = (in2 >>> 20) & 0x7;
79
+ out[op++] = (in2 >>> 23) & 0x7;
80
+ out[op++] = (in2 >>> 26) & 0x7;
81
+ out[op] = (in2 >>> 29) & 0x7;
82
+ }
83
+ export function fastUnpack32_4(inValues, inPos, out, outPos) {
84
+ let op = outPos;
85
+ const in0 = inValues[inPos] >>> 0;
86
+ const in1 = inValues[inPos + 1] >>> 0;
87
+ const in2 = inValues[inPos + 2] >>> 0;
88
+ const in3 = inValues[inPos + 3] >>> 0;
89
+ out[op++] = (in0 >>> 0) & 0xf;
90
+ out[op++] = (in0 >>> 4) & 0xf;
91
+ out[op++] = (in0 >>> 8) & 0xf;
92
+ out[op++] = (in0 >>> 12) & 0xf;
93
+ out[op++] = (in0 >>> 16) & 0xf;
94
+ out[op++] = (in0 >>> 20) & 0xf;
95
+ out[op++] = (in0 >>> 24) & 0xf;
96
+ out[op++] = (in0 >>> 28) & 0xf;
97
+ out[op++] = (in1 >>> 0) & 0xf;
98
+ out[op++] = (in1 >>> 4) & 0xf;
99
+ out[op++] = (in1 >>> 8) & 0xf;
100
+ out[op++] = (in1 >>> 12) & 0xf;
101
+ out[op++] = (in1 >>> 16) & 0xf;
102
+ out[op++] = (in1 >>> 20) & 0xf;
103
+ out[op++] = (in1 >>> 24) & 0xf;
104
+ out[op++] = (in1 >>> 28) & 0xf;
105
+ out[op++] = (in2 >>> 0) & 0xf;
106
+ out[op++] = (in2 >>> 4) & 0xf;
107
+ out[op++] = (in2 >>> 8) & 0xf;
108
+ out[op++] = (in2 >>> 12) & 0xf;
109
+ out[op++] = (in2 >>> 16) & 0xf;
110
+ out[op++] = (in2 >>> 20) & 0xf;
111
+ out[op++] = (in2 >>> 24) & 0xf;
112
+ out[op++] = (in2 >>> 28) & 0xf;
113
+ out[op++] = (in3 >>> 0) & 0xf;
114
+ out[op++] = (in3 >>> 4) & 0xf;
115
+ out[op++] = (in3 >>> 8) & 0xf;
116
+ out[op++] = (in3 >>> 12) & 0xf;
117
+ out[op++] = (in3 >>> 16) & 0xf;
118
+ out[op++] = (in3 >>> 20) & 0xf;
119
+ out[op++] = (in3 >>> 24) & 0xf;
120
+ out[op] = (in3 >>> 28) & 0xf;
121
+ }
122
+ export function fastUnpack32_5(inValues, inPos, out, outPos) {
123
+ let op = outPos;
124
+ const in0 = inValues[inPos] >>> 0;
125
+ const in1 = inValues[inPos + 1] >>> 0;
126
+ const in2 = inValues[inPos + 2] >>> 0;
127
+ const in3 = inValues[inPos + 3] >>> 0;
128
+ const in4 = inValues[inPos + 4] >>> 0;
129
+ out[op++] = (in0 >>> 0) & 0x1f;
130
+ out[op++] = (in0 >>> 5) & 0x1f;
131
+ out[op++] = (in0 >>> 10) & 0x1f;
132
+ out[op++] = (in0 >>> 15) & 0x1f;
133
+ out[op++] = (in0 >>> 20) & 0x1f;
134
+ out[op++] = (in0 >>> 25) & 0x1f;
135
+ out[op++] = ((in0 >>> 30) | ((in1 & 0x7) << 2)) & 0x1f;
136
+ out[op++] = (in1 >>> 3) & 0x1f;
137
+ out[op++] = (in1 >>> 8) & 0x1f;
138
+ out[op++] = (in1 >>> 13) & 0x1f;
139
+ out[op++] = (in1 >>> 18) & 0x1f;
140
+ out[op++] = (in1 >>> 23) & 0x1f;
141
+ out[op++] = ((in1 >>> 28) | ((in2 & 0x1) << 4)) & 0x1f;
142
+ out[op++] = (in2 >>> 1) & 0x1f;
143
+ out[op++] = (in2 >>> 6) & 0x1f;
144
+ out[op++] = (in2 >>> 11) & 0x1f;
145
+ out[op++] = (in2 >>> 16) & 0x1f;
146
+ out[op++] = (in2 >>> 21) & 0x1f;
147
+ out[op++] = (in2 >>> 26) & 0x1f;
148
+ out[op++] = ((in2 >>> 31) | ((in3 & 0xf) << 1)) & 0x1f;
149
+ out[op++] = (in3 >>> 4) & 0x1f;
150
+ out[op++] = (in3 >>> 9) & 0x1f;
151
+ out[op++] = (in3 >>> 14) & 0x1f;
152
+ out[op++] = (in3 >>> 19) & 0x1f;
153
+ out[op++] = (in3 >>> 24) & 0x1f;
154
+ out[op++] = ((in3 >>> 29) | ((in4 & 0x3) << 3)) & 0x1f;
155
+ out[op++] = (in4 >>> 2) & 0x1f;
156
+ out[op++] = (in4 >>> 7) & 0x1f;
157
+ out[op++] = (in4 >>> 12) & 0x1f;
158
+ out[op++] = (in4 >>> 17) & 0x1f;
159
+ out[op++] = (in4 >>> 22) & 0x1f;
160
+ out[op] = (in4 >>> 27) & 0x1f;
161
+ }
162
+ export function fastUnpack32_6(inValues, inPos, out, outPos) {
163
+ let op = outPos;
164
+ const in0 = inValues[inPos] >>> 0;
165
+ const in1 = inValues[inPos + 1] >>> 0;
166
+ const in2 = inValues[inPos + 2] >>> 0;
167
+ const in3 = inValues[inPos + 3] >>> 0;
168
+ const in4 = inValues[inPos + 4] >>> 0;
169
+ const in5 = inValues[inPos + 5] >>> 0;
170
+ out[op++] = (in0 >>> 0) & 0x3f;
171
+ out[op++] = (in0 >>> 6) & 0x3f;
172
+ out[op++] = (in0 >>> 12) & 0x3f;
173
+ out[op++] = (in0 >>> 18) & 0x3f;
174
+ out[op++] = (in0 >>> 24) & 0x3f;
175
+ out[op++] = ((in0 >>> 30) | ((in1 & 0xf) << 2)) & 0x3f;
176
+ out[op++] = (in1 >>> 4) & 0x3f;
177
+ out[op++] = (in1 >>> 10) & 0x3f;
178
+ out[op++] = (in1 >>> 16) & 0x3f;
179
+ out[op++] = (in1 >>> 22) & 0x3f;
180
+ out[op++] = ((in1 >>> 28) | ((in2 & 0x3) << 4)) & 0x3f;
181
+ out[op++] = (in2 >>> 2) & 0x3f;
182
+ out[op++] = (in2 >>> 8) & 0x3f;
183
+ out[op++] = (in2 >>> 14) & 0x3f;
184
+ out[op++] = (in2 >>> 20) & 0x3f;
185
+ out[op++] = (in2 >>> 26) & 0x3f;
186
+ out[op++] = (in3 >>> 0) & 0x3f;
187
+ out[op++] = (in3 >>> 6) & 0x3f;
188
+ out[op++] = (in3 >>> 12) & 0x3f;
189
+ out[op++] = (in3 >>> 18) & 0x3f;
190
+ out[op++] = (in3 >>> 24) & 0x3f;
191
+ out[op++] = ((in3 >>> 30) | ((in4 & 0xf) << 2)) & 0x3f;
192
+ out[op++] = (in4 >>> 4) & 0x3f;
193
+ out[op++] = (in4 >>> 10) & 0x3f;
194
+ out[op++] = (in4 >>> 16) & 0x3f;
195
+ out[op++] = (in4 >>> 22) & 0x3f;
196
+ out[op++] = ((in4 >>> 28) | ((in5 & 0x3) << 4)) & 0x3f;
197
+ out[op++] = (in5 >>> 2) & 0x3f;
198
+ out[op++] = (in5 >>> 8) & 0x3f;
199
+ out[op++] = (in5 >>> 14) & 0x3f;
200
+ out[op++] = (in5 >>> 20) & 0x3f;
201
+ out[op] = (in5 >>> 26) & 0x3f;
202
+ }
203
+ export function fastUnpack32_7(inValues, inPos, out, outPos) {
204
+ let op = outPos;
205
+ const in0 = inValues[inPos] >>> 0;
206
+ const in1 = inValues[inPos + 1] >>> 0;
207
+ const in2 = inValues[inPos + 2] >>> 0;
208
+ const in3 = inValues[inPos + 3] >>> 0;
209
+ const in4 = inValues[inPos + 4] >>> 0;
210
+ const in5 = inValues[inPos + 5] >>> 0;
211
+ const in6 = inValues[inPos + 6] >>> 0;
212
+ out[op++] = (in0 >>> 0) & 0x7f;
213
+ out[op++] = (in0 >>> 7) & 0x7f;
214
+ out[op++] = (in0 >>> 14) & 0x7f;
215
+ out[op++] = (in0 >>> 21) & 0x7f;
216
+ out[op++] = ((in0 >>> 28) | ((in1 & 0x7) << 4)) & 0x7f;
217
+ out[op++] = (in1 >>> 3) & 0x7f;
218
+ out[op++] = (in1 >>> 10) & 0x7f;
219
+ out[op++] = (in1 >>> 17) & 0x7f;
220
+ out[op++] = (in1 >>> 24) & 0x7f;
221
+ out[op++] = ((in1 >>> 31) | ((in2 & 0x3f) << 1)) & 0x7f;
222
+ out[op++] = (in2 >>> 6) & 0x7f;
223
+ out[op++] = (in2 >>> 13) & 0x7f;
224
+ out[op++] = (in2 >>> 20) & 0x7f;
225
+ out[op++] = ((in2 >>> 27) | ((in3 & 0x3) << 5)) & 0x7f;
226
+ out[op++] = (in3 >>> 2) & 0x7f;
227
+ out[op++] = (in3 >>> 9) & 0x7f;
228
+ out[op++] = (in3 >>> 16) & 0x7f;
229
+ out[op++] = (in3 >>> 23) & 0x7f;
230
+ out[op++] = ((in3 >>> 30) | ((in4 & 0x1f) << 2)) & 0x7f;
231
+ out[op++] = (in4 >>> 5) & 0x7f;
232
+ out[op++] = (in4 >>> 12) & 0x7f;
233
+ out[op++] = (in4 >>> 19) & 0x7f;
234
+ out[op++] = ((in4 >>> 26) | ((in5 & 0x1) << 6)) & 0x7f;
235
+ out[op++] = (in5 >>> 1) & 0x7f;
236
+ out[op++] = (in5 >>> 8) & 0x7f;
237
+ out[op++] = (in5 >>> 15) & 0x7f;
238
+ out[op++] = (in5 >>> 22) & 0x7f;
239
+ out[op++] = ((in5 >>> 29) | ((in6 & 0xf) << 3)) & 0x7f;
240
+ out[op++] = (in6 >>> 4) & 0x7f;
241
+ out[op++] = (in6 >>> 11) & 0x7f;
242
+ out[op++] = (in6 >>> 18) & 0x7f;
243
+ out[op] = (in6 >>> 25) & 0x7f;
244
+ }
245
+ export function fastUnpack32_8(inValues, inPos, out, outPos) {
246
+ let op = outPos;
247
+ const in0 = inValues[inPos] >>> 0;
248
+ const in1 = inValues[inPos + 1] >>> 0;
249
+ const in2 = inValues[inPos + 2] >>> 0;
250
+ const in3 = inValues[inPos + 3] >>> 0;
251
+ const in4 = inValues[inPos + 4] >>> 0;
252
+ const in5 = inValues[inPos + 5] >>> 0;
253
+ const in6 = inValues[inPos + 6] >>> 0;
254
+ const in7 = inValues[inPos + 7] >>> 0;
255
+ out[op++] = (in0 >>> 0) & 0xff;
256
+ out[op++] = (in0 >>> 8) & 0xff;
257
+ out[op++] = (in0 >>> 16) & 0xff;
258
+ out[op++] = (in0 >>> 24) & 0xff;
259
+ out[op++] = (in1 >>> 0) & 0xff;
260
+ out[op++] = (in1 >>> 8) & 0xff;
261
+ out[op++] = (in1 >>> 16) & 0xff;
262
+ out[op++] = (in1 >>> 24) & 0xff;
263
+ out[op++] = (in2 >>> 0) & 0xff;
264
+ out[op++] = (in2 >>> 8) & 0xff;
265
+ out[op++] = (in2 >>> 16) & 0xff;
266
+ out[op++] = (in2 >>> 24) & 0xff;
267
+ out[op++] = (in3 >>> 0) & 0xff;
268
+ out[op++] = (in3 >>> 8) & 0xff;
269
+ out[op++] = (in3 >>> 16) & 0xff;
270
+ out[op++] = (in3 >>> 24) & 0xff;
271
+ out[op++] = (in4 >>> 0) & 0xff;
272
+ out[op++] = (in4 >>> 8) & 0xff;
273
+ out[op++] = (in4 >>> 16) & 0xff;
274
+ out[op++] = (in4 >>> 24) & 0xff;
275
+ out[op++] = (in5 >>> 0) & 0xff;
276
+ out[op++] = (in5 >>> 8) & 0xff;
277
+ out[op++] = (in5 >>> 16) & 0xff;
278
+ out[op++] = (in5 >>> 24) & 0xff;
279
+ out[op++] = (in6 >>> 0) & 0xff;
280
+ out[op++] = (in6 >>> 8) & 0xff;
281
+ out[op++] = (in6 >>> 16) & 0xff;
282
+ out[op++] = (in6 >>> 24) & 0xff;
283
+ out[op++] = (in7 >>> 0) & 0xff;
284
+ out[op++] = (in7 >>> 8) & 0xff;
285
+ out[op++] = (in7 >>> 16) & 0xff;
286
+ out[op] = (in7 >>> 24) & 0xff;
287
+ }
288
+ export function fastUnpack32_9(inValues, inPos, out, outPos) {
289
+ let op = outPos;
290
+ const in0 = inValues[inPos] >>> 0;
291
+ const in1 = inValues[inPos + 1] >>> 0;
292
+ const in2 = inValues[inPos + 2] >>> 0;
293
+ const in3 = inValues[inPos + 3] >>> 0;
294
+ const in4 = inValues[inPos + 4] >>> 0;
295
+ const in5 = inValues[inPos + 5] >>> 0;
296
+ const in6 = inValues[inPos + 6] >>> 0;
297
+ const in7 = inValues[inPos + 7] >>> 0;
298
+ const in8 = inValues[inPos + 8] >>> 0;
299
+ out[op++] = (in0 >>> 0) & 0x1ff;
300
+ out[op++] = (in0 >>> 9) & 0x1ff;
301
+ out[op++] = (in0 >>> 18) & 0x1ff;
302
+ out[op++] = ((in0 >>> 27) | ((in1 & 0xf) << 5)) & 0x1ff;
303
+ out[op++] = (in1 >>> 4) & 0x1ff;
304
+ out[op++] = (in1 >>> 13) & 0x1ff;
305
+ out[op++] = (in1 >>> 22) & 0x1ff;
306
+ out[op++] = ((in1 >>> 31) | ((in2 & 0xff) << 1)) & 0x1ff;
307
+ out[op++] = (in2 >>> 8) & 0x1ff;
308
+ out[op++] = (in2 >>> 17) & 0x1ff;
309
+ out[op++] = ((in2 >>> 26) | ((in3 & 0x7) << 6)) & 0x1ff;
310
+ out[op++] = (in3 >>> 3) & 0x1ff;
311
+ out[op++] = (in3 >>> 12) & 0x1ff;
312
+ out[op++] = (in3 >>> 21) & 0x1ff;
313
+ out[op++] = ((in3 >>> 30) | ((in4 & 0x7f) << 2)) & 0x1ff;
314
+ out[op++] = (in4 >>> 7) & 0x1ff;
315
+ out[op++] = (in4 >>> 16) & 0x1ff;
316
+ out[op++] = ((in4 >>> 25) | ((in5 & 0x3) << 7)) & 0x1ff;
317
+ out[op++] = (in5 >>> 2) & 0x1ff;
318
+ out[op++] = (in5 >>> 11) & 0x1ff;
319
+ out[op++] = (in5 >>> 20) & 0x1ff;
320
+ out[op++] = ((in5 >>> 29) | ((in6 & 0x3f) << 3)) & 0x1ff;
321
+ out[op++] = (in6 >>> 6) & 0x1ff;
322
+ out[op++] = (in6 >>> 15) & 0x1ff;
323
+ out[op++] = ((in6 >>> 24) | ((in7 & 0x1) << 8)) & 0x1ff;
324
+ out[op++] = (in7 >>> 1) & 0x1ff;
325
+ out[op++] = (in7 >>> 10) & 0x1ff;
326
+ out[op++] = (in7 >>> 19) & 0x1ff;
327
+ out[op++] = ((in7 >>> 28) | ((in8 & 0x1f) << 4)) & 0x1ff;
328
+ out[op++] = (in8 >>> 5) & 0x1ff;
329
+ out[op++] = (in8 >>> 14) & 0x1ff;
330
+ out[op] = (in8 >>> 23) & 0x1ff;
331
+ }
332
+ export function fastUnpack32_10(inValues, inPos, out, outPos) {
333
+ let op = outPos;
334
+ const in0 = inValues[inPos] >>> 0;
335
+ const in1 = inValues[inPos + 1] >>> 0;
336
+ const in2 = inValues[inPos + 2] >>> 0;
337
+ const in3 = inValues[inPos + 3] >>> 0;
338
+ const in4 = inValues[inPos + 4] >>> 0;
339
+ const in5 = inValues[inPos + 5] >>> 0;
340
+ const in6 = inValues[inPos + 6] >>> 0;
341
+ const in7 = inValues[inPos + 7] >>> 0;
342
+ const in8 = inValues[inPos + 8] >>> 0;
343
+ const in9 = inValues[inPos + 9] >>> 0;
344
+ out[op++] = (in0 >>> 0) & 0x3ff;
345
+ out[op++] = (in0 >>> 10) & 0x3ff;
346
+ out[op++] = (in0 >>> 20) & 0x3ff;
347
+ out[op++] = ((in0 >>> 30) | ((in1 & 0xff) << 2)) & 0x3ff;
348
+ out[op++] = (in1 >>> 8) & 0x3ff;
349
+ out[op++] = (in1 >>> 18) & 0x3ff;
350
+ out[op++] = ((in1 >>> 28) | ((in2 & 0x3f) << 4)) & 0x3ff;
351
+ out[op++] = (in2 >>> 6) & 0x3ff;
352
+ out[op++] = (in2 >>> 16) & 0x3ff;
353
+ out[op++] = ((in2 >>> 26) | ((in3 & 0xf) << 6)) & 0x3ff;
354
+ out[op++] = (in3 >>> 4) & 0x3ff;
355
+ out[op++] = (in3 >>> 14) & 0x3ff;
356
+ out[op++] = ((in3 >>> 24) | ((in4 & 0x3) << 8)) & 0x3ff;
357
+ out[op++] = (in4 >>> 2) & 0x3ff;
358
+ out[op++] = (in4 >>> 12) & 0x3ff;
359
+ out[op++] = (in4 >>> 22) & 0x3ff;
360
+ out[op++] = (in5 >>> 0) & 0x3ff;
361
+ out[op++] = (in5 >>> 10) & 0x3ff;
362
+ out[op++] = (in5 >>> 20) & 0x3ff;
363
+ out[op++] = ((in5 >>> 30) | ((in6 & 0xff) << 2)) & 0x3ff;
364
+ out[op++] = (in6 >>> 8) & 0x3ff;
365
+ out[op++] = (in6 >>> 18) & 0x3ff;
366
+ out[op++] = ((in6 >>> 28) | ((in7 & 0x3f) << 4)) & 0x3ff;
367
+ out[op++] = (in7 >>> 6) & 0x3ff;
368
+ out[op++] = (in7 >>> 16) & 0x3ff;
369
+ out[op++] = ((in7 >>> 26) | ((in8 & 0xf) << 6)) & 0x3ff;
370
+ out[op++] = (in8 >>> 4) & 0x3ff;
371
+ out[op++] = (in8 >>> 14) & 0x3ff;
372
+ out[op++] = ((in8 >>> 24) | ((in9 & 0x3) << 8)) & 0x3ff;
373
+ out[op++] = (in9 >>> 2) & 0x3ff;
374
+ out[op++] = (in9 >>> 12) & 0x3ff;
375
+ out[op] = (in9 >>> 22) & 0x3ff;
376
+ }
377
+ export function fastUnpack32_11(inValues, inPos, out, outPos) {
378
+ let op = outPos;
379
+ const in0 = inValues[inPos] >>> 0;
380
+ const in1 = inValues[inPos + 1] >>> 0;
381
+ const in2 = inValues[inPos + 2] >>> 0;
382
+ const in3 = inValues[inPos + 3] >>> 0;
383
+ const in4 = inValues[inPos + 4] >>> 0;
384
+ const in5 = inValues[inPos + 5] >>> 0;
385
+ const in6 = inValues[inPos + 6] >>> 0;
386
+ const in7 = inValues[inPos + 7] >>> 0;
387
+ const in8 = inValues[inPos + 8] >>> 0;
388
+ const in9 = inValues[inPos + 9] >>> 0;
389
+ const in10 = inValues[inPos + 10] >>> 0;
390
+ out[op++] = (in0 >>> 0) & 0x7ff;
391
+ out[op++] = (in0 >>> 11) & 0x7ff;
392
+ out[op++] = ((in0 >>> 22) | ((in1 & 0x1) << 10)) & 0x7ff;
393
+ out[op++] = (in1 >>> 1) & 0x7ff;
394
+ out[op++] = (in1 >>> 12) & 0x7ff;
395
+ out[op++] = ((in1 >>> 23) | ((in2 & 0x3) << 9)) & 0x7ff;
396
+ out[op++] = (in2 >>> 2) & 0x7ff;
397
+ out[op++] = (in2 >>> 13) & 0x7ff;
398
+ out[op++] = ((in2 >>> 24) | ((in3 & 0x7) << 8)) & 0x7ff;
399
+ out[op++] = (in3 >>> 3) & 0x7ff;
400
+ out[op++] = (in3 >>> 14) & 0x7ff;
401
+ out[op++] = ((in3 >>> 25) | ((in4 & 0xf) << 7)) & 0x7ff;
402
+ out[op++] = (in4 >>> 4) & 0x7ff;
403
+ out[op++] = (in4 >>> 15) & 0x7ff;
404
+ out[op++] = ((in4 >>> 26) | ((in5 & 0x1f) << 6)) & 0x7ff;
405
+ out[op++] = (in5 >>> 5) & 0x7ff;
406
+ out[op++] = (in5 >>> 16) & 0x7ff;
407
+ out[op++] = ((in5 >>> 27) | ((in6 & 0x3f) << 5)) & 0x7ff;
408
+ out[op++] = (in6 >>> 6) & 0x7ff;
409
+ out[op++] = (in6 >>> 17) & 0x7ff;
410
+ out[op++] = ((in6 >>> 28) | ((in7 & 0x7f) << 4)) & 0x7ff;
411
+ out[op++] = (in7 >>> 7) & 0x7ff;
412
+ out[op++] = (in7 >>> 18) & 0x7ff;
413
+ out[op++] = ((in7 >>> 29) | ((in8 & 0xff) << 3)) & 0x7ff;
414
+ out[op++] = (in8 >>> 8) & 0x7ff;
415
+ out[op++] = (in8 >>> 19) & 0x7ff;
416
+ out[op++] = ((in8 >>> 30) | ((in9 & 0x1ff) << 2)) & 0x7ff;
417
+ out[op++] = (in9 >>> 9) & 0x7ff;
418
+ out[op++] = (in9 >>> 20) & 0x7ff;
419
+ out[op++] = ((in9 >>> 31) | ((in10 & 0x3ff) << 1)) & 0x7ff;
420
+ out[op++] = (in10 >>> 10) & 0x7ff;
421
+ out[op] = (in10 >>> 21) & 0x7ff;
422
+ }
423
+ export function fastUnpack32_12(inValues, inPos, out, outPos) {
424
+ let op = outPos;
425
+ const in0 = inValues[inPos] >>> 0;
426
+ const in1 = inValues[inPos + 1] >>> 0;
427
+ const in2 = inValues[inPos + 2] >>> 0;
428
+ const in3 = inValues[inPos + 3] >>> 0;
429
+ const in4 = inValues[inPos + 4] >>> 0;
430
+ const in5 = inValues[inPos + 5] >>> 0;
431
+ const in6 = inValues[inPos + 6] >>> 0;
432
+ const in7 = inValues[inPos + 7] >>> 0;
433
+ const in8 = inValues[inPos + 8] >>> 0;
434
+ const in9 = inValues[inPos + 9] >>> 0;
435
+ const in10 = inValues[inPos + 10] >>> 0;
436
+ const in11 = inValues[inPos + 11] >>> 0;
437
+ out[op++] = (in0 >>> 0) & 0xfff;
438
+ out[op++] = (in0 >>> 12) & 0xfff;
439
+ out[op++] = ((in0 >>> 24) | ((in1 & 0xf) << 8)) & 0xfff;
440
+ out[op++] = (in1 >>> 4) & 0xfff;
441
+ out[op++] = (in1 >>> 16) & 0xfff;
442
+ out[op++] = ((in1 >>> 28) | ((in2 & 0xff) << 4)) & 0xfff;
443
+ out[op++] = (in2 >>> 8) & 0xfff;
444
+ out[op++] = (in2 >>> 20) & 0xfff;
445
+ out[op++] = (in3 >>> 0) & 0xfff;
446
+ out[op++] = (in3 >>> 12) & 0xfff;
447
+ out[op++] = ((in3 >>> 24) | ((in4 & 0xf) << 8)) & 0xfff;
448
+ out[op++] = (in4 >>> 4) & 0xfff;
449
+ out[op++] = (in4 >>> 16) & 0xfff;
450
+ out[op++] = ((in4 >>> 28) | ((in5 & 0xff) << 4)) & 0xfff;
451
+ out[op++] = (in5 >>> 8) & 0xfff;
452
+ out[op++] = (in5 >>> 20) & 0xfff;
453
+ out[op++] = (in6 >>> 0) & 0xfff;
454
+ out[op++] = (in6 >>> 12) & 0xfff;
455
+ out[op++] = ((in6 >>> 24) | ((in7 & 0xf) << 8)) & 0xfff;
456
+ out[op++] = (in7 >>> 4) & 0xfff;
457
+ out[op++] = (in7 >>> 16) & 0xfff;
458
+ out[op++] = ((in7 >>> 28) | ((in8 & 0xff) << 4)) & 0xfff;
459
+ out[op++] = (in8 >>> 8) & 0xfff;
460
+ out[op++] = (in8 >>> 20) & 0xfff;
461
+ out[op++] = (in9 >>> 0) & 0xfff;
462
+ out[op++] = (in9 >>> 12) & 0xfff;
463
+ out[op++] = ((in9 >>> 24) | ((in10 & 0xf) << 8)) & 0xfff;
464
+ out[op++] = (in10 >>> 4) & 0xfff;
465
+ out[op++] = (in10 >>> 16) & 0xfff;
466
+ out[op++] = ((in10 >>> 28) | ((in11 & 0xff) << 4)) & 0xfff;
467
+ out[op++] = (in11 >>> 8) & 0xfff;
468
+ out[op] = (in11 >>> 20) & 0xfff;
469
+ }
470
+ export function fastUnpack32_16(inValues, inPos, out, outPos) {
471
+ let op = outPos;
472
+ const in0 = inValues[inPos] >>> 0;
473
+ const in1 = inValues[inPos + 1] >>> 0;
474
+ const in2 = inValues[inPos + 2] >>> 0;
475
+ const in3 = inValues[inPos + 3] >>> 0;
476
+ const in4 = inValues[inPos + 4] >>> 0;
477
+ const in5 = inValues[inPos + 5] >>> 0;
478
+ const in6 = inValues[inPos + 6] >>> 0;
479
+ const in7 = inValues[inPos + 7] >>> 0;
480
+ const in8 = inValues[inPos + 8] >>> 0;
481
+ const in9 = inValues[inPos + 9] >>> 0;
482
+ const in10 = inValues[inPos + 10] >>> 0;
483
+ const in11 = inValues[inPos + 11] >>> 0;
484
+ const in12 = inValues[inPos + 12] >>> 0;
485
+ const in13 = inValues[inPos + 13] >>> 0;
486
+ const in14 = inValues[inPos + 14] >>> 0;
487
+ const in15 = inValues[inPos + 15] >>> 0;
488
+ out[op++] = (in0 >>> 0) & 0xffff;
489
+ out[op++] = (in0 >>> 16) & 0xffff;
490
+ out[op++] = (in1 >>> 0) & 0xffff;
491
+ out[op++] = (in1 >>> 16) & 0xffff;
492
+ out[op++] = (in2 >>> 0) & 0xffff;
493
+ out[op++] = (in2 >>> 16) & 0xffff;
494
+ out[op++] = (in3 >>> 0) & 0xffff;
495
+ out[op++] = (in3 >>> 16) & 0xffff;
496
+ out[op++] = (in4 >>> 0) & 0xffff;
497
+ out[op++] = (in4 >>> 16) & 0xffff;
498
+ out[op++] = (in5 >>> 0) & 0xffff;
499
+ out[op++] = (in5 >>> 16) & 0xffff;
500
+ out[op++] = (in6 >>> 0) & 0xffff;
501
+ out[op++] = (in6 >>> 16) & 0xffff;
502
+ out[op++] = (in7 >>> 0) & 0xffff;
503
+ out[op++] = (in7 >>> 16) & 0xffff;
504
+ out[op++] = (in8 >>> 0) & 0xffff;
505
+ out[op++] = (in8 >>> 16) & 0xffff;
506
+ out[op++] = (in9 >>> 0) & 0xffff;
507
+ out[op++] = (in9 >>> 16) & 0xffff;
508
+ out[op++] = (in10 >>> 0) & 0xffff;
509
+ out[op++] = (in10 >>> 16) & 0xffff;
510
+ out[op++] = (in11 >>> 0) & 0xffff;
511
+ out[op++] = (in11 >>> 16) & 0xffff;
512
+ out[op++] = (in12 >>> 0) & 0xffff;
513
+ out[op++] = (in12 >>> 16) & 0xffff;
514
+ out[op++] = (in13 >>> 0) & 0xffff;
515
+ out[op++] = (in13 >>> 16) & 0xffff;
516
+ out[op++] = (in14 >>> 0) & 0xffff;
517
+ out[op++] = (in14 >>> 16) & 0xffff;
518
+ out[op++] = (in15 >>> 0) & 0xffff;
519
+ out[op] = (in15 >>> 16) & 0xffff;
520
+ }
521
+ export function fastUnpack256_1(inValues, inPos, out, outPos) {
522
+ let op = outPos;
523
+ let ip = inPos;
524
+ for (let c = 0; c < 8; c++) {
525
+ const in0 = inValues[ip++] >>> 0;
526
+ out[op++] = (in0 >>> 0) & 0x1;
527
+ out[op++] = (in0 >>> 1) & 0x1;
528
+ out[op++] = (in0 >>> 2) & 0x1;
529
+ out[op++] = (in0 >>> 3) & 0x1;
530
+ out[op++] = (in0 >>> 4) & 0x1;
531
+ out[op++] = (in0 >>> 5) & 0x1;
532
+ out[op++] = (in0 >>> 6) & 0x1;
533
+ out[op++] = (in0 >>> 7) & 0x1;
534
+ out[op++] = (in0 >>> 8) & 0x1;
535
+ out[op++] = (in0 >>> 9) & 0x1;
536
+ out[op++] = (in0 >>> 10) & 0x1;
537
+ out[op++] = (in0 >>> 11) & 0x1;
538
+ out[op++] = (in0 >>> 12) & 0x1;
539
+ out[op++] = (in0 >>> 13) & 0x1;
540
+ out[op++] = (in0 >>> 14) & 0x1;
541
+ out[op++] = (in0 >>> 15) & 0x1;
542
+ out[op++] = (in0 >>> 16) & 0x1;
543
+ out[op++] = (in0 >>> 17) & 0x1;
544
+ out[op++] = (in0 >>> 18) & 0x1;
545
+ out[op++] = (in0 >>> 19) & 0x1;
546
+ out[op++] = (in0 >>> 20) & 0x1;
547
+ out[op++] = (in0 >>> 21) & 0x1;
548
+ out[op++] = (in0 >>> 22) & 0x1;
549
+ out[op++] = (in0 >>> 23) & 0x1;
550
+ out[op++] = (in0 >>> 24) & 0x1;
551
+ out[op++] = (in0 >>> 25) & 0x1;
552
+ out[op++] = (in0 >>> 26) & 0x1;
553
+ out[op++] = (in0 >>> 27) & 0x1;
554
+ out[op++] = (in0 >>> 28) & 0x1;
555
+ out[op++] = (in0 >>> 29) & 0x1;
556
+ out[op++] = (in0 >>> 30) & 0x1;
557
+ out[op++] = (in0 >>> 31) & 0x1;
558
+ }
559
+ }
560
+ export function fastUnpack256_2(inValues, inPos, out, outPos) {
561
+ let op = outPos;
562
+ let ip = inPos;
563
+ for (let c = 0; c < 8; c++) {
564
+ const in0 = inValues[ip++] >>> 0;
565
+ const in1 = inValues[ip++] >>> 0;
566
+ out[op++] = (in0 >>> 0) & 0x3;
567
+ out[op++] = (in0 >>> 2) & 0x3;
568
+ out[op++] = (in0 >>> 4) & 0x3;
569
+ out[op++] = (in0 >>> 6) & 0x3;
570
+ out[op++] = (in0 >>> 8) & 0x3;
571
+ out[op++] = (in0 >>> 10) & 0x3;
572
+ out[op++] = (in0 >>> 12) & 0x3;
573
+ out[op++] = (in0 >>> 14) & 0x3;
574
+ out[op++] = (in0 >>> 16) & 0x3;
575
+ out[op++] = (in0 >>> 18) & 0x3;
576
+ out[op++] = (in0 >>> 20) & 0x3;
577
+ out[op++] = (in0 >>> 22) & 0x3;
578
+ out[op++] = (in0 >>> 24) & 0x3;
579
+ out[op++] = (in0 >>> 26) & 0x3;
580
+ out[op++] = (in0 >>> 28) & 0x3;
581
+ out[op++] = (in0 >>> 30) & 0x3;
582
+ out[op++] = (in1 >>> 0) & 0x3;
583
+ out[op++] = (in1 >>> 2) & 0x3;
584
+ out[op++] = (in1 >>> 4) & 0x3;
585
+ out[op++] = (in1 >>> 6) & 0x3;
586
+ out[op++] = (in1 >>> 8) & 0x3;
587
+ out[op++] = (in1 >>> 10) & 0x3;
588
+ out[op++] = (in1 >>> 12) & 0x3;
589
+ out[op++] = (in1 >>> 14) & 0x3;
590
+ out[op++] = (in1 >>> 16) & 0x3;
591
+ out[op++] = (in1 >>> 18) & 0x3;
592
+ out[op++] = (in1 >>> 20) & 0x3;
593
+ out[op++] = (in1 >>> 22) & 0x3;
594
+ out[op++] = (in1 >>> 24) & 0x3;
595
+ out[op++] = (in1 >>> 26) & 0x3;
596
+ out[op++] = (in1 >>> 28) & 0x3;
597
+ out[op++] = (in1 >>> 30) & 0x3;
598
+ }
599
+ }
600
+ export function fastUnpack256_3(inValues, inPos, out, outPos) {
601
+ let op = outPos;
602
+ let ip = inPos;
603
+ for (let c = 0; c < 8; c++) {
604
+ const in0 = inValues[ip++] >>> 0;
605
+ const in1 = inValues[ip++] >>> 0;
606
+ const in2 = inValues[ip++] >>> 0;
607
+ out[op++] = (in0 >>> 0) & 0x7;
608
+ out[op++] = (in0 >>> 3) & 0x7;
609
+ out[op++] = (in0 >>> 6) & 0x7;
610
+ out[op++] = (in0 >>> 9) & 0x7;
611
+ out[op++] = (in0 >>> 12) & 0x7;
612
+ out[op++] = (in0 >>> 15) & 0x7;
613
+ out[op++] = (in0 >>> 18) & 0x7;
614
+ out[op++] = (in0 >>> 21) & 0x7;
615
+ out[op++] = (in0 >>> 24) & 0x7;
616
+ out[op++] = (in0 >>> 27) & 0x7;
617
+ out[op++] = ((in0 >>> 30) | ((in1 & 0x1) << 2)) & 0x7;
618
+ out[op++] = (in1 >>> 1) & 0x7;
619
+ out[op++] = (in1 >>> 4) & 0x7;
620
+ out[op++] = (in1 >>> 7) & 0x7;
621
+ out[op++] = (in1 >>> 10) & 0x7;
622
+ out[op++] = (in1 >>> 13) & 0x7;
623
+ out[op++] = (in1 >>> 16) & 0x7;
624
+ out[op++] = (in1 >>> 19) & 0x7;
625
+ out[op++] = (in1 >>> 22) & 0x7;
626
+ out[op++] = (in1 >>> 25) & 0x7;
627
+ out[op++] = (in1 >>> 28) & 0x7;
628
+ out[op++] = ((in1 >>> 31) | ((in2 & 0x3) << 1)) & 0x7;
629
+ out[op++] = (in2 >>> 2) & 0x7;
630
+ out[op++] = (in2 >>> 5) & 0x7;
631
+ out[op++] = (in2 >>> 8) & 0x7;
632
+ out[op++] = (in2 >>> 11) & 0x7;
633
+ out[op++] = (in2 >>> 14) & 0x7;
634
+ out[op++] = (in2 >>> 17) & 0x7;
635
+ out[op++] = (in2 >>> 20) & 0x7;
636
+ out[op++] = (in2 >>> 23) & 0x7;
637
+ out[op++] = (in2 >>> 26) & 0x7;
638
+ out[op++] = (in2 >>> 29) & 0x7;
639
+ }
640
+ }
641
+ export function fastUnpack256_4(inValues, inPos, out, outPos) {
642
+ let op = outPos;
643
+ let ip = inPos;
644
+ for (let c = 0; c < 8; c++) {
645
+ const in0 = inValues[ip++] >>> 0;
646
+ const in1 = inValues[ip++] >>> 0;
647
+ const in2 = inValues[ip++] >>> 0;
648
+ const in3 = inValues[ip++] >>> 0;
649
+ out[op++] = (in0 >>> 0) & 0xf;
650
+ out[op++] = (in0 >>> 4) & 0xf;
651
+ out[op++] = (in0 >>> 8) & 0xf;
652
+ out[op++] = (in0 >>> 12) & 0xf;
653
+ out[op++] = (in0 >>> 16) & 0xf;
654
+ out[op++] = (in0 >>> 20) & 0xf;
655
+ out[op++] = (in0 >>> 24) & 0xf;
656
+ out[op++] = (in0 >>> 28) & 0xf;
657
+ out[op++] = (in1 >>> 0) & 0xf;
658
+ out[op++] = (in1 >>> 4) & 0xf;
659
+ out[op++] = (in1 >>> 8) & 0xf;
660
+ out[op++] = (in1 >>> 12) & 0xf;
661
+ out[op++] = (in1 >>> 16) & 0xf;
662
+ out[op++] = (in1 >>> 20) & 0xf;
663
+ out[op++] = (in1 >>> 24) & 0xf;
664
+ out[op++] = (in1 >>> 28) & 0xf;
665
+ out[op++] = (in2 >>> 0) & 0xf;
666
+ out[op++] = (in2 >>> 4) & 0xf;
667
+ out[op++] = (in2 >>> 8) & 0xf;
668
+ out[op++] = (in2 >>> 12) & 0xf;
669
+ out[op++] = (in2 >>> 16) & 0xf;
670
+ out[op++] = (in2 >>> 20) & 0xf;
671
+ out[op++] = (in2 >>> 24) & 0xf;
672
+ out[op++] = (in2 >>> 28) & 0xf;
673
+ out[op++] = (in3 >>> 0) & 0xf;
674
+ out[op++] = (in3 >>> 4) & 0xf;
675
+ out[op++] = (in3 >>> 8) & 0xf;
676
+ out[op++] = (in3 >>> 12) & 0xf;
677
+ out[op++] = (in3 >>> 16) & 0xf;
678
+ out[op++] = (in3 >>> 20) & 0xf;
679
+ out[op++] = (in3 >>> 24) & 0xf;
680
+ out[op++] = (in3 >>> 28) & 0xf;
681
+ }
682
+ }
683
+ export function fastUnpack256_5(inValues, inPos, out, outPos) {
684
+ let op = outPos;
685
+ let ip = inPos;
686
+ for (let c = 0; c < 8; c++) {
687
+ const in0 = inValues[ip++] >>> 0;
688
+ const in1 = inValues[ip++] >>> 0;
689
+ const in2 = inValues[ip++] >>> 0;
690
+ const in3 = inValues[ip++] >>> 0;
691
+ const in4 = inValues[ip++] >>> 0;
692
+ out[op++] = (in0 >>> 0) & 0x1f;
693
+ out[op++] = (in0 >>> 5) & 0x1f;
694
+ out[op++] = (in0 >>> 10) & 0x1f;
695
+ out[op++] = (in0 >>> 15) & 0x1f;
696
+ out[op++] = (in0 >>> 20) & 0x1f;
697
+ out[op++] = (in0 >>> 25) & 0x1f;
698
+ out[op++] = ((in0 >>> 30) | ((in1 & 0x7) << 2)) & 0x1f;
699
+ out[op++] = (in1 >>> 3) & 0x1f;
700
+ out[op++] = (in1 >>> 8) & 0x1f;
701
+ out[op++] = (in1 >>> 13) & 0x1f;
702
+ out[op++] = (in1 >>> 18) & 0x1f;
703
+ out[op++] = (in1 >>> 23) & 0x1f;
704
+ out[op++] = ((in1 >>> 28) | ((in2 & 0x1) << 4)) & 0x1f;
705
+ out[op++] = (in2 >>> 1) & 0x1f;
706
+ out[op++] = (in2 >>> 6) & 0x1f;
707
+ out[op++] = (in2 >>> 11) & 0x1f;
708
+ out[op++] = (in2 >>> 16) & 0x1f;
709
+ out[op++] = (in2 >>> 21) & 0x1f;
710
+ out[op++] = (in2 >>> 26) & 0x1f;
711
+ out[op++] = ((in2 >>> 31) | ((in3 & 0xf) << 1)) & 0x1f;
712
+ out[op++] = (in3 >>> 4) & 0x1f;
713
+ out[op++] = (in3 >>> 9) & 0x1f;
714
+ out[op++] = (in3 >>> 14) & 0x1f;
715
+ out[op++] = (in3 >>> 19) & 0x1f;
716
+ out[op++] = (in3 >>> 24) & 0x1f;
717
+ out[op++] = ((in3 >>> 29) | ((in4 & 0x3) << 3)) & 0x1f;
718
+ out[op++] = (in4 >>> 2) & 0x1f;
719
+ out[op++] = (in4 >>> 7) & 0x1f;
720
+ out[op++] = (in4 >>> 12) & 0x1f;
721
+ out[op++] = (in4 >>> 17) & 0x1f;
722
+ out[op++] = (in4 >>> 22) & 0x1f;
723
+ out[op++] = (in4 >>> 27) & 0x1f;
724
+ }
725
+ }
726
+ export function fastUnpack256_6(inValues, inPos, out, outPos) {
727
+ let op = outPos;
728
+ let ip = inPos;
729
+ for (let c = 0; c < 8; c++) {
730
+ const in0 = inValues[ip++] >>> 0;
731
+ const in1 = inValues[ip++] >>> 0;
732
+ const in2 = inValues[ip++] >>> 0;
733
+ const in3 = inValues[ip++] >>> 0;
734
+ const in4 = inValues[ip++] >>> 0;
735
+ const in5 = inValues[ip++] >>> 0;
736
+ out[op++] = (in0 >>> 0) & 0x3f;
737
+ out[op++] = (in0 >>> 6) & 0x3f;
738
+ out[op++] = (in0 >>> 12) & 0x3f;
739
+ out[op++] = (in0 >>> 18) & 0x3f;
740
+ out[op++] = (in0 >>> 24) & 0x3f;
741
+ out[op++] = ((in0 >>> 30) | ((in1 & 0xf) << 2)) & 0x3f;
742
+ out[op++] = (in1 >>> 4) & 0x3f;
743
+ out[op++] = (in1 >>> 10) & 0x3f;
744
+ out[op++] = (in1 >>> 16) & 0x3f;
745
+ out[op++] = (in1 >>> 22) & 0x3f;
746
+ out[op++] = ((in1 >>> 28) | ((in2 & 0x3) << 4)) & 0x3f;
747
+ out[op++] = (in2 >>> 2) & 0x3f;
748
+ out[op++] = (in2 >>> 8) & 0x3f;
749
+ out[op++] = (in2 >>> 14) & 0x3f;
750
+ out[op++] = (in2 >>> 20) & 0x3f;
751
+ out[op++] = (in2 >>> 26) & 0x3f;
752
+ out[op++] = (in3 >>> 0) & 0x3f;
753
+ out[op++] = (in3 >>> 6) & 0x3f;
754
+ out[op++] = (in3 >>> 12) & 0x3f;
755
+ out[op++] = (in3 >>> 18) & 0x3f;
756
+ out[op++] = (in3 >>> 24) & 0x3f;
757
+ out[op++] = ((in3 >>> 30) | ((in4 & 0xf) << 2)) & 0x3f;
758
+ out[op++] = (in4 >>> 4) & 0x3f;
759
+ out[op++] = (in4 >>> 10) & 0x3f;
760
+ out[op++] = (in4 >>> 16) & 0x3f;
761
+ out[op++] = (in4 >>> 22) & 0x3f;
762
+ out[op++] = ((in4 >>> 28) | ((in5 & 0x3) << 4)) & 0x3f;
763
+ out[op++] = (in5 >>> 2) & 0x3f;
764
+ out[op++] = (in5 >>> 8) & 0x3f;
765
+ out[op++] = (in5 >>> 14) & 0x3f;
766
+ out[op++] = (in5 >>> 20) & 0x3f;
767
+ out[op++] = (in5 >>> 26) & 0x3f;
768
+ }
769
+ }
770
+ export function fastUnpack256_7(inValues, inPos, out, outPos) {
771
+ let op = outPos;
772
+ let ip = inPos;
773
+ for (let c = 0; c < 8; c++) {
774
+ const in0 = inValues[ip++] >>> 0;
775
+ const in1 = inValues[ip++] >>> 0;
776
+ const in2 = inValues[ip++] >>> 0;
777
+ const in3 = inValues[ip++] >>> 0;
778
+ const in4 = inValues[ip++] >>> 0;
779
+ const in5 = inValues[ip++] >>> 0;
780
+ const in6 = inValues[ip++] >>> 0;
781
+ out[op++] = (in0 >>> 0) & 0x7f;
782
+ out[op++] = (in0 >>> 7) & 0x7f;
783
+ out[op++] = (in0 >>> 14) & 0x7f;
784
+ out[op++] = (in0 >>> 21) & 0x7f;
785
+ out[op++] = ((in0 >>> 28) | ((in1 & 0x7) << 4)) & 0x7f;
786
+ out[op++] = (in1 >>> 3) & 0x7f;
787
+ out[op++] = (in1 >>> 10) & 0x7f;
788
+ out[op++] = (in1 >>> 17) & 0x7f;
789
+ out[op++] = (in1 >>> 24) & 0x7f;
790
+ out[op++] = ((in1 >>> 31) | ((in2 & 0x3f) << 1)) & 0x7f;
791
+ out[op++] = (in2 >>> 6) & 0x7f;
792
+ out[op++] = (in2 >>> 13) & 0x7f;
793
+ out[op++] = (in2 >>> 20) & 0x7f;
794
+ out[op++] = ((in2 >>> 27) | ((in3 & 0x3) << 5)) & 0x7f;
795
+ out[op++] = (in3 >>> 2) & 0x7f;
796
+ out[op++] = (in3 >>> 9) & 0x7f;
797
+ out[op++] = (in3 >>> 16) & 0x7f;
798
+ out[op++] = (in3 >>> 23) & 0x7f;
799
+ out[op++] = ((in3 >>> 30) | ((in4 & 0x1f) << 2)) & 0x7f;
800
+ out[op++] = (in4 >>> 5) & 0x7f;
801
+ out[op++] = (in4 >>> 12) & 0x7f;
802
+ out[op++] = (in4 >>> 19) & 0x7f;
803
+ out[op++] = ((in4 >>> 26) | ((in5 & 0x1) << 6)) & 0x7f;
804
+ out[op++] = (in5 >>> 1) & 0x7f;
805
+ out[op++] = (in5 >>> 8) & 0x7f;
806
+ out[op++] = (in5 >>> 15) & 0x7f;
807
+ out[op++] = (in5 >>> 22) & 0x7f;
808
+ out[op++] = ((in5 >>> 29) | ((in6 & 0xf) << 3)) & 0x7f;
809
+ out[op++] = (in6 >>> 4) & 0x7f;
810
+ out[op++] = (in6 >>> 11) & 0x7f;
811
+ out[op++] = (in6 >>> 18) & 0x7f;
812
+ out[op++] = (in6 >>> 25) & 0x7f;
813
+ }
814
+ }
815
+ export function fastUnpack256_8(inValues, inPos, out, outPos) {
816
+ let op = outPos;
817
+ let ip = inPos;
818
+ for (let c = 0; c < 8; c++) {
819
+ const in0 = inValues[ip++] >>> 0;
820
+ const in1 = inValues[ip++] >>> 0;
821
+ const in2 = inValues[ip++] >>> 0;
822
+ const in3 = inValues[ip++] >>> 0;
823
+ const in4 = inValues[ip++] >>> 0;
824
+ const in5 = inValues[ip++] >>> 0;
825
+ const in6 = inValues[ip++] >>> 0;
826
+ const in7 = inValues[ip++] >>> 0;
827
+ out[op++] = (in0 >>> 0) & 0xff;
828
+ out[op++] = (in0 >>> 8) & 0xff;
829
+ out[op++] = (in0 >>> 16) & 0xff;
830
+ out[op++] = (in0 >>> 24) & 0xff;
831
+ out[op++] = (in1 >>> 0) & 0xff;
832
+ out[op++] = (in1 >>> 8) & 0xff;
833
+ out[op++] = (in1 >>> 16) & 0xff;
834
+ out[op++] = (in1 >>> 24) & 0xff;
835
+ out[op++] = (in2 >>> 0) & 0xff;
836
+ out[op++] = (in2 >>> 8) & 0xff;
837
+ out[op++] = (in2 >>> 16) & 0xff;
838
+ out[op++] = (in2 >>> 24) & 0xff;
839
+ out[op++] = (in3 >>> 0) & 0xff;
840
+ out[op++] = (in3 >>> 8) & 0xff;
841
+ out[op++] = (in3 >>> 16) & 0xff;
842
+ out[op++] = (in3 >>> 24) & 0xff;
843
+ out[op++] = (in4 >>> 0) & 0xff;
844
+ out[op++] = (in4 >>> 8) & 0xff;
845
+ out[op++] = (in4 >>> 16) & 0xff;
846
+ out[op++] = (in4 >>> 24) & 0xff;
847
+ out[op++] = (in5 >>> 0) & 0xff;
848
+ out[op++] = (in5 >>> 8) & 0xff;
849
+ out[op++] = (in5 >>> 16) & 0xff;
850
+ out[op++] = (in5 >>> 24) & 0xff;
851
+ out[op++] = (in6 >>> 0) & 0xff;
852
+ out[op++] = (in6 >>> 8) & 0xff;
853
+ out[op++] = (in6 >>> 16) & 0xff;
854
+ out[op++] = (in6 >>> 24) & 0xff;
855
+ out[op++] = (in7 >>> 0) & 0xff;
856
+ out[op++] = (in7 >>> 8) & 0xff;
857
+ out[op++] = (in7 >>> 16) & 0xff;
858
+ out[op++] = (in7 >>> 24) & 0xff;
859
+ }
860
+ }
861
+ export function fastUnpack256_16(inValues, inPos, out, outPos) {
862
+ let op = outPos;
863
+ let ip = inPos;
864
+ for (let i = 0; i < 128; i++) {
865
+ const in0 = inValues[ip++] >>> 0;
866
+ out[op++] = in0 & 0xffff;
867
+ out[op++] = (in0 >>> 16) & 0xffff;
868
+ }
869
+ }
870
+ export function fastUnpack256_Generic(inValues, inPos, out, outPos, bitWidth) {
871
+ const mask = MASKS[bitWidth] >>> 0;
872
+ let inputWordIndex = inPos;
873
+ let bitOffset = 0;
874
+ let currentWord = inValues[inputWordIndex] >>> 0;
875
+ let op = outPos;
876
+ for (let c = 0; c < 8; c++) {
877
+ for (let i = 0; i < 32; i++) {
878
+ if (bitOffset + bitWidth <= 32) {
879
+ const value = (currentWord >>> bitOffset) & mask;
880
+ out[op + i] = value | 0;
881
+ bitOffset += bitWidth;
882
+ if (bitOffset === 32) {
883
+ bitOffset = 0;
884
+ inputWordIndex++;
885
+ if (i !== 31) {
886
+ currentWord = inValues[inputWordIndex] >>> 0;
887
+ }
888
+ }
889
+ }
890
+ else {
891
+ const lowBits = 32 - bitOffset;
892
+ const low = currentWord >>> bitOffset;
893
+ inputWordIndex++;
894
+ currentWord = inValues[inputWordIndex] >>> 0;
895
+ const highBits = bitWidth - lowBits;
896
+ const highMask = (-1 >>> (32 - highBits)) >>> 0;
897
+ const high = currentWord & highMask;
898
+ const value = (low | (high << lowBits)) & mask;
899
+ out[op + i] = value | 0;
900
+ bitOffset = highBits;
901
+ }
902
+ }
903
+ op += 32;
904
+ bitOffset = 0;
905
+ if (c < 7) {
906
+ currentWord = inValues[inputWordIndex] >>> 0;
907
+ }
908
+ }
909
+ }
910
+ //# sourceMappingURL=fastPforUnpack.js.map