nokhwa-node 0.1.6 → 0.1.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/index.d.ts +6 -0
- package/nokhwa-node.darwin-arm64.node +0 -0
- package/nokhwa-node.darwin-x64.node +0 -0
- package/nokhwa-node.freebsd-x64.node +0 -0
- package/nokhwa-node.linux-arm64-gnu.node +0 -0
- package/nokhwa-node.linux-arm64-musl.node +0 -0
- package/nokhwa-node.linux-x64-gnu.node +0 -0
- package/nokhwa-node.linux-x64-musl.node +0 -0
- package/nokhwa-node.wasm32-wasi.debug.wasm +0 -0
- package/nokhwa-node.wasm32-wasi.wasm +0 -0
- package/nokhwa-node.win32-arm64-msvc.node +0 -0
- package/nokhwa-node.win32-ia32-msvc.node +0 -0
- package/nokhwa-node.win32-x64-msvc.node +0 -0
- package/package.json +14 -14
package/index.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export declare class Camera {
|
|
|
7
7
|
* The camera stream is opened immediately with automatic format detection
|
|
8
8
|
*/
|
|
9
9
|
constructor(cameraIndex: string)
|
|
10
|
+
/**
|
|
11
|
+
* Create a new camera instance with the given index and format configuration
|
|
12
|
+
* The camera stream is opened immediately with the specified format
|
|
13
|
+
*/
|
|
14
|
+
static newWithFormat(cameraIndex: string, formatConfig: RequestedFormatConfig): Camera
|
|
10
15
|
/**
|
|
11
16
|
* Capture a single frame from the camera
|
|
12
17
|
* Returns the frame as RGBA buffer with width and height
|
|
@@ -180,6 +185,7 @@ export declare function query(backend: ApiBackend): Array<CameraDevice>
|
|
|
180
185
|
/** Requested format configuration */
|
|
181
186
|
export interface RequestedFormatConfig {
|
|
182
187
|
requestType: RequestedFormatType
|
|
188
|
+
format?: FrameFormat
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
/** Format request types for automatic format selection */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nokhwa-node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Node.js bindings for nokhwa camera library using napi-rs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"artifacts": "napi artifacts",
|
|
56
|
-
"bench": "
|
|
56
|
+
"bench": "bun run benchmark/bench.ts",
|
|
57
57
|
"build": "napi build --platform --release",
|
|
58
58
|
"build:debug": "napi build --platform",
|
|
59
59
|
"format": "npx run-p format:prettier format:rs format:toml",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@emnapi/core": "^1.5.0",
|
|
73
73
|
"@emnapi/runtime": "^1.5.0",
|
|
74
|
-
"@napi-rs/cli": "^3.
|
|
74
|
+
"@napi-rs/cli": "^3.5.1",
|
|
75
75
|
"@oxc-node/core": "^0.0.35",
|
|
76
76
|
"@taplo/cli": "^0.7.0",
|
|
77
77
|
"@tybys/wasm-util": "^0.10.0",
|
|
@@ -106,16 +106,16 @@
|
|
|
106
106
|
},
|
|
107
107
|
"packageManager": "npm@10.2.4",
|
|
108
108
|
"optionalDependencies": {
|
|
109
|
-
"nokhwa-node-win32-x64-msvc": "0.1.
|
|
110
|
-
"nokhwa-node-darwin-x64": "0.1.
|
|
111
|
-
"nokhwa-node-linux-x64-gnu": "0.1.
|
|
112
|
-
"nokhwa-node-linux-x64-musl": "0.1.
|
|
113
|
-
"nokhwa-node-linux-arm64-gnu": "0.1.
|
|
114
|
-
"nokhwa-node-win32-ia32-msvc": "0.1.
|
|
115
|
-
"nokhwa-node-darwin-arm64": "0.1.
|
|
116
|
-
"nokhwa-node-freebsd-x64": "0.1.
|
|
117
|
-
"nokhwa-node-linux-arm64-musl": "0.1.
|
|
118
|
-
"nokhwa-node-win32-arm64-msvc": "0.1.
|
|
119
|
-
"nokhwa-node-wasm32-wasi": "0.1.
|
|
109
|
+
"nokhwa-node-win32-x64-msvc": "0.1.8",
|
|
110
|
+
"nokhwa-node-darwin-x64": "0.1.8",
|
|
111
|
+
"nokhwa-node-linux-x64-gnu": "0.1.8",
|
|
112
|
+
"nokhwa-node-linux-x64-musl": "0.1.8",
|
|
113
|
+
"nokhwa-node-linux-arm64-gnu": "0.1.8",
|
|
114
|
+
"nokhwa-node-win32-ia32-msvc": "0.1.8",
|
|
115
|
+
"nokhwa-node-darwin-arm64": "0.1.8",
|
|
116
|
+
"nokhwa-node-freebsd-x64": "0.1.8",
|
|
117
|
+
"nokhwa-node-linux-arm64-musl": "0.1.8",
|
|
118
|
+
"nokhwa-node-win32-arm64-msvc": "0.1.8",
|
|
119
|
+
"nokhwa-node-wasm32-wasi": "0.1.8"
|
|
120
120
|
}
|
|
121
121
|
}
|