Struct gstreamer_audio::AudioFormatInfo
source · pub struct AudioFormatInfo(/* private fields */);
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])
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
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§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
.