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:
Sebastian Dröge 2024-12-10 13:43:57 +02:00 committed by GStreamer Marge Bot
parent 9e3a0fd52b
commit 6e9a499146
3 changed files with 4 additions and 20 deletions

View file

@ -127,6 +127,10 @@ status = "generate"
pattern = "util_[g]?uint64.*"
ignore = true
[[object.function]]
pattern = "util_(floor|ceil)_log2"
ignore = true
[[object.function]]
name = "deinit"
ignore = true

View file

@ -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")]
pub fn util_get_timestamp() -> ClockTime {
skip_assert_initialized!();

View file

@ -14,10 +14,6 @@ pub use crate::auto::functions::{
};
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")]
pub fn calculate_linear_regression(
xy: &[(u64, u64)],