mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
gstreamer: disable calculate_linear_regression
It's not binding friendly.
This commit is contained in:
parent
9540ddd596
commit
d654252e65
2 changed files with 4 additions and 14 deletions
|
@ -530,3 +530,7 @@ status = "generate"
|
|||
# unsupported array type
|
||||
ignore = true
|
||||
|
||||
[[object.function]]
|
||||
name = "calculate_linear_regression"
|
||||
ignore = true
|
||||
|
||||
|
|
|
@ -15,20 +15,6 @@ use std::mem;
|
|||
use std::ptr;
|
||||
|
||||
|
||||
#[cfg(feature = "v1_12")]
|
||||
pub fn calculate_linear_regression(xy: ClockTime, temp: ClockTime, n: u32) -> Option<(ClockTime, ClockTime, ClockTime, ClockTime, f64)> {
|
||||
assert_initialized_main_thread!();
|
||||
unsafe {
|
||||
let mut m_num = mem::uninitialized();
|
||||
let mut m_denom = mem::uninitialized();
|
||||
let mut b = mem::uninitialized();
|
||||
let mut xbase = mem::uninitialized();
|
||||
let mut r_squared = mem::uninitialized();
|
||||
let ret = from_glib(ffi::gst_calculate_linear_regression(xy, temp, n, &mut m_num, &mut m_denom, &mut b, &mut xbase, &mut r_squared));
|
||||
if ret { Some((m_num, m_denom, b, xbase, r_squared)) } else { None }
|
||||
}
|
||||
}
|
||||
|
||||
//pub fn debug_add_log_function<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(func: /*Unknown conversion*//*Unimplemented*/LogFunction, user_data: P, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) {
|
||||
// unsafe { TODO: call ffi::gst_debug_add_log_function() }
|
||||
//}
|
||||
|
|
Loading…
Reference in a new issue