Struct gstreamer_audio::audio_buffer::AudioBufferRef
source · pub struct AudioBufferRef<T> { /* private fields */ }
Implementations§
source§impl<T> AudioBufferRef<T>
impl<T> AudioBufferRef<T>
pub fn info(&self) -> &AudioInfo
pub fn format(&self) -> AudioFormat
pub fn format_info(&self) -> AudioFormatInfo
pub fn channels(&self) -> u32
pub fn rate(&self) -> u32
pub fn layout(&self) -> AudioLayout
pub fn width(&self) -> u32
pub fn depth(&self) -> u32
pub fn sample_stride(&self) -> u32
pub fn bps(&self) -> u32
pub fn bpf(&self) -> u32
pub fn n_samples(&self) -> usize
pub fn n_planes(&self) -> u32
pub fn plane_size(&self) -> usize
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
pub fn planes_data(&self) -> SmallVec<[&[u8]; 8]>
pub fn as_ptr(&self) -> *const GstAudioBuffer
source§impl<'a> AudioBufferRef<&'a BufferRef>
impl<'a> AudioBufferRef<&'a BufferRef>
pub unsafe fn from_glib_borrow( audio_buffer: *const GstAudioBuffer, ) -> Borrowed<Self>
pub fn from_buffer_ref_readable<'b>( buffer: &'a BufferRef, info: &'b AudioInfo, ) -> Result<Self, BoolError>
pub fn buffer(&self) -> &BufferRef
source§impl<'a> AudioBufferRef<&'a mut BufferRef>
impl<'a> AudioBufferRef<&'a mut BufferRef>
pub unsafe fn from_glib_borrow_mut( audio_buffer: *mut GstAudioBuffer, ) -> Borrowed<Self>
pub fn from_buffer_ref_writable<'b>( buffer: &'a mut BufferRef, info: &'b AudioInfo, ) -> Result<Self, BoolError>
pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>
pub fn planes_data_mut(&mut self) -> SmallVec<[&mut [u8]; 8]>
pub fn as_mut_ptr(&mut self) -> *mut GstAudioBuffer
Trait Implementations§
source§impl<T> Debug for AudioBufferRef<T>
impl<T> Debug for AudioBufferRef<T>
source§impl<'a> Deref for AudioBufferRef<&'a mut BufferRef>
impl<'a> Deref for AudioBufferRef<&'a mut BufferRef>
source§impl<T> Drop for AudioBufferRef<T>
impl<T> Drop for AudioBufferRef<T>
impl<T> Send for AudioBufferRef<T>
impl<T> Sync for AudioBufferRef<T>
Auto Trait Implementations§
impl<T> Freeze for AudioBufferRef<T>
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§
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> 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 more