@luxonis/visualizer-protobuf 2.13.0 → 2.15.0

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 (63) hide show
  1. package/dist/WorkerImageDecoder.worker-DCoSYoLL.js +31 -0
  2. package/dist/{decodeImage-BBqnjJjE.js → decodeImage-NYPkamnK.js} +29 -363
  3. package/dist/{index-fN8Tpgww.js → index-B3np51f5.js} +1 -1
  4. package/dist/{index-DTZuXJ1A.js → index-B5Y2BwAY.js} +1 -1
  5. package/dist/{index-DFdQY59I.js → index-BHvk_lXs.js} +1 -1
  6. package/dist/{index-BK0O58zw.js → index-BVlhWOws.js} +1 -1
  7. package/dist/{index-4msm-wtA.js → index-B_XiOSDG.js} +1 -1
  8. package/dist/{index-DSIL_c41.js → index-BlTiOUx8.js} +1 -1
  9. package/dist/{index-CbS2HMyR.js → index-BwXQcktX.js} +1 -1
  10. package/dist/{index-BsQeBBzM.js → index-CU7EP-1Z.js} +1 -1
  11. package/dist/{index-CE0akFDh.js → index-ClHNc7K7.js} +97 -59
  12. package/dist/{index-DfgdvKhl.js → index-CvOH_4Vb.js} +1 -1
  13. package/dist/{index-Do7UsSft.js → index-D2l8qtZA.js} +1 -1
  14. package/dist/{index-CtKYoeeM.js → index-DVFtn83p.js} +1 -1
  15. package/dist/{index-PmNaQtc7.js → index-DWzj93US.js} +1 -1
  16. package/dist/{index-BWakrawk.js → index-Dj1nE_e2.js} +3 -3
  17. package/dist/{index-DyoCH5GH.js → index-DqahF3Pt.js} +1 -1
  18. package/dist/{index-nJgMRJTy.js → index-XYuXuR6J.js} +1 -1
  19. package/dist/{index-DFlpZwK1.js → index-XshD358Z.js} +23 -23
  20. package/dist/{index-CpLzYoX8.js → index-duY9KDhj.js} +1 -1
  21. package/dist/{index-BbAm1fKU.js → index-u_8JsVuJ.js} +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/lib/src/components/PanelToolbar.d.ts.map +1 -1
  24. package/dist/lib/src/components/PanelToolbar.js +1 -1
  25. package/dist/lib/src/components/PanelToolbar.js.map +1 -1
  26. package/dist/lib/src/messaging/message-handler.d.ts.map +1 -1
  27. package/dist/lib/src/messaging/message-handler.js.map +1 -1
  28. package/dist/lib/src/protobuf.generated/IMUData.d.ts +122 -0
  29. package/dist/lib/src/protobuf.generated/IMUData.d.ts.map +1 -0
  30. package/dist/lib/src/protobuf.generated/IMUData.js +691 -0
  31. package/dist/lib/src/protobuf.generated/IMUData.js.map +1 -0
  32. package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts +2 -1
  33. package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts.map +1 -1
  34. package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js +9 -7
  35. package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js.map +1 -1
  36. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts +1 -1
  37. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
  38. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +4 -4
  39. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
  40. package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js +1 -1
  41. package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js.map +1 -1
  42. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.d.ts +1 -0
  43. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.d.ts.map +1 -1
  44. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.js +7 -0
  45. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.js.map +1 -1
  46. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.d.ts +1 -1
  47. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.d.ts.map +1 -1
  48. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js +8 -3
  49. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js.map +1 -1
  50. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.d.ts +10 -2
  51. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.d.ts.map +1 -1
  52. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js +68 -10
  53. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js.map +1 -1
  54. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/decodeImage.d.ts +1 -1
  55. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/decodeImage.d.ts.map +1 -1
  56. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/decodeImage.js +29 -21
  57. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/decodeImage.js.map +1 -1
  58. package/package.json +3 -1
  59. package/dist/WorkerImageDecoder.worker-DjK2q36W.js +0 -18
  60. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.worker.d.ts +0 -9
  61. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.worker.d.ts.map +0 -1
  62. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.worker.js +0 -15
  63. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.worker.js.map +0 -1
@@ -0,0 +1,31 @@
1
+ import { d as decodeRawImage } from './decodeImage-NYPkamnK.js';
2
+ import './i18next-C5Qe4-E1.js';
3
+
4
+ // This Source Code Form is subject to the terms of the Mozilla Public
5
+ // License, v2.0. If a copy of the MPL was not distributed with this
6
+ // file, You can obtain one at http://mozilla.org/MPL/2.0/
7
+
8
+ self.onmessage = async event => {
9
+ try {
10
+ const {
11
+ image,
12
+ options
13
+ } = event.data;
14
+ const buffer = new Uint8ClampedArray(image.width * image.height * 4);
15
+
16
+ // Decode image into the provided buffer
17
+ await decodeRawImage(image, options, buffer);
18
+
19
+ // Clear image data for earlier Garbage Collection
20
+ image.data.fill(0);
21
+
22
+ // Transfer the buffer back
23
+ self.postMessage({
24
+ result: buffer
25
+ }, [buffer.buffer]);
26
+ } catch (error) {
27
+ self.postMessage({
28
+ error: error instanceof Error ? error.message : "Unknown error occurred"
29
+ });
30
+ }
31
+ };
@@ -1,348 +1,5 @@
1
1
  import { B as tinycolor, Q as t, C as merge } from './i18next-C5Qe4-E1.js';
2
2
 
3
- /**
4
- * @license
5
- * Copyright 2019 Google LLC
6
- * SPDX-License-Identifier: Apache-2.0
7
- */
8
- const proxyMarker = Symbol("Comlink.proxy");
9
- const createEndpoint = Symbol("Comlink.endpoint");
10
- const releaseProxy = Symbol("Comlink.releaseProxy");
11
- const finalizer = Symbol("Comlink.finalizer");
12
- const throwMarker = Symbol("Comlink.thrown");
13
- const isObject = (val) => (typeof val === "object" && val !== null) || typeof val === "function";
14
- /**
15
- * Internal transfer handle to handle objects marked to proxy.
16
- */
17
- const proxyTransferHandler = {
18
- canHandle: (val) => isObject(val) && val[proxyMarker],
19
- serialize(obj) {
20
- const { port1, port2 } = new MessageChannel();
21
- expose(obj, port1);
22
- return [port2, [port2]];
23
- },
24
- deserialize(port) {
25
- port.start();
26
- return wrap(port);
27
- },
28
- };
29
- /**
30
- * Internal transfer handler to handle thrown exceptions.
31
- */
32
- const throwTransferHandler = {
33
- canHandle: (value) => isObject(value) && throwMarker in value,
34
- serialize({ value }) {
35
- let serialized;
36
- if (value instanceof Error) {
37
- serialized = {
38
- isError: true,
39
- value: {
40
- message: value.message,
41
- name: value.name,
42
- stack: value.stack,
43
- },
44
- };
45
- }
46
- else {
47
- serialized = { isError: false, value };
48
- }
49
- return [serialized, []];
50
- },
51
- deserialize(serialized) {
52
- if (serialized.isError) {
53
- throw Object.assign(new Error(serialized.value.message), serialized.value);
54
- }
55
- throw serialized.value;
56
- },
57
- };
58
- /**
59
- * Allows customizing the serialization of certain values.
60
- */
61
- const transferHandlers = new Map([
62
- ["proxy", proxyTransferHandler],
63
- ["throw", throwTransferHandler],
64
- ]);
65
- function isAllowedOrigin(allowedOrigins, origin) {
66
- for (const allowedOrigin of allowedOrigins) {
67
- if (origin === allowedOrigin || allowedOrigin === "*") {
68
- return true;
69
- }
70
- if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {
71
- return true;
72
- }
73
- }
74
- return false;
75
- }
76
- function expose(obj, ep = globalThis, allowedOrigins = ["*"]) {
77
- ep.addEventListener("message", function callback(ev) {
78
- if (!ev || !ev.data) {
79
- return;
80
- }
81
- if (!isAllowedOrigin(allowedOrigins, ev.origin)) {
82
- console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);
83
- return;
84
- }
85
- const { id, type, path } = Object.assign({ path: [] }, ev.data);
86
- const argumentList = (ev.data.argumentList || []).map(fromWireValue);
87
- let returnValue;
88
- try {
89
- const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);
90
- const rawValue = path.reduce((obj, prop) => obj[prop], obj);
91
- switch (type) {
92
- case "GET" /* MessageType.GET */:
93
- {
94
- returnValue = rawValue;
95
- }
96
- break;
97
- case "SET" /* MessageType.SET */:
98
- {
99
- parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);
100
- returnValue = true;
101
- }
102
- break;
103
- case "APPLY" /* MessageType.APPLY */:
104
- {
105
- returnValue = rawValue.apply(parent, argumentList);
106
- }
107
- break;
108
- case "CONSTRUCT" /* MessageType.CONSTRUCT */:
109
- {
110
- const value = new rawValue(...argumentList);
111
- returnValue = proxy(value);
112
- }
113
- break;
114
- case "ENDPOINT" /* MessageType.ENDPOINT */:
115
- {
116
- const { port1, port2 } = new MessageChannel();
117
- expose(obj, port2);
118
- returnValue = transfer(port1, [port1]);
119
- }
120
- break;
121
- case "RELEASE" /* MessageType.RELEASE */:
122
- {
123
- returnValue = undefined;
124
- }
125
- break;
126
- default:
127
- return;
128
- }
129
- }
130
- catch (value) {
131
- returnValue = { value, [throwMarker]: 0 };
132
- }
133
- Promise.resolve(returnValue)
134
- .catch((value) => {
135
- return { value, [throwMarker]: 0 };
136
- })
137
- .then((returnValue) => {
138
- const [wireValue, transferables] = toWireValue(returnValue);
139
- ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
140
- if (type === "RELEASE" /* MessageType.RELEASE */) {
141
- // detach and deactive after sending release response above.
142
- ep.removeEventListener("message", callback);
143
- closeEndPoint(ep);
144
- if (finalizer in obj && typeof obj[finalizer] === "function") {
145
- obj[finalizer]();
146
- }
147
- }
148
- })
149
- .catch((error) => {
150
- // Send Serialization Error To Caller
151
- const [wireValue, transferables] = toWireValue({
152
- value: new TypeError("Unserializable return value"),
153
- [throwMarker]: 0,
154
- });
155
- ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);
156
- });
157
- });
158
- if (ep.start) {
159
- ep.start();
160
- }
161
- }
162
- function isMessagePort(endpoint) {
163
- return endpoint.constructor.name === "MessagePort";
164
- }
165
- function closeEndPoint(endpoint) {
166
- if (isMessagePort(endpoint))
167
- endpoint.close();
168
- }
169
- function wrap(ep, target) {
170
- const pendingListeners = new Map();
171
- ep.addEventListener("message", function handleMessage(ev) {
172
- const { data } = ev;
173
- if (!data || !data.id) {
174
- return;
175
- }
176
- const resolver = pendingListeners.get(data.id);
177
- if (!resolver) {
178
- return;
179
- }
180
- try {
181
- resolver(data);
182
- }
183
- finally {
184
- pendingListeners.delete(data.id);
185
- }
186
- });
187
- return createProxy(ep, pendingListeners, [], target);
188
- }
189
- function throwIfProxyReleased(isReleased) {
190
- if (isReleased) {
191
- throw new Error("Proxy has been released and is not useable");
192
- }
193
- }
194
- function releaseEndpoint(ep) {
195
- return requestResponseMessage(ep, new Map(), {
196
- type: "RELEASE" /* MessageType.RELEASE */,
197
- }).then(() => {
198
- closeEndPoint(ep);
199
- });
200
- }
201
- const proxyCounter = new WeakMap();
202
- const proxyFinalizers = "FinalizationRegistry" in globalThis &&
203
- new FinalizationRegistry((ep) => {
204
- const newCount = (proxyCounter.get(ep) || 0) - 1;
205
- proxyCounter.set(ep, newCount);
206
- if (newCount === 0) {
207
- releaseEndpoint(ep);
208
- }
209
- });
210
- function registerProxy(proxy, ep) {
211
- const newCount = (proxyCounter.get(ep) || 0) + 1;
212
- proxyCounter.set(ep, newCount);
213
- if (proxyFinalizers) {
214
- proxyFinalizers.register(proxy, ep, proxy);
215
- }
216
- }
217
- function unregisterProxy(proxy) {
218
- if (proxyFinalizers) {
219
- proxyFinalizers.unregister(proxy);
220
- }
221
- }
222
- function createProxy(ep, pendingListeners, path = [], target = function () { }) {
223
- let isProxyReleased = false;
224
- const proxy = new Proxy(target, {
225
- get(_target, prop) {
226
- throwIfProxyReleased(isProxyReleased);
227
- if (prop === releaseProxy) {
228
- return () => {
229
- unregisterProxy(proxy);
230
- releaseEndpoint(ep);
231
- pendingListeners.clear();
232
- isProxyReleased = true;
233
- };
234
- }
235
- if (prop === "then") {
236
- if (path.length === 0) {
237
- return { then: () => proxy };
238
- }
239
- const r = requestResponseMessage(ep, pendingListeners, {
240
- type: "GET" /* MessageType.GET */,
241
- path: path.map((p) => p.toString()),
242
- }).then(fromWireValue);
243
- return r.then.bind(r);
244
- }
245
- return createProxy(ep, pendingListeners, [...path, prop]);
246
- },
247
- set(_target, prop, rawValue) {
248
- throwIfProxyReleased(isProxyReleased);
249
- // FIXME: ES6 Proxy Handler `set` methods are supposed to return a
250
- // boolean. To show good will, we return true asynchronously ¯\_(ツ)_/¯
251
- const [value, transferables] = toWireValue(rawValue);
252
- return requestResponseMessage(ep, pendingListeners, {
253
- type: "SET" /* MessageType.SET */,
254
- path: [...path, prop].map((p) => p.toString()),
255
- value,
256
- }, transferables).then(fromWireValue);
257
- },
258
- apply(_target, _thisArg, rawArgumentList) {
259
- throwIfProxyReleased(isProxyReleased);
260
- const last = path[path.length - 1];
261
- if (last === createEndpoint) {
262
- return requestResponseMessage(ep, pendingListeners, {
263
- type: "ENDPOINT" /* MessageType.ENDPOINT */,
264
- }).then(fromWireValue);
265
- }
266
- // We just pretend that `bind()` didn’t happen.
267
- if (last === "bind") {
268
- return createProxy(ep, pendingListeners, path.slice(0, -1));
269
- }
270
- const [argumentList, transferables] = processArguments(rawArgumentList);
271
- return requestResponseMessage(ep, pendingListeners, {
272
- type: "APPLY" /* MessageType.APPLY */,
273
- path: path.map((p) => p.toString()),
274
- argumentList,
275
- }, transferables).then(fromWireValue);
276
- },
277
- construct(_target, rawArgumentList) {
278
- throwIfProxyReleased(isProxyReleased);
279
- const [argumentList, transferables] = processArguments(rawArgumentList);
280
- return requestResponseMessage(ep, pendingListeners, {
281
- type: "CONSTRUCT" /* MessageType.CONSTRUCT */,
282
- path: path.map((p) => p.toString()),
283
- argumentList,
284
- }, transferables).then(fromWireValue);
285
- },
286
- });
287
- registerProxy(proxy, ep);
288
- return proxy;
289
- }
290
- function myFlat(arr) {
291
- return Array.prototype.concat.apply([], arr);
292
- }
293
- function processArguments(argumentList) {
294
- const processed = argumentList.map(toWireValue);
295
- return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];
296
- }
297
- const transferCache = new WeakMap();
298
- function transfer(obj, transfers) {
299
- transferCache.set(obj, transfers);
300
- return obj;
301
- }
302
- function proxy(obj) {
303
- return Object.assign(obj, { [proxyMarker]: true });
304
- }
305
- function toWireValue(value) {
306
- for (const [name, handler] of transferHandlers) {
307
- if (handler.canHandle(value)) {
308
- const [serializedValue, transferables] = handler.serialize(value);
309
- return [
310
- {
311
- type: "HANDLER" /* WireValueType.HANDLER */,
312
- name,
313
- value: serializedValue,
314
- },
315
- transferables,
316
- ];
317
- }
318
- }
319
- return [
320
- {
321
- type: "RAW" /* WireValueType.RAW */,
322
- value,
323
- },
324
- transferCache.get(value) || [],
325
- ];
326
- }
327
- function fromWireValue(value) {
328
- switch (value.type) {
329
- case "HANDLER" /* WireValueType.HANDLER */:
330
- return transferHandlers.get(value.name).deserialize(value.value);
331
- case "RAW" /* WireValueType.RAW */:
332
- return value.value;
333
- }
334
- }
335
- function requestResponseMessage(ep, pendingListeners, msg, transfers) {
336
- return new Promise((resolve) => {
337
- const id = Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString();
338
- pendingListeners.set(id, resolve);
339
- if (ep.start) {
340
- ep.start();
341
- }
342
- ep.postMessage(Object.assign({ id }, msg), transfers);
343
- });
344
- }
345
-
346
3
  // This Source Code Form is subject to the terms of the Mozilla Public
347
4
  // License, v2.0. If a copy of the MPL was not distributed with this
348
5
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
@@ -41795,7 +41452,7 @@ const MIN_MAX_16_BIT = {
41795
41452
  * See also:
41796
41453
  * https://github.com/ros2/common_interfaces/blob/366eea24ffce6c87f8860cbcd27f4863f46ad822/sensor_msgs/include/sensor_msgs/image_encodings.hpp
41797
41454
  */
41798
- function decodeRawImage(image, options, output) {
41455
+ async function decodeRawImage(image, options, output) {
41799
41456
  const {
41800
41457
  encoding,
41801
41458
  width,
@@ -41807,60 +41464,69 @@ function decodeRawImage(image, options, output) {
41807
41464
  planeStride
41808
41465
  } = image;
41809
41466
  const is_bigendian = "is_bigendian" in image ? image.is_bigendian : false;
41810
- const rawData = image.data;
41811
41467
  switch (encoding) {
41812
41468
  case "yuv422":
41813
41469
  case "uyvy":
41814
- decodeUYVY(rawData, width, height, step, output);
41470
+ decodeUYVY(image.data, width, height, step, output);
41815
41471
  break;
41816
41472
  case "nv12":
41817
- decodeNV12(rawData, width, height, output, stride, planeStride);
41473
+ decodeNV12(image.data, width, height, output, stride, planeStride);
41818
41474
  break;
41819
41475
  case "yuv422_yuy2":
41820
41476
  case "yuyv":
41821
- decodeYUYV(rawData, width, height, step, output);
41477
+ decodeYUYV(image.data, width, height, step, output);
41822
41478
  break;
41823
41479
  case "rgb8":
41824
- decodeRGB8(rawData, width, height, step, output);
41480
+ decodeRGB8(image.data, width, height, step, output);
41825
41481
  break;
41826
41482
  case "rgb8p":
41827
- decodeRGB8p(rawData, width, height, step, output);
41483
+ decodeRGB8p(image.data, width, height, step, output);
41828
41484
  break;
41829
41485
  case "rgba8":
41830
- decodeRGBA8(rawData, width, height, step, output);
41486
+ decodeRGBA8(image.data, width, height, step, output);
41831
41487
  break;
41832
41488
  case "bgra8":
41833
- decodeBGRA8(rawData, width, height, step, output);
41489
+ decodeBGRA8(image.data, width, height, step, output);
41834
41490
  break;
41835
41491
  case "bgr8":
41836
41492
  case "bgr8p":
41837
41493
  case "8UC3":
41838
- decodeBGR8p(rawData, width, height, step, output);
41494
+ decodeBGR8p(image.data, width, height, step, output);
41839
41495
  break;
41840
41496
  case "bgr8i":
41841
- decodeBGR8i(rawData, width, height, step, output);
41497
+ decodeBGR8i(image.data, width, height, step, output);
41842
41498
  break;
41843
41499
  case "32FC1":
41844
- decodeFloat1c(rawData, width, height, step, is_bigendian, output);
41500
+ decodeFloat1c(image.data, width, height, step, is_bigendian, output);
41845
41501
  break;
41846
41502
  case "I420":
41847
- decodeI420(rawData, width, height, step, output);
41503
+ decodeI420(image.data, width, height, step, output);
41848
41504
  break;
41505
+
41506
+ //if (!navigator.gpu) {
41507
+ // console.warn('WebGPU not supported, falling back to CPU');
41508
+ // decodeI420(image.data as Uint8Array, width, height, step, output);
41509
+ // return;
41510
+ //}
41511
+ //
41512
+ //const res = await decodeI420ToRGBA(image.data as Uint8Array, width, height);
41513
+ //output.set(res);
41514
+ //break;
41849
41515
  case "bayer_rggb8":
41850
- decodeBayerRGGB8(rawData, width, height, step, output);
41516
+ decodeBayerRGGB8(image.data, width, height, step, output);
41851
41517
  break;
41852
41518
  case "bayer_bggr8":
41853
- decodeBayerBGGR8(rawData, width, height, step, output);
41519
+ decodeBayerBGGR8(image.data, width, height, step, output);
41854
41520
  break;
41855
41521
  case "bayer_gbrg8":
41856
- decodeBayerGBRG8(rawData, width, height, step, output);
41522
+ decodeBayerGBRG8(image.data, width, height, step, output);
41857
41523
  break;
41858
41524
  case "bayer_grbg8":
41859
- decodeBayerGRBG8(rawData, width, height, step, output);
41525
+ decodeBayerGRBG8(image.data, width, height, step, output);
41860
41526
  break;
41861
41527
  case "mono8":
41862
41528
  case "8UC1":
41863
- decodeMono8(rawData, width, height, step, output);
41529
+ decodeMono8(image.data, width, height, step, output);
41864
41530
  break;
41865
41531
  case "mono16":
41866
41532
  case "16UC1":
@@ -41880,7 +41546,7 @@ function decodeRawImage(image, options, output) {
41880
41546
  a: 0
41881
41547
  };
41882
41548
  const converter = getColorConverter(settings, min, max);
41883
- decodeMono16(rawData, width, height, step, is_bigendian, output, {
41549
+ decodeMono16(image.data, width, height, step, is_bigendian, output, {
41884
41550
  minValue: options.minValue,
41885
41551
  maxValue: options.maxValue,
41886
41552
  colorConverter: value => {
@@ -41895,4 +41561,4 @@ function decodeRawImage(image, options, output) {
41895
41561
  }
41896
41562
  }
41897
41563
 
41898
- export { DataTextureLoader as $, SRGBColorSpace as A, Box3 as B, Color as C, DoubleSide as D, LinearSRGBColorSpace as E, Float32BufferAttribute as F, rgbaToLinear as G, RedFormat as H, InstancedBufferGeometry as I, RGBAFormat as J, getColorConverter as K, Line3 as L, Matrix4 as M, NotEqualStencilFunc as N, Object3D as O, PointsMaterial as P, FloatType as Q, ReplaceStencilOp as R, Sphere as S, UnsignedByteType as T, UniformsLib as U, Vector3 as V, WireframeGeometry as W, NEEDS_MIN_MAX as X, InstancedMesh as Y, CylinderGeometry as Z, ConeGeometry as _, InstancedInterleavedBuffer as a, DynamicDrawUsage as a$, LinearMipmapLinearFilter as a0, Loader as a1, LoaderUtils as a2, FileLoader as a3, MeshBasicMaterial as a4, Scene as a5, TextureLoader as a6, AnimationClip as a7, VectorKeyframeTrack as a8, QuaternionKeyframeTrack as a9, Material as aA, PropertyBinding as aB, LineLoop as aC, Points as aD, InterpolateLinear as aE, ColorManagement as aF, NearestMipmapNearestFilter as aG, LinearMipmapNearestFilter as aH, NearestMipmapLinearFilter as aI, MirroredRepeatWrapping as aJ, InterpolateDiscrete as aK, Texture as aL, NumberKeyframeTrack as aM, Interpolant as aN, EdgesGeometry as aO, LoadingManager as aP, stringToRgb as aQ, getLuminance as aR, Euler as aS, vec3TupleApproxEquals as aT, wrap as aU, releaseProxy as aV, decodeCompressedImageToBitmap as aW, CanvasTexture as aX, Shape as aY, SRGBToLinear as aZ, ShapeGeometry as a_, MeshLambertMaterial as aa, MeshPhongMaterial as ab, FrontSide as ac, PerspectiveCamera as ad, OrthographicCamera as ae, AmbientLight as af, SpotLight as ag, PointLight as ah, DirectionalLight as ai, BufferGeometry as aj, Group as ak, Quaternion as al, Bone as am, LineBasicMaterial as an, SkinnedMesh as ao, Line as ap, LineSegments as aq, RepeatWrapping as ar, Skeleton as as, BufferAttribute as at, TrianglesDrawMode as au, TriangleFanDrawMode as av, TriangleStripDrawMode as aw, MeshPhysicalMaterial as ax, ImageBitmapLoader as ay, InterleavedBuffer as az, InterleavedBufferAttribute as b, ShaderChunk as b0, IMAGE_DEFAULT_COLOR_MODE_SETTINGS as b1, colorHasTransparency as b2, StaticDrawUsage as b3, RawShaderMaterial as b4, GLSL3 as b5, colorFieldComputedPrefix as b6, getRotationTo as b7, SphereGeometry as b8, rgbaGradient as b9, InstancedBufferAttribute as ba, BoxGeometry as bb, DARK_OUTLINE as bc, LIGHT_OUTLINE as bd, CircleGeometry as be, LineDashedMaterial as bf, GreaterDepth as bg, EventDispatcher as bh, Plane as bi, Raycaster as bj, WebGLRenderTarget as bk, Ray as bl, MOUSE as bm, TOUCH as bn, Spherical as bo, WebGLRenderer as bp, NoToneMapping as bq, VSMShadowMap as br, HemisphereLight as bs, Vector2 as c, decodeRawImage as d, expose as e, ShaderLib as f, UniformsUtils as g, ShaderMaterial as h, Vector4 as i, Mesh as j, MathUtils as k, MeshStandardMaterial as l, makeRgba as m, rgbaToCssString as n, colorModeSettingsFields as o, autoSelectColorSettings as p, PlaneGeometry as q, rgbToThreeColor as r, stringToRgba as s, transfer as t, DataTexture as u, UVMapping as v, ClampToEdgeWrapping as w, NearestFilter as x, LinearFilter as y, FS_SRGB_TO_LINEAR as z };
41564
+ export { Loader as $, rgbaToLinear as A, Box3 as B, Color as C, DoubleSide as D, RedFormat as E, Float32BufferAttribute as F, RGBAFormat as G, getColorConverter as H, InstancedBufferGeometry as I, FloatType as J, UnsignedByteType as K, Line3 as L, Matrix4 as M, NotEqualStencilFunc as N, Object3D as O, PointsMaterial as P, NEEDS_MIN_MAX as Q, ReplaceStencilOp as R, Sphere as S, InstancedMesh as T, UniformsLib as U, Vector3 as V, WireframeGeometry as W, CylinderGeometry as X, ConeGeometry as Y, DataTextureLoader as Z, LinearMipmapLinearFilter as _, InstancedInterleavedBuffer as a, StaticDrawUsage as a$, LoaderUtils as a0, FileLoader as a1, MeshBasicMaterial as a2, Scene as a3, TextureLoader as a4, AnimationClip as a5, VectorKeyframeTrack as a6, QuaternionKeyframeTrack as a7, MeshLambertMaterial as a8, MeshPhongMaterial as a9, LineLoop as aA, Points as aB, InterpolateLinear as aC, ColorManagement as aD, NearestMipmapNearestFilter as aE, LinearMipmapNearestFilter as aF, NearestMipmapLinearFilter as aG, MirroredRepeatWrapping as aH, InterpolateDiscrete as aI, Texture as aJ, NumberKeyframeTrack as aK, Interpolant as aL, EdgesGeometry as aM, LoadingManager as aN, stringToRgb as aO, getLuminance as aP, Euler as aQ, vec3TupleApproxEquals as aR, decodeCompressedImageToBitmap as aS, CanvasTexture as aT, Shape as aU, SRGBToLinear as aV, ShapeGeometry as aW, DynamicDrawUsage as aX, ShaderChunk as aY, IMAGE_DEFAULT_COLOR_MODE_SETTINGS as aZ, colorHasTransparency as a_, FrontSide as aa, PerspectiveCamera as ab, OrthographicCamera as ac, AmbientLight as ad, SpotLight as ae, PointLight as af, DirectionalLight as ag, BufferGeometry as ah, Group as ai, Quaternion as aj, Bone as ak, LineBasicMaterial as al, SkinnedMesh as am, Line as an, LineSegments as ao, RepeatWrapping as ap, Skeleton as aq, BufferAttribute as ar, TrianglesDrawMode as as, TriangleFanDrawMode as at, TriangleStripDrawMode as au, MeshPhysicalMaterial as av, ImageBitmapLoader as aw, InterleavedBuffer as ax, Material as ay, PropertyBinding as az, InterleavedBufferAttribute as b, RawShaderMaterial as b0, GLSL3 as b1, colorFieldComputedPrefix as b2, getRotationTo as b3, SphereGeometry as b4, rgbaGradient as b5, InstancedBufferAttribute as b6, BoxGeometry as b7, DARK_OUTLINE as b8, LIGHT_OUTLINE as b9, CircleGeometry as ba, LineDashedMaterial as bb, GreaterDepth as bc, EventDispatcher as bd, Plane as be, Raycaster as bf, WebGLRenderTarget as bg, Ray as bh, MOUSE as bi, TOUCH as bj, Spherical as bk, WebGLRenderer as bl, NoToneMapping as bm, VSMShadowMap as bn, HemisphereLight as bo, Vector2 as c, decodeRawImage as d, ShaderLib as e, UniformsUtils as f, ShaderMaterial as g, Vector4 as h, Mesh as i, MathUtils as j, MeshStandardMaterial as k, rgbaToCssString as l, makeRgba as m, colorModeSettingsFields as n, autoSelectColorSettings as o, PlaneGeometry as p, DataTexture as q, rgbToThreeColor as r, stringToRgba as s, UVMapping as t, ClampToEdgeWrapping as u, NearestFilter as v, LinearFilter as w, FS_SRGB_TO_LINEAR as x, SRGBColorSpace as y, LinearSRGBColorSpace as z };
@@ -1,4 +1,4 @@
1
- import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, aD as LocalTokenGroup, aE as snippetCompletion, ay as syntaxTree, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aw as ifNotIn, ax as completeFromList, aF as IterMode, aG as NodeWeakMap } from './index-DFlpZwK1.js';
1
+ import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, aD as LocalTokenGroup, aE as snippetCompletion, ay as syntaxTree, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aw as ifNotIn, ax as completeFromList, aF as IterMode, aG as NodeWeakMap } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, ap as foldNodeProp, aB as foldInside, an as indentNodeProp, ao as continuedIndent, aH as defineCSSCompletionSource, at as LanguageSupport } from './index-DFlpZwK1.js';
1
+ import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, ap as foldNodeProp, aB as foldInside, an as indentNodeProp, ao as continuedIndent, aH as defineCSSCompletionSource, at as LanguageSupport } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-DFlpZwK1.js';
1
+ import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, ay as syntaxTree, aw as ifNotIn, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aF as IterMode, ax as completeFromList, aG as NodeWeakMap, aE as snippetCompletion } from './index-DFlpZwK1.js';
1
+ import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, ay as syntaxTree, aw as ifNotIn, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aF as IterMode, ax as completeFromList, aG as NodeWeakMap, aE as snippetCompletion } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aq as styleTags, ar as tags, at as LanguageSupport, av as LRParser } from './index-DFlpZwK1.js';
1
+ import { as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aq as styleTags, ar as tags, at as LanguageSupport, av as LRParser } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-DFlpZwK1.js';
1
+ import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-DFlpZwK1.js';
1
+ import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,4 +1,4 @@
1
- import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-DFlpZwK1.js';
1
+ import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-XshD358Z.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';