Skip to main content

Crate camera_android

Crate camera_android 

Source
Expand description

Android USB permission integration and JNI adapter. Camera2 capture in the core camera crate does not require this package or a Java context.

Modules§

android
Android JNI layer that invokes Java APIs directly.
error
Stable Android adapter error types and JNI boundary payloads.

Structs§

UsbDeviceInfo
Description of a USB video device discovered through Android’s UsbManager.

Functions§

Java_com_medivh_camera_MedivhCameraBridge_nativeCapabilities
JNI entry point that returns the device capability matrix as JSON.
Java_com_medivh_camera_MedivhCameraBridge_nativeClose
JNI entry point that stops capture and releases the camera handle.
Java_com_medivh_camera_MedivhCameraBridge_nativeControl
JNI entry point that reads a control value and its readback status.
Java_com_medivh_camera_MedivhCameraBridge_nativeControls
JNI entry point that returns supported controls as JSON.
Java_com_medivh_camera_MedivhCameraBridge_nativeDevices
JNI entry point that enumerates devices for the requested backend.
Java_com_medivh_camera_MedivhCameraBridge_nativeHasPermission
JNI entry point that reports whether a USB device path is authorized.
Java_com_medivh_camera_MedivhCameraBridge_nativeInitWithContext
JNI entry point that stores the application context used for USB access.
Java_com_medivh_camera_MedivhCameraBridge_nativeMetrics
JNI entry point that returns capture and delivery metrics as JSON.
Java_com_medivh_camera_MedivhCameraBridge_nativeNextFrame
The caller exclusively owns the direct buffer for the duration of this call. The adapter copies one frame and returns metadata in JSON. A small buffer leaves the frame pending, so callers may resize and retry without losing it. JNI entry point that copies the next frame into a direct byte buffer.
Java_com_medivh_camera_MedivhCameraBridge_nativeNextFrameArgb
Writes native-endian ARGB words suitable for Bitmap.Config.ARGB_8888. JNI entry point that copies the next frame as Android-compatible ARGB pixels.
Java_com_medivh_camera_MedivhCameraBridge_nativeOpen
JNI entry point that opens a camera by backend name and native device ID.
Java_com_medivh_camera_MedivhCameraBridge_nativeOpenUsbFd
JNI entry point that opens UVC capture from an authorized USB descriptor.
Java_com_medivh_camera_MedivhCameraBridge_nativeRequestPermission
JNI entry point that starts Android’s USB permission flow.
Java_com_medivh_camera_MedivhCameraBridge_nativeSetControl
JNI entry point that applies a numeric value or mode to a camera control.
Java_com_medivh_camera_MedivhCameraBridge_nativeStart
JNI entry point that starts capture using automatic format negotiation.
Java_com_medivh_camera_MedivhCameraBridge_nativeStartWithFormat
JNI entry point that starts capture with an explicitly requested format.
Java_com_medivh_camera_MedivhCameraBridge_nativeStop
JNI entry point that stops capture while retaining the camera handle.