[][src]Struct ffmpeg_dev::sys::AudioData

#[repr(C)]
pub struct AudioData {
    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,
}

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

impl Clone for AudioData[src]

impl Copy for AudioData[src]

impl Debug for AudioData[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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.

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

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

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