gstreamer_pbutils/auto/
encoding_video_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::translate::*;
8
9glib::wrapper! {
10    #[doc(alias = "GstEncodingVideoProfile")]
11    pub struct EncodingVideoProfile(Object<ffi::GstEncodingVideoProfile, ffi::GstEncodingVideoProfileClass>) @extends EncodingProfile;
12
13    match fn {
14        type_ => || ffi::gst_encoding_video_profile_get_type(),
15    }
16}
17
18impl EncodingVideoProfile {
19    #[doc(alias = "gst_encoding_video_profile_get_pass")]
20    #[doc(alias = "get_pass")]
21    pub fn pass(&self) -> u32 {
22        unsafe { ffi::gst_encoding_video_profile_get_pass(self.to_glib_none().0) }
23    }
24
25    #[doc(alias = "gst_encoding_video_profile_get_variableframerate")]
26    #[doc(alias = "get_variableframerate")]
27    pub fn is_variableframerate(&self) -> bool {
28        unsafe {
29            from_glib(ffi::gst_encoding_video_profile_get_variableframerate(
30                self.to_glib_none().0,
31            ))
32        }
33    }
34}
35
36unsafe impl Send for EncodingVideoProfile {}
37unsafe impl Sync for EncodingVideoProfile {}