@luxonis/visualizer-protobuf 3.1.11 → 3.1.13
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.
- package/dist/{FoxgloveServer-B98MHUu6.js → FoxgloveServer-Da9kV1cr.js} +1 -1
- package/dist/{communicator-Bzkx3Qfr.js → communicator-Dh2aL-rj.js} +1 -1
- package/dist/{depth-DlC6A3Te.js → depth-DiD1V2Sg.js} +15 -28
- package/dist/{deserialization.worker-CO4m6y8V.js → deserialization.worker-DU2Hs4UP.js} +577 -341
- package/dist/{foxglove-protocol-yHdoBNaD.js → foxglove-protocol-BtLMVx24.js} +1 -1
- package/dist/{index-CB1fYMKI.js → index--95nXh6E.js} +5 -5
- package/dist/{index-Dqm1x8G2.js → index-B5oN0fQm.js} +1 -1
- package/dist/{index-BXzWxQD4.js → index-B9-rLgJ9.js} +7 -7
- package/dist/{index-DCsDqt-U.js → index-BMp_L7Aa.js} +5 -5
- package/dist/{index-Be6EYnox.js → index-B_3PleIH.js} +49 -35
- package/dist/{index-BYTk-1GW.js → index-BjiepKHF.js} +5 -5
- package/dist/{index-DgUF0rJi.js → index-C45UVGjk.js} +5 -5
- package/dist/{index-D_pNGJGQ.js → index-CCq5_y78.js} +5 -5
- package/dist/{index-D2sxEb00.js → index-CNjpp5xs.js} +5 -5
- package/dist/{index-B-g3aWAt.js → index-CcWunxJv.js} +5 -5
- package/dist/{index-BEUjTghZ.js → index-CidrwlEk.js} +5 -5
- package/dist/{index-CKE7xLWy.js → index-CqayH0_I.js} +5 -5
- package/dist/{index-CDp9Pzg1.js → index-CxKEiKY9.js} +5 -5
- package/dist/{index-BlROWu-J.js → index-D686pHc1.js} +6 -6
- package/dist/{index-DCsBkCC7.js → index-DWt4Nj5G.js} +5 -5
- package/dist/{index-DtnnnQqJ.js → index-DewnJOHY.js} +5 -5
- package/dist/{index-D0BOBLGo.js → index-DnhrXuH6.js} +5 -5
- package/dist/{index-OIOsl1pr.js → index-DopAEQk2.js} +5 -5
- package/dist/{index-D063HnO-.js → index-DzOBiI2h.js} +5 -5
- package/dist/{index-Dvd5sByT.js → index-JlGCfxtk.js} +5 -5
- package/dist/{index-DXmbPIsN.js → index-X1k93Nku.js} +5 -5
- package/dist/index.js +5 -5
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +7 -1
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +2 -2
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/utils.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/utils.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js +11 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts +11 -6
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.js +115 -166
- package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts +2 -7
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +55 -126
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/mjpeg.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/mjpeg.js +7 -8
- package/dist/lib/src/messaging/deserialization/video/mjpeg.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts +17 -0
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.d.ts.map +1 -0
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js +325 -0
- package/dist/lib/src/messaging/deserialization/video/rgbd-to-pointcloud.js.map +1 -0
- package/dist/lib/src/messaging/deserialization.worker.d.ts +4 -0
- package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization.worker.js +16 -3
- package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
- package/dist/lib/src/messaging/protobuf.d.ts +12 -1
- package/dist/lib/src/messaging/protobuf.d.ts.map +1 -1
- package/dist/lib/src/messaging/protobuf.js +8 -0
- package/dist/lib/src/messaging/protobuf.js.map +1 -1
- package/dist/lib/src/messaging/utils.d.ts.map +1 -1
- package/dist/lib/src/messaging/utils.js +2 -0
- package/dist/lib/src/messaging/utils.js.map +1 -1
- package/dist/lib/src/output.css +2 -21
- package/dist/lib/src/panels/PointCloudPanel.d.ts.map +1 -1
- package/dist/lib/src/panels/PointCloudPanel.js +5 -1
- package/dist/lib/src/panels/PointCloudPanel.js.map +1 -1
- package/dist/lib/src/utils/metrics-manager.d.ts +1 -0
- package/dist/lib/src/utils/metrics-manager.d.ts.map +1 -1
- package/dist/lib/src/utils/metrics-manager.js +4 -2
- package/dist/lib/src/utils/metrics-manager.js.map +1 -1
- package/dist/lib/src/utils/poitcloud-sync.d.ts +4 -3
- package/dist/lib/src/utils/poitcloud-sync.d.ts.map +1 -1
- package/dist/lib/src/utils/poitcloud-sync.js +3 -1
- package/dist/lib/src/utils/poitcloud-sync.js.map +1 -1
- package/dist/{pointcloudFromDepth.worker-JLptpLHr.js → pointcloudFromDepth.worker-60RA4Ief.js} +2 -2
- package/dist/{protobuf-Be0G3NFz.js → protobuf-OcbVtxg1.js} +406 -218
- package/dist/{worker-NFznpx6V.js → worker-Be-hru8f.js} +3 -3
- package/dist/{worker-0Q6os6Ck.js → worker-C2MHIq3t.js} +4 -4
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { _ as _classPrivateFieldLooseBase, p as protobufsBySchema, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './protobuf-
|
|
2
|
+
import { _ as _classPrivateFieldLooseBase, p as protobufsBySchema, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './protobuf-OcbVtxg1.js';
|
|
3
3
|
import { r as recordToDataView } from './encoding-jXImCIb4.js';
|
|
4
4
|
import { L as Logger } from './logger-Bqy1nuLj.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { w as wrap, t as transfer } from './comlink-jf8bdrAf.js';
|
|
3
|
-
import { f as commonjsGlobal, _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, g as getDefaultExportFromCjs, b as _objectSpread2, T as Type } from './protobuf-
|
|
3
|
+
import { f as commonjsGlobal, _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, g as getDefaultExportFromCjs, b as _objectSpread2, T as Type } from './protobuf-OcbVtxg1.js';
|
|
4
4
|
import { L as Logger$2 } from './logger-Bqy1nuLj.js';
|
|
5
5
|
import { useContext, useRef, createContext, useReducer, useLayoutEffect, useState, useCallback } from 'react';
|
|
6
6
|
import 'zustand';
|
|
@@ -3740,36 +3740,13 @@ function fromMillis(value) {
|
|
|
3740
3740
|
nsec
|
|
3741
3741
|
};
|
|
3742
3742
|
}
|
|
3743
|
-
function parsePixelFormat(format) {
|
|
3744
|
-
switch (format) {
|
|
3745
|
-
case "BGRA":
|
|
3746
|
-
return ["bgra8", 3];
|
|
3747
|
-
case "BGRX":
|
|
3748
|
-
return ["bgr8", 3];
|
|
3749
|
-
// Closest supported
|
|
3750
|
-
case "I420":
|
|
3751
|
-
case "I420A":
|
|
3752
|
-
return ['I420', 2];
|
|
3753
|
-
case "I422":
|
|
3754
|
-
case "I444":
|
|
3755
|
-
return ['yuv422', 2];
|
|
3756
|
-
case "RGBA":
|
|
3757
|
-
return ["rgba8", 1];
|
|
3758
|
-
case "RGBX":
|
|
3759
|
-
return ["rgb8", 1];
|
|
3760
|
-
// Closest supported
|
|
3761
|
-
case "NV12":
|
|
3762
|
-
return ["nv12", 1];
|
|
3763
|
-
default:
|
|
3764
|
-
// Unsupported
|
|
3765
|
-
return ["bgra8", 3];
|
|
3766
|
-
}
|
|
3767
|
-
}
|
|
3768
3743
|
function parseMessageType(type) {
|
|
3769
3744
|
switch (type) {
|
|
3770
3745
|
case Type.YUV422i:
|
|
3771
3746
|
case Type.YUV422p:
|
|
3772
3747
|
return ["yuv422", 2];
|
|
3748
|
+
case Type.YUV420p:
|
|
3749
|
+
return ["I420", 1];
|
|
3773
3750
|
case Type.NV12:
|
|
3774
3751
|
return ["nv12", 1];
|
|
3775
3752
|
case Type.RGB888i:
|
|
@@ -3821,6 +3798,8 @@ function parseMessage(message) {
|
|
|
3821
3798
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
3822
3799
|
|
|
3823
3800
|
const logger = Logger$2.getLogger();
|
|
3801
|
+
let lastDepthWorkersBusyLogTime = 0;
|
|
3802
|
+
const DEPTH_WORKER_BUSY_LOG_INTERVAL_MS = 2000;
|
|
3824
3803
|
let workerIndex = 0;
|
|
3825
3804
|
const WORKER_COUNT = 3;
|
|
3826
3805
|
const workerPool = Array.from({
|
|
@@ -3863,7 +3842,15 @@ async function deserializeDepthFrame({
|
|
|
3863
3842
|
} = parseMessage(message);
|
|
3864
3843
|
const worker = getDepthWorker();
|
|
3865
3844
|
if (!worker) {
|
|
3866
|
-
|
|
3845
|
+
const now = Date.now();
|
|
3846
|
+
if (now - lastDepthWorkersBusyLogTime >= DEPTH_WORKER_BUSY_LOG_INTERVAL_MS) {
|
|
3847
|
+
lastDepthWorkersBusyLogTime = now;
|
|
3848
|
+
logger.warn(`All depth workers busy, dropping frame for topic ${topic}.`, {
|
|
3849
|
+
width,
|
|
3850
|
+
height,
|
|
3851
|
+
workerCount: WORKER_COUNT
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3867
3854
|
return;
|
|
3868
3855
|
}
|
|
3869
3856
|
let colorizedData;
|
|
@@ -3938,4 +3925,4 @@ function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yO
|
|
|
3938
3925
|
return sum / count;
|
|
3939
3926
|
}
|
|
3940
3927
|
|
|
3941
|
-
export {
|
|
3928
|
+
export { isSymbol as $, AppError as A, inlineTabPanelLayouts as B, getAllPanelIds as C, DEFAULT_TAB_PANEL_CONFIG as D, getConfigsForNestedPanelsInsideTab as E, reorderTabWithinTabPanel as F, moveTabBetweenTabPanels as G, isTabPanelConfig as H, addPanelToTab as I, createAddUpdates as J, filterMap as K, Logger$1 as L, uniq as M, useShallowMemo as N, CurrentLayoutContext as O, MessageOrderTracker as P, AppConfigurationContext as Q, DecodingError as R, getDistanceFromDepthDataForOffset as S, TAB_PANEL_TYPE as T, parseMessage as U, fromMillis as V, DecoderRuntimeError as W, deserializeDepthFrame as X, UnsupportedTopicError as Y, NotInSecureContextError as Z, EncodedStreamNotSupportedError as _, baseEach as a, toString as a0, keys as a1, getSymbols as a2, stubArray as a3, arrayPush as a4, baseGetAllKeys as a5, getAllKeys as a6, arrayMap as a7, useCurrentLayoutActions as a8, useCurrentLayoutSelector as a9, usePanelMosaicId as aa, noop as ab, useSelectedPanels as ac, useAppConfiguration as ad, useJsonTreeTheme as ae, baseFlatten as b, createDecodingError as c, dist as d, estimateObjectSize as e, baseIteratee as f, baseDifference as g, getTag as h, baseKeys as i, baseIsEqual as j, castPath as k, baseGet as l, hasIn as m, shallowequal$1 as n, getPanelIdsInsideTabPanels as o, getPanelTypeFromId as p, removePanelFromTabPanel as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPanelIdForType as v, getPathFromNode as w, updateTabPanelLayout as x, getSaveConfigsPayloadForAddedPanel as y, replaceAndRemovePanels as z };
|