mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-10 17:25:33 +00:00
pbutils/encoding_profile: Silence various missing doc alias warnings
They're all wrong because they're on private functions. The public functions all have the correct doc aliases already.
This commit is contained in:
parent
fa72d53437
commit
18c7c6a3a6
1 changed files with 17 additions and 0 deletions
|
@ -30,6 +30,7 @@ trait EncodingProfileBuilderCommon {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
|
// checker-ignore-item
|
||||||
fn set_allow_dynamic_output(&self, allow_dynamic_output: bool) {
|
fn set_allow_dynamic_output(&self, allow_dynamic_output: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_profile_set_allow_dynamic_output(
|
ffi::gst_encoding_profile_set_allow_dynamic_output(
|
||||||
|
@ -39,6 +40,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_description(&self, description: Option<&str>) {
|
fn set_description(&self, description: Option<&str>) {
|
||||||
let description = description.to_glib_none();
|
let description = description.to_glib_none();
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -49,6 +51,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_enabled(&self, enabled: bool) {
|
fn set_enabled(&self, enabled: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_profile_set_enabled(
|
ffi::gst_encoding_profile_set_enabled(
|
||||||
|
@ -58,6 +61,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_format(&self, format: &gst::Caps) {
|
fn set_format(&self, format: &gst::Caps) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_profile_set_format(
|
ffi::gst_encoding_profile_set_format(
|
||||||
|
@ -67,6 +71,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_name(&self, name: Option<&str>) {
|
fn set_name(&self, name: Option<&str>) {
|
||||||
let name = name.to_glib_none();
|
let name = name.to_glib_none();
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -74,12 +79,14 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_presence(&self, presence: u32) {
|
fn set_presence(&self, presence: u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_profile_set_presence(self.as_ref().to_glib_none().0, presence);
|
ffi::gst_encoding_profile_set_presence(self.as_ref().to_glib_none().0, presence);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_preset(&self, preset: Option<&str>) {
|
fn set_preset(&self, preset: Option<&str>) {
|
||||||
let preset = preset.to_glib_none();
|
let preset = preset.to_glib_none();
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -87,6 +94,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_preset_name(&self, preset_name: Option<&str>) {
|
fn set_preset_name(&self, preset_name: Option<&str>) {
|
||||||
let preset_name = preset_name.to_glib_none();
|
let preset_name = preset_name.to_glib_none();
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -97,6 +105,7 @@ impl<O: IsA<EncodingProfile>> EncodingProfileBuilderCommon for O {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
#[cfg(feature = "v1_18")]
|
#[cfg(feature = "v1_18")]
|
||||||
fn set_single_segment(&self, single_segment: bool) {
|
fn set_single_segment(&self, single_segment: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -122,6 +131,7 @@ pub trait EncodingProfileHasRestrictionGetter {
|
||||||
macro_rules! declare_encoding_profile_has_restriction(
|
macro_rules! declare_encoding_profile_has_restriction(
|
||||||
($name:ident) => {
|
($name:ident) => {
|
||||||
impl EncodingProfileHasRestrictionSetter for $name {
|
impl EncodingProfileHasRestrictionSetter for $name {
|
||||||
|
// checker-ignore-item
|
||||||
fn set_restriction(&self, restriction: Option<&gst::Caps>) {
|
fn set_restriction(&self, restriction: Option<&gst::Caps>) {
|
||||||
let profile: &EncodingProfile = glib::object::Cast::upcast_ref(self);
|
let profile: &EncodingProfile = glib::object::Cast::upcast_ref(self);
|
||||||
|
|
||||||
|
@ -140,6 +150,7 @@ macro_rules! declare_encoding_profile_has_restriction(
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EncodingProfileHasRestrictionGetter for $name {
|
impl EncodingProfileHasRestrictionGetter for $name {
|
||||||
|
// checker-ignore-item
|
||||||
fn restriction(&self) -> Option<gst::Caps> {
|
fn restriction(&self) -> Option<gst::Caps> {
|
||||||
let profile: &EncodingProfile = glib::object::Cast::upcast_ref(self);
|
let profile: &EncodingProfile = glib::object::Cast::upcast_ref(self);
|
||||||
|
|
||||||
|
@ -154,6 +165,7 @@ macro_rules! declare_encoding_profile_has_restriction(
|
||||||
);
|
);
|
||||||
|
|
||||||
impl EncodingAudioProfile {
|
impl EncodingAudioProfile {
|
||||||
|
// checker-ignore-item
|
||||||
fn new(
|
fn new(
|
||||||
format: &gst::Caps,
|
format: &gst::Caps,
|
||||||
preset: Option<&str>,
|
preset: Option<&str>,
|
||||||
|
@ -182,6 +194,7 @@ impl EncodingAudioProfile {
|
||||||
declare_encoding_profile_has_restriction!(EncodingAudioProfile);
|
declare_encoding_profile_has_restriction!(EncodingAudioProfile);
|
||||||
|
|
||||||
impl EncodingVideoProfile {
|
impl EncodingVideoProfile {
|
||||||
|
// checker-ignore-item
|
||||||
fn new(
|
fn new(
|
||||||
format: &gst::Caps,
|
format: &gst::Caps,
|
||||||
preset: Option<&str>,
|
preset: Option<&str>,
|
||||||
|
@ -206,12 +219,14 @@ impl EncodingVideoProfile {
|
||||||
EncodingVideoProfileBuilder::new(format)
|
EncodingVideoProfileBuilder::new(format)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_pass(&self, pass: u32) {
|
fn set_pass(&self, pass: u32) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_video_profile_set_pass(self.to_glib_none().0, pass);
|
ffi::gst_encoding_video_profile_set_pass(self.to_glib_none().0, pass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn set_variableframerate(&self, variableframerate: bool) {
|
fn set_variableframerate(&self, variableframerate: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::gst_encoding_video_profile_set_variableframerate(
|
ffi::gst_encoding_video_profile_set_variableframerate(
|
||||||
|
@ -225,6 +240,7 @@ impl EncodingVideoProfile {
|
||||||
declare_encoding_profile_has_restriction!(EncodingVideoProfile);
|
declare_encoding_profile_has_restriction!(EncodingVideoProfile);
|
||||||
|
|
||||||
impl EncodingContainerProfile {
|
impl EncodingContainerProfile {
|
||||||
|
// checker-ignore-item
|
||||||
fn new(
|
fn new(
|
||||||
name: Option<&str>,
|
name: Option<&str>,
|
||||||
description: Option<&str>,
|
description: Option<&str>,
|
||||||
|
@ -250,6 +266,7 @@ impl EncodingContainerProfile {
|
||||||
EncodingContainerProfileBuilder::new(format)
|
EncodingContainerProfileBuilder::new(format)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// checker-ignore-item
|
||||||
fn add_profile<P: IsA<EncodingProfile>>(&self, profile: &P) {
|
fn add_profile<P: IsA<EncodingProfile>>(&self, profile: &P) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let res = ffi::gst_encoding_container_profile_add_profile(
|
let res = ffi::gst_encoding_container_profile_add_profile(
|
||||||
|
|
Loading…
Reference in a new issue