mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-14 13:31:09 +00:00
gl: Don't autogenerate GL buffer pool configuration functions
These need manual bindings.
This commit is contained in:
parent
c407ce825d
commit
7d5f8e95bf
2 changed files with 6 additions and 18 deletions
|
@ -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]]
|
||||
|
|
|
@ -7,24 +7,6 @@ use crate::{GLDisplay, GLSLProfile, GLSLVersion};
|
|||
use glib::{prelude::*, translate::*};
|
||||
use std::mem;
|
||||
|
||||
#[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!();
|
||||
|
|
Loading…
Reference in a new issue