(&self)
| 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) } |
nothing calls this directly
no test coverage detected