mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-02-11 16:45:26 +00:00
gstreamer: Don't generate bindings for gst_util_ceil_log2() and the floor variant
This already exists in the standard library. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1610>
This commit is contained in:
parent
9e3a0fd52b
commit
6e9a499146
3 changed files with 4 additions and 20 deletions
|
@ -127,6 +127,10 @@ status = "generate"
|
||||||
pattern = "util_[g]?uint64.*"
|
pattern = "util_[g]?uint64.*"
|
||||||
ignore = true
|
ignore = true
|
||||||
|
|
||||||
|
[[object.function]]
|
||||||
|
pattern = "util_(floor|ceil)_log2"
|
||||||
|
ignore = true
|
||||||
|
|
||||||
[[object.function]]
|
[[object.function]]
|
||||||
name = "deinit"
|
name = "deinit"
|
||||||
ignore = true
|
ignore = true
|
||||||
|
|
|
@ -221,22 +221,6 @@ pub fn update_registry() -> Result<(), glib::error::BoolError> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v1_24")]
|
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
|
||||||
#[doc(alias = "gst_util_ceil_log2")]
|
|
||||||
pub fn util_ceil_log2(v: u32) -> u32 {
|
|
||||||
skip_assert_initialized!();
|
|
||||||
unsafe { ffi::gst_util_ceil_log2(v) }
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "v1_26")]
|
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
|
||||||
#[doc(alias = "gst_util_floor_log2")]
|
|
||||||
pub fn util_floor_log2(x: u32) -> u32 {
|
|
||||||
assert_initialized_main_thread!();
|
|
||||||
unsafe { ffi::gst_util_floor_log2(x) }
|
|
||||||
}
|
|
||||||
|
|
||||||
#[doc(alias = "gst_util_get_timestamp")]
|
#[doc(alias = "gst_util_get_timestamp")]
|
||||||
pub fn util_get_timestamp() -> ClockTime {
|
pub fn util_get_timestamp() -> ClockTime {
|
||||||
skip_assert_initialized!();
|
skip_assert_initialized!();
|
||||||
|
|
|
@ -14,10 +14,6 @@ pub use crate::auto::functions::{
|
||||||
};
|
};
|
||||||
use crate::ffi;
|
use crate::ffi;
|
||||||
|
|
||||||
#[cfg(feature = "v1_24")]
|
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
|
|
||||||
pub use crate::auto::functions::util_ceil_log2 as ceil_log2;
|
|
||||||
|
|
||||||
#[doc(alias = "gst_calculate_linear_regression")]
|
#[doc(alias = "gst_calculate_linear_regression")]
|
||||||
pub fn calculate_linear_regression(
|
pub fn calculate_linear_regression(
|
||||||
xy: &[(u64, u64)],
|
xy: &[(u64, u64)],
|
||||||
|
|
Loading…
Reference in a new issue