[][src]Struct gstreamer_audio::audio_buffer::AudioBufferRef

pub struct AudioBufferRef<T> { /* fields omitted */ }

Implementations

impl<T> AudioBufferRef<T>[src]

pub fn info(&self) -> &AudioInfo[src]

pub fn format(&self) -> AudioFormat[src]

pub fn format_info(&self) -> AudioFormatInfo[src]

pub fn channels(&self) -> u32[src]

pub fn rate(&self) -> u32[src]

pub fn layout(&self) -> AudioLayout[src]

pub fn width(&self) -> u32[src]

pub fn depth(&self) -> u32[src]

pub fn sample_stride(&self) -> u32[src]

pub fn bps(&self) -> u32[src]

pub fn bpf(&self) -> u32[src]

pub fn n_samples(&self) -> usize[src]

pub fn n_planes(&self) -> u32[src]

pub fn plane_size(&self) -> usize[src]

pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>[src]

pub fn as_ptr(&self) -> *const GstAudioBuffer[src]

impl<'a> AudioBufferRef<&'a BufferRef>[src]

pub unsafe fn from_glib_borrow(
    audio_buffer: *const GstAudioBuffer
) -> Borrowed<Self>
[src]

pub fn from_buffer_ref_readable<'b>(
    buffer: &'a BufferRef,
    info: &'b AudioInfo
) -> Result<AudioBufferRef<&'a BufferRef>, BoolError>
[src]

pub fn buffer(&self) -> &BufferRef[src]

impl<'a> AudioBufferRef<&'a mut BufferRef>[src]

pub unsafe fn from_glib_borrow_mut(
    audio_buffer: *mut GstAudioBuffer
) -> Borrowed<Self>
[src]

pub fn from_buffer_ref_writable<'b>(
    buffer: &'a mut BufferRef,
    info: &'b AudioInfo
) -> Result<AudioBufferRef<&'a mut BufferRef>, BoolError>
[src]

pub fn buffer_mut(&mut self) -> &mut BufferRef[src]

pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>[src]

pub fn as_mut_ptr(&mut self) -> *mut GstAudioBuffer[src]

Methods from Deref<Target = AudioBufferRef<&'a BufferRef>>

pub fn info(&self) -> &AudioInfo[src]

pub fn format(&self) -> AudioFormat[src]

pub fn format_info(&self) -> AudioFormatInfo[src]

pub fn channels(&self) -> u32[src]

pub fn rate(&self) -> u32[src]

pub fn layout(&self) -> AudioLayout[src]

pub fn width(&self) -> u32[src]

pub fn depth(&self) -> u32[src]

pub fn sample_stride(&self) -> u32[src]

pub fn bps(&self) -> u32[src]

pub fn bpf(&self) -> u32[src]

pub fn n_samples(&self) -> usize[src]

pub fn n_planes(&self) -> u32[src]

pub fn plane_size(&self) -> usize[src]

pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>[src]

pub fn as_ptr(&self) -> *const GstAudioBuffer[src]

pub fn buffer(&self) -> &BufferRef[src]

Trait Implementations

impl<T: Debug> Debug for AudioBufferRef<T>[src]

impl<'a> Deref for AudioBufferRef<&'a mut BufferRef>[src]

type Target = AudioBufferRef<&'a BufferRef>

The resulting type after dereferencing.

impl<T> Drop for AudioBufferRef<T>[src]

impl<T> Send for AudioBufferRef<T>[src]

impl<T> Sync for AudioBufferRef<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AudioBufferRef<T> where
    T: RefUnwindSafe

impl<T> Unpin for AudioBufferRef<T> where
    T: Unpin

impl<T> UnwindSafe for AudioBufferRef<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.