gstreamer-rs/gstreamer-pbutils/src/auto/encoding_container_profile.rs

42 lines
1.4 KiB
Rust
Raw Normal View History

// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
2020-11-22 10:08:08 +00:00
use crate::EncodingProfile;
use glib::{prelude::*, translate::*};
2020-12-17 22:34:53 +00:00
glib::wrapper! {
#[doc(alias = "GstEncodingContainerProfile")]
2020-11-22 10:08:08 +00:00
pub struct EncodingContainerProfile(Object<ffi::GstEncodingContainerProfile, ffi::GstEncodingContainerProfileClass>) @extends EncodingProfile;
match fn {
type_ => || ffi::gst_encoding_container_profile_get_type(),
}
}
2019-06-18 10:10:46 +00:00
impl EncodingContainerProfile {
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_encoding_container_profile_contains_profile")]
pub fn contains_profile(&self, profile: &impl IsA<EncodingProfile>) -> bool {
unsafe {
2020-11-22 10:08:08 +00:00
from_glib(ffi::gst_encoding_container_profile_contains_profile(
self.to_glib_none().0,
profile.as_ref().to_glib_none().0,
))
}
}
2020-12-08 13:00:17 +00:00
#[doc(alias = "gst_encoding_container_profile_get_profiles")]
#[doc(alias = "get_profiles")]
2021-04-11 19:38:18 +00:00
pub fn profiles(&self) -> Vec<EncodingProfile> {
unsafe {
2020-11-22 10:08:08 +00:00
FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_container_profile_get_profiles(
self.to_glib_none().0,
))
}
}
}
2019-06-18 10:10:46 +00:00
unsafe impl Send for EncodingContainerProfile {}
unsafe impl Sync for EncodingContainerProfile {}