Function
Java_ffi_FFI_onVideoFrameUpdate
(
env: JNIEnv,
_class: JClass,
buffer: JObject,
)
Source from the content-addressed store, hash-verified
| 99 | |
| 100 | #[no_mangle] |
| 101 | pub extern "system" fn Java_ffi_FFI_onVideoFrameUpdate( |
| 102 | env: JNIEnv, |
| 103 | _class: JClass, |
| 104 | buffer: JObject, |
| 105 | ) { |
| 106 | let jb = JByteBuffer::from(buffer); |
| 107 | if let Ok(data) = env.get_direct_buffer_address(&jb) { |
| 108 | if let Ok(len) = env.get_direct_buffer_capacity(&jb) { |
| 109 | VIDEO_RAW.lock().unwrap().update(data, len); |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | #[no_mangle] |
| 115 | pub extern "system" fn Java_ffi_FFI_onAudioFrameUpdate( |
Callers
nothing calls this directly
Tested by
no test coverage detected