Skip to main content

Java_com_medivh_camera_MedivhCameraBridge_nativeNextFrame

Function Java_com_medivh_camera_MedivhCameraBridge_nativeNextFrame 

Source
#[unsafe(no_mangle)]
pub extern "system" fn Java_com_medivh_camera_MedivhCameraBridge_nativeNextFrame( env: JNIEnv<'_>, _class: JClass<'_>, id: jlong, buffer: JByteBuffer<'_>, timeout_ms: jint, ) -> jstring
Expand description

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.