MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / video_encoder_stats

Method video_encoder_stats

packages/server/src/native/bridge.rs:1088–1097  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1086 }
1087
1088 pub fn video_encoder_stats(&self) -> serde_json::Value {
1089 unsafe {
1090 let mut error = ptr::null_mut();
1091 let raw = ffi::xcw_native_session_video_encoder_stats(self.handle, &mut error);
1092 string_from_raw(raw, error)
1093 .ok()
1094 .and_then(|json| serde_json::from_str(&json).ok())
1095 .unwrap_or_else(|| serde_json::json!({}))
1096 }
1097 }
1098
1099 pub fn rotation_quarter_turns(&self) -> i32 {
1100 unsafe { ffi::xcw_native_session_rotation_quarter_turns(self.handle).rem_euclid(4) }

Callers

nothing calls this directly

Calls 2

string_from_rawFunction · 0.85

Tested by

no test coverage detected