gstreamer_pbutils/auto/
encoding_container_profile.rs
1use crate::{ffi, EncodingProfile};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GstEncodingContainerProfile")]
16 pub struct EncodingContainerProfile(Object<ffi::GstEncodingContainerProfile, ffi::GstEncodingContainerProfileClass>) @extends EncodingProfile;
17
18 match fn {
19 type_ => || ffi::gst_encoding_container_profile_get_type(),
20 }
21}
22
23impl EncodingContainerProfile {
24 #[doc(alias = "gst_encoding_container_profile_contains_profile")]
34 pub fn contains_profile(&self, profile: &impl IsA<EncodingProfile>) -> bool {
35 unsafe {
36 from_glib(ffi::gst_encoding_container_profile_contains_profile(
37 self.to_glib_none().0,
38 profile.as_ref().to_glib_none().0,
39 ))
40 }
41 }
42
43 #[doc(alias = "gst_encoding_container_profile_get_profiles")]
49 #[doc(alias = "get_profiles")]
50 pub fn profiles(&self) -> Vec<EncodingProfile> {
51 unsafe {
52 FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_container_profile_get_profiles(
53 self.to_glib_none().0,
54 ))
55 }
56 }
57}
58
59unsafe impl Send for EncodingContainerProfile {}
60unsafe impl Sync for EncodingContainerProfile {}