Struct gstreamer_audio::AudioFormatInfo [−][src]
pub struct AudioFormatInfo(_);
Information for an audio format.
Methods
impl AudioFormatInfo
[src]
impl AudioFormatInfo
pub fn from_format(format: AudioFormat) -> AudioFormatInfo
[src]
pub fn from_format(format: AudioFormat) -> AudioFormatInfo
pub fn format(&self) -> AudioFormat
[src]
pub fn format(&self) -> AudioFormat
pub fn name<'a>(&self) -> &'a str
[src]
pub fn name<'a>(&self) -> &'a str
pub fn description<'a>(&self) -> &'a str
[src]
pub fn description<'a>(&self) -> &'a str
pub fn flags(&self) -> AudioFormatFlags
[src]
pub fn flags(&self) -> AudioFormatFlags
pub fn endianness(&self) -> AudioEndianness
[src]
pub fn endianness(&self) -> AudioEndianness
pub fn width(&self) -> u32
[src]
pub fn width(&self) -> u32
pub fn depth(&self) -> u32
[src]
pub fn depth(&self) -> u32
pub fn unpack_format(&self) -> AudioFormat
[src]
pub fn unpack_format(&self) -> AudioFormat
pub 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) -> bool
pub fn is_integer(&self) -> bool
[src]
pub fn is_integer(&self) -> bool
pub fn is_signed(&self) -> bool
[src]
pub fn is_signed(&self) -> bool
pub fn is_little_endian(&self) -> bool
[src]
pub fn is_little_endian(&self) -> bool
pub fn is_big_endian(&self) -> bool
[src]
pub fn is_big_endian(&self) -> bool
Trait Implementations
impl Sync for AudioFormatInfo
[src]
impl Sync for AudioFormatInfo
impl Send for AudioFormatInfo
[src]
impl Send for AudioFormatInfo
impl PartialEq for AudioFormatInfo
[src]
impl PartialEq for AudioFormatInfo
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for AudioFormatInfo
[src]
impl Eq for AudioFormatInfo
impl Debug for AudioFormatInfo
[src]
impl Debug for AudioFormatInfo
fn 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 AudioFormatInfo
fn 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 AudioFormatInfo
type 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 AudioFormatInfo
fn from(f: AudioFormat) -> Self
[src]
fn from(f: AudioFormat) -> Self
Performs the conversion.
impl StaticType for AudioFormatInfo
[src]
impl StaticType for AudioFormatInfo
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.