mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
003554876c
Currently only covers what is needed to keep code compiling, plus everything caps/structure/tags related. This avoids unnecessary heap allocations for adding the NUL-terminator of C strings, and especially makes caps/structure handling as efficient as in C. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1190>
7 lines
267 B
Rust
7 lines
267 B
Rust
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
use gst::CapsFeatures;
|
|
use once_cell::sync::Lazy;
|
|
|
|
pub static CAPS_FEATURES_MEMORY_DMABUF: Lazy<CapsFeatures> =
|
|
Lazy::new(|| CapsFeatures::new([crate::CAPS_FEATURE_MEMORY_DMABUF]));
|