gstreamer_pbutils/auto/encoding_container_profile.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, EncodingProfile};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GstEncodingContainerProfile")]
11 pub struct EncodingContainerProfile(Object<ffi::GstEncodingContainerProfile, ffi::GstEncodingContainerProfileClass>) @extends EncodingProfile;
12
13 match fn {
14 type_ => || ffi::gst_encoding_container_profile_get_type(),
15 }
16}
17
18impl EncodingContainerProfile {
19 #[doc(alias = "gst_encoding_container_profile_contains_profile")]
20 pub fn contains_profile(&self, profile: &impl IsA<EncodingProfile>) -> bool {
21 unsafe {
22 from_glib(ffi::gst_encoding_container_profile_contains_profile(
23 self.to_glib_none().0,
24 profile.as_ref().to_glib_none().0,
25 ))
26 }
27 }
28
29 #[doc(alias = "gst_encoding_container_profile_get_profiles")]
30 #[doc(alias = "get_profiles")]
31 pub fn profiles(&self) -> Vec<EncodingProfile> {
32 unsafe {
33 FromGlibPtrContainer::from_glib_none(ffi::gst_encoding_container_profile_get_profiles(
34 self.to_glib_none().0,
35 ))
36 }
37 }
38}
39
40unsafe impl Send for EncodingContainerProfile {}
41unsafe impl Sync for EncodingContainerProfile {}