Skip to content

v1.1.0 — Native camera

Latest

Choose a tag to compare

@Dalynkaa Dalynkaa released this 21 Jun 15:39

Added

  • Native camera support via JNI, backed by nokhwa (AVFoundation / V4L2 / MediaFoundation):
    • NativeCamera.listDevices() / listFormats(index) — device names and real capture modes, without opening a stream.
    • NativeCameraStream — open a camera and grab frames straight into a direct RGBA ByteBuffer. Each stream runs on its own owner thread (nokhwa's Camera is thread-bound).

Fixed (vendored nokhwa patches under rust/vendor/)

  • macOS reported zero capture formats for cameras exposing a single FourCC — compatible_list_by_resolution filtered != fourcc; fixed to ==.
  • macOS virtual cameras (OBS, 32-bit BGRA) failed to open with "Unknown FourCharCode" — BGRA is now mapped through YUYV so they open and capture.

Build

  • CI installs clang + libv4l-dev (nokhwa's v4l2-sys-mit runs bindgen) and sets the bindgen target for the i686/aarch64 Linux cross builds.

H.264 encode/decode is unchanged.

Maven: dev.nexbit:javah264:1.1.0 (GitHub Packages)