Cargo Features
[dependencies]
nokhwa = { version = "0.10.7", default-features = false, features = ["serialize", "decoding", "input-avfoundation", "input-msmf", "input-v4l", "input-v4l-no-arena-buffer", "input-native", "input-opencv", "input-jscam", "output-wgpu", "output-threaded", "camera-sync-impl", "small-wasm", "docs-nolink", "test-fail-warning", "docs-only", "regex", "rgb", "usb_enumeration"] }
- default = decoding
-
The
decoding
feature is set by default whenevernokhwa
is added without
somewhere in the dependency tree.default-features = false - serialize docs-only? = serde
-
Enables serialize of nokhwa-core
- decoding default
-
Enables mjpeg of nokhwa-core
- input-avfoundation input-native? = nokhwa-bindings-macos
- input-msmf input-native? = nokhwa-bindings-windows
- input-v4l input-native? = nokhwa-bindings-linux
- input-v4l-no-arena-buffer
-
Disable arena buffer on v4l
This should fix crash on Raspberry Pi that have faulty v4l driver.
WARNING: This create a performance regression, half of the frames will be dropped You shouldn't enable this unless you have to.Enables no-arena-buffer of nokhwa-bindings-linux
- input-native docs-only? = input-avfoundation, input-msmf, input-v4l
- input-opencv docs-only? = opencv
-
Enables opencv-mat of nokhwa-core, clang-runtime, rgb and videoio of opencv
- input-jscam docs-only? = js-sys, wasm-bindgen, wasm-bindgen-futures, wasm-rs-async-executor, web-sys
-
Affects
js_camera::JSCamera
,nokhwa::js_camera
… - output-wgpu docs-only? = wgpu
-
Enables wgpu-types of nokhwa-core
- output-threaded docs-only? = camera-sync-impl, parking_lot
-
Affects
nokhwa::threaded
… - camera-sync-impl output-threaded?
- small-wasm
- docs-nolink
-
Enables docs-features of nokhwa-core
- docs-features test-fail-warning
- docs-only = input-jscam, input-native, input-opencv, output-threaded, output-wgpu, serialize
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- regex implicit feature
- rgb implicit feature
- usb_enumeration implicit feature
-
Enables usb_enumeration
usb_enumeration:
A cross platform library that returns details of currently connected USB devices
- js-sys input-jscam?
- nokhwa-bindings-macos input-avfoundation?
- nokhwa-bindings-windows input-msmf?
- opencv input-opencv?
- parking_lot output-threaded?
- serde serialize?
- wasm-bindgen input-jscam?
- wasm-bindgen-futures input-jscam?
- wasm-rs-async-executor input-jscam?
- web-sys input-jscam?
- wgpu output-wgpu?
- nokhwa-bindings-linux input-v4l? input-v4l-no-arena-buffer?