@zappar/zappar-cv 0.4.0-beta.2 → 0.4.0-beta.8
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/CHANGELOG.md +79 -34
- package/README.md +2 -2
- package/lib/camera-source-map.d.ts +10 -0
- package/lib/camera-source-map.js +40 -0
- package/lib/camera-source.d.ts +2 -5
- package/lib/camera-source.js +3 -13
- package/lib/compatibility.js +1 -1
- package/lib/drawcamera.js +2 -1
- package/lib/gen/zappar-client.js +6 -1
- package/lib/gen/zappar-cwrap.js +37 -21
- package/lib/gen/zappar-native.d.ts +11 -0
- package/lib/gen/zappar-native.js +13 -1
- package/lib/gen/zappar-server.js +1 -1
- package/lib/gen/zappar.d.ts +5 -0
- package/lib/gen/zappar.js +5 -3
- package/lib/gfx.d.ts +1 -0
- package/lib/gfx.js +4 -0
- package/lib/html-element-source.d.ts +3 -20
- package/lib/html-element-source.js +19 -263
- package/lib/image-process-gl.d.ts +37 -0
- package/lib/image-process-gl.js +265 -0
- package/lib/imagebitmap-camera-source.d.ts +36 -0
- package/lib/imagebitmap-camera-source.js +277 -0
- package/lib/mstp-camera-source.d.ts +29 -0
- package/lib/mstp-camera-source.js +230 -0
- package/lib/native.js +45 -8
- package/lib/pipeline.d.ts +13 -3
- package/lib/pipeline.js +95 -26
- package/lib/profile.d.ts +2 -0
- package/lib/profile.js +55 -44
- package/lib/sequencerecorder.d.ts +1 -0
- package/lib/sequencerecorder.js +11 -0
- package/lib/sequencesource.d.ts +7 -1
- package/lib/sequencesource.js +89 -47
- package/lib/source.d.ts +6 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/worker-client.js +0 -5
- package/lib/worker-imagebitmap.d.ts +5 -0
- package/lib/worker-imagebitmap.js +63 -0
- package/lib/worker-server.d.ts +0 -5
- package/lib/worker-server.js +120 -30
- package/lib/workerinterface.d.ts +47 -1
- package/lib/zcv.js +117 -135
- package/lib/zcv.wasm +0 -0
- package/package.json +34 -31
- package/umd/fbf9061bc2d2826ecf97c8ba2b51e7a5.wasm +0 -0
- package/umd/zappar-cv.js +1 -9
- package/umd/zappar-cv.worker.js +1 -1
- package/lib/bundleworker-mainthread.d.ts +0 -2
- package/lib/bundleworker-mainthread.js +0 -36
- package/lib/bundleworker-worker.d.ts +0 -3
- package/lib/bundleworker-worker.js +0 -47
- package/umd/5dd5cacd27e6e7da828f.bundleworker.js +0 -1
- package/umd/a20150d17b0290cadaa6cb9911ab9500.wasm +0 -0
package/lib/workerinterface.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="dom-webcodecs" />
|
|
2
|
+
import { zappar_camera_source_t, zappar_pipeline_t } from "./gen/zappar-native";
|
|
2
3
|
export interface CameraFrameC2S {
|
|
3
4
|
t: "cameraFrameC2S";
|
|
4
5
|
d: ArrayBuffer;
|
|
@@ -17,3 +18,48 @@ export interface CameraFrameReturnS2C {
|
|
|
17
18
|
p: zappar_pipeline_t;
|
|
18
19
|
att?: Float32Array;
|
|
19
20
|
}
|
|
21
|
+
export interface VideoFrameS2C {
|
|
22
|
+
t: "videoFrameS2C";
|
|
23
|
+
token: number;
|
|
24
|
+
d: VideoFrame;
|
|
25
|
+
p: zappar_pipeline_t;
|
|
26
|
+
source: zappar_camera_source_t;
|
|
27
|
+
userFacing: boolean;
|
|
28
|
+
uvTransform: Float32Array;
|
|
29
|
+
w: number;
|
|
30
|
+
h: number;
|
|
31
|
+
cameraModel: Float32Array;
|
|
32
|
+
cameraToDevice: Float32Array;
|
|
33
|
+
}
|
|
34
|
+
export interface StreamC2S {
|
|
35
|
+
t: "streamC2S";
|
|
36
|
+
p: zappar_pipeline_t;
|
|
37
|
+
s: ReadableStream<VideoFrame>;
|
|
38
|
+
userFacing: boolean;
|
|
39
|
+
source: zappar_camera_source_t;
|
|
40
|
+
}
|
|
41
|
+
export interface CameraToScreenRotationC2S {
|
|
42
|
+
t: "cameraToScreenC2S";
|
|
43
|
+
p: zappar_pipeline_t;
|
|
44
|
+
r: number;
|
|
45
|
+
}
|
|
46
|
+
export interface ImageBitmapC2S {
|
|
47
|
+
t: "imageBitmapC2S";
|
|
48
|
+
p: zappar_pipeline_t;
|
|
49
|
+
i: ImageBitmap;
|
|
50
|
+
r: number;
|
|
51
|
+
userFacing: boolean;
|
|
52
|
+
tokenId: number;
|
|
53
|
+
cameraModel: Float32Array;
|
|
54
|
+
cameraToDevice: Float32Array;
|
|
55
|
+
}
|
|
56
|
+
export interface ImageBitmapS2C {
|
|
57
|
+
t: "imageBitmapS2C";
|
|
58
|
+
p: zappar_pipeline_t;
|
|
59
|
+
dataWidth: number;
|
|
60
|
+
dataHeight: number;
|
|
61
|
+
uvTransform: Float32Array;
|
|
62
|
+
userFacing: boolean;
|
|
63
|
+
frame: ImageBitmap;
|
|
64
|
+
tokenId: number;
|
|
65
|
+
}
|