gl: Don't autogenerate GL buffer pool configuration functions

These need manual bindings.
This commit is contained in:
Sebastian Dröge 2023-10-04 10:22:03 +03:00
parent a6470f13c9
commit 3a5f69b64c
2 changed files with 6 additions and 18 deletions

View file

@ -120,6 +120,12 @@ status = "generate"
[[object.function]]
name = "buffer_pool_config_set_gl_allocation_params"
ignore = true
[[object.function]]
name = "buffer_pool_config_get_gl_min_free_queue_size"
ignore = true
[[object.function]]
name = "buffer_pool_config_set_gl_min_free_queue_size"
ignore = true
# Needs manual binding to be an extension on gst_video::VideoAffineTransformationMeta
[[object.function]]

View file

@ -6,24 +6,6 @@
use crate::{GLDisplay, GLSLProfile, GLSLVersion};
use glib::{prelude::*, translate::*};
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_buffer_pool_config_get_gl_min_free_queue_size")]
pub fn buffer_pool_config_get_gl_min_free_queue_size(config: &gst::Structure) -> u32 {
assert_initialized_main_thread!();
unsafe { ffi::gst_buffer_pool_config_get_gl_min_free_queue_size(config.to_glib_none().0) }
}
#[cfg(feature = "v1_24")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))]
#[doc(alias = "gst_buffer_pool_config_set_gl_min_free_queue_size")]
pub fn buffer_pool_config_set_gl_min_free_queue_size(config: &gst::Structure, queue_size: u32) {
assert_initialized_main_thread!();
unsafe {
ffi::gst_buffer_pool_config_set_gl_min_free_queue_size(config.to_glib_none().0, queue_size);
}
}
#[doc(alias = "gst_gl_check_extension")]
pub fn gl_check_extension(name: &str, ext: &str) -> bool {
assert_initialized_main_thread!();