Struct gstreamer_audio::AudioFormatInfo [−][src]
pub struct AudioFormatInfo(_);
Information for an audio format.
Methods
impl AudioFormatInfo[src]
impl AudioFormatInfopub fn from_format(format: AudioFormat) -> AudioFormatInfo[src]
pub fn from_format(format: AudioFormat) -> AudioFormatInfopub fn format(&self) -> AudioFormat[src]
pub fn format(&self) -> AudioFormatpub fn name<'a>(&self) -> &'a str[src]
pub fn name<'a>(&self) -> &'a strpub fn description<'a>(&self) -> &'a str[src]
pub fn description<'a>(&self) -> &'a strpub fn flags(&self) -> AudioFormatFlags[src]
pub fn flags(&self) -> AudioFormatFlagspub fn endianness(&self) -> AudioEndianness[src]
pub fn endianness(&self) -> AudioEndiannesspub fn width(&self) -> u32[src]
pub fn width(&self) -> u32pub fn depth(&self) -> u32[src]
pub fn depth(&self) -> u32pub fn unpack_format(&self) -> AudioFormat[src]
pub fn unpack_format(&self) -> AudioFormatpub fn silence<'a>(&self) -> &'a [u8][src]
pub fn silence<'a>(&self) -> &'a [u8]pub fn unpack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])[src]
pub fn unpack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])pub fn pack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])[src]
pub fn pack(&self, flags: AudioPackFlags, dest: &mut [u8], src: &[u8])pub fn fill_silence(&self, dest: &mut [u8])[src]
pub fn fill_silence(&self, dest: &mut [u8])pub fn is_float(&self) -> bool[src]
pub fn is_float(&self) -> boolpub fn is_integer(&self) -> bool[src]
pub fn is_integer(&self) -> boolpub fn is_signed(&self) -> bool[src]
pub fn is_signed(&self) -> boolpub fn is_little_endian(&self) -> bool[src]
pub fn is_little_endian(&self) -> boolpub fn is_big_endian(&self) -> bool[src]
pub fn is_big_endian(&self) -> boolTrait Implementations
impl Sync for AudioFormatInfo[src]
impl Sync for AudioFormatInfoimpl Send for AudioFormatInfo[src]
impl Send for AudioFormatInfoimpl PartialEq for AudioFormatInfo[src]
impl PartialEq for AudioFormatInfofn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for AudioFormatInfo[src]
impl Eq for AudioFormatInfoimpl Debug for AudioFormatInfo[src]
impl Debug for AudioFormatInfofn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Display for AudioFormatInfo[src]
impl Display for AudioFormatInfofn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl FromStr for AudioFormatInfo[src]
impl FromStr for AudioFormatInfotype Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, ()>[src]
fn from_str(s: &str) -> Result<Self, ()>Parses a string s to return a value of this type. Read more
impl From<AudioFormat> for AudioFormatInfo[src]
impl From<AudioFormat> for AudioFormatInfofn from(f: AudioFormat) -> Self[src]
fn from(f: AudioFormat) -> SelfPerforms the conversion.
impl StaticType for AudioFormatInfo[src]
impl StaticType for AudioFormatInfofn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.