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§
- UsbDevice
Info - Description of a USB video device discovered through Android’s
UsbManager.
Functions§
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Capabilities - JNI entry point that returns the device capability matrix as JSON.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Close - JNI entry point that stops capture and releases the camera handle.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Control - JNI entry point that reads a control value and its readback status.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Controls - JNI entry point that returns supported controls as JSON.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Devices - JNI entry point that enumerates devices for the requested backend.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native HasPermission - JNI entry point that reports whether a USB device path is authorized.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Init With Context - JNI entry point that stores the application context used for USB access.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Metrics - JNI entry point that returns capture and delivery metrics as JSON.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Next Frame - 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_ Medivh Camera Bridge_ native Next Frame Argb - 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_ Medivh Camera Bridge_ native Open - JNI entry point that opens a camera by backend name and native device ID.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Open UsbFd - JNI entry point that opens UVC capture from an authorized USB descriptor.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Request Permission - JNI entry point that starts Android’s USB permission flow.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native SetControl - JNI entry point that applies a numeric value or mode to a camera control.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Start - JNI entry point that starts capture using automatic format negotiation.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Start With Format - JNI entry point that starts capture with an explicitly requested format.
- Java_
com_ medivh_ camera_ Medivh Camera Bridge_ native Stop - JNI entry point that stops capture while retaining the camera handle.