2018-05-13 18:31:10 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2018-03-18 17:42:45 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use EncodingProfile;
|
|
|
|
use ffi;
|
|
|
|
use glib::translate::*;
|
|
|
|
|
|
|
|
glib_wrapper! {
|
2019-01-16 11:32:39 +00:00
|
|
|
pub struct EncodingVideoProfile(Object<ffi::GstEncodingVideoProfile, ffi::GstEncodingVideoProfileClass, EncodingVideoProfileClass>) @extends EncodingProfile;
|
2018-03-18 17:42:45 +00:00
|
|
|
|
|
|
|
match fn {
|
|
|
|
get_type => || ffi::gst_encoding_video_profile_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl EncodingVideoProfile {
|
|
|
|
pub fn get_pass(&self) -> u32 {
|
|
|
|
unsafe {
|
|
|
|
ffi::gst_encoding_video_profile_get_pass(self.to_glib_none().0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn get_variableframerate(&self) -> bool {
|
|
|
|
unsafe {
|
|
|
|
from_glib(ffi::gst_encoding_video_profile_get_variableframerate(self.to_glib_none().0))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
unsafe impl Send for EncodingVideoProfile {}
|
|
|
|
unsafe impl Sync for EncodingVideoProfile {}
|