#[repr(C)]pub struct AudioData {Show 18 fields
pub class: *const AVClass,
pub data: [*mut u8; 32],
pub buffer: *mut u8,
pub buffer_size: c_uint,
pub allocated_samples: c_int,
pub nb_samples: c_int,
pub sample_fmt: AVSampleFormat,
pub channels: c_int,
pub allocated_channels: c_int,
pub is_planar: c_int,
pub planes: c_int,
pub sample_size: c_int,
pub stride: c_int,
pub read_only: c_int,
pub allow_realloc: c_int,
pub ptr_align: c_int,
pub samples_align: c_int,
pub name: *const c_char,
}
Expand description
Audio buffer used for intermediate storage between conversion phases.
Fields§
§class: *const AVClass
< AVClass for logging
data: [*mut u8; 32]
< data plane pointers
buffer: *mut u8
< data buffer
buffer_size: c_uint
< allocated buffer size
allocated_samples: c_int
< number of samples the buffer can hold
nb_samples: c_int
< current number of samples
sample_fmt: AVSampleFormat
< sample format
channels: c_int
< channel count
allocated_channels: c_int
< allocated channel count
is_planar: c_int
< sample format is planar
planes: c_int
< number of data planes
sample_size: c_int
< bytes per sample
stride: c_int
< sample byte offset within a plane
read_only: c_int
< data is read-only
allow_realloc: c_int
< realloc is allowed
ptr_align: c_int
< minimum data pointer alignment
samples_align: c_int
< allocated samples alignment
name: *const c_char
< name for debug logging
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioData
impl RefUnwindSafe for AudioData
impl !Send for AudioData
impl !Sync for AudioData
impl Unpin for AudioData
impl UnwindSafe for AudioData
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