Struct gstreamer_audio::AudioFormatInfo
source · pub struct AudioFormatInfo(/* private fields */);
Expand description
Information for an audio format.
Implementations§
source§impl AudioFormatInfo
impl AudioFormatInfo
pub fn from_format(format: AudioFormat) -> Self
pub fn format(&self) -> AudioFormat
pub fn name<'a>(&self) -> &'a GStr
pub fn description<'a>(&self) -> &'a GStr
pub fn flags(&self) -> AudioFormatFlags
pub fn endianness(&self) -> AudioEndianness
pub fn width(&self) -> u32
pub fn depth(&self) -> u32
pub fn unpack_format(&self) -> AudioFormat
pub fn silence<'a>(&self) -> &'a [u8] ⓘ
pub fn unpack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])
pub fn pack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])
sourcepub fn fill_silence(&self, dest: &mut [u8])
pub fn fill_silence(&self, dest: &mut [u8])
pub fn is_float(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_signed(&self) -> bool
pub fn is_little_endian(&self) -> bool
pub fn is_big_endian(&self) -> bool
Trait Implementations§
source§impl Clone for AudioFormatInfo
impl Clone for AudioFormatInfo
source§fn clone(&self) -> AudioFormatInfo
fn clone(&self) -> AudioFormatInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioFormatInfo
impl Debug for AudioFormatInfo
source§impl Display for AudioFormatInfo
impl Display for AudioFormatInfo
source§impl From<AudioFormat> for AudioFormatInfo
impl From<AudioFormat> for AudioFormatInfo
source§fn from(f: AudioFormat) -> Self
fn from(f: AudioFormat) -> Self
Converts to this type from the input type.
source§impl FromStr for AudioFormatInfo
impl FromStr for AudioFormatInfo
source§impl Ord for AudioFormatInfo
impl Ord for AudioFormatInfo
source§impl PartialEq for AudioFormatInfo
impl PartialEq for AudioFormatInfo
source§impl PartialOrd for AudioFormatInfo
impl PartialOrd for AudioFormatInfo
source§impl StaticType for AudioFormatInfo
impl StaticType for AudioFormatInfo
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ValueType for AudioFormatInfo
impl ValueType for AudioFormatInfo
§type Type = AudioFormatInfo
type Type = AudioFormatInfo
Type to get the
Type
from. Read moreimpl Copy for AudioFormatInfo
impl Eq for AudioFormatInfo
impl Send for AudioFormatInfo
impl Sync for AudioFormatInfo
Auto Trait Implementations§
impl Freeze for AudioFormatInfo
impl RefUnwindSafe for AudioFormatInfo
impl Unpin for AudioFormatInfo
impl UnwindSafe for AudioFormatInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.