gstreamer: disable calculate_linear_regression

It's not binding friendly.
This commit is contained in:
Philippe Normand 2017-08-08 19:31:03 +01:00 committed by Sebastian Dröge
parent 9540ddd596
commit d654252e65
2 changed files with 4 additions and 14 deletions

View file

@ -530,3 +530,7 @@ status = "generate"
# unsupported array type # unsupported array type
ignore = true ignore = true
[[object.function]]
name = "calculate_linear_regression"
ignore = true

View file

@ -15,20 +15,6 @@ use std::mem;
use std::ptr; 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) { //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() } // unsafe { TODO: call ffi::gst_debug_add_log_function() }
//} //}