MCPcopy Create free account
hub / github.com/Recordscript/recordscript / Java_ffi_FFI_onVideoFrameUpdate

Function Java_ffi_FFI_onVideoFrameUpdate

libs/scrap/src/android/ffi.rs:101–112  ·  view source on GitHub ↗
(
    env: JNIEnv,
    _class: JClass,
    buffer: JObject,
)

Source from the content-addressed store, hash-verified

99
100#[no_mangle]
101pub 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]
115pub extern "system" fn Java_ffi_FFI_onAudioFrameUpdate(

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected