pub struct Audio(pub Opened);
Tuple Fields
0: Opened
Implementations
sourceimpl Audio
impl Audio
pub fn decode<P: Ref>(
&mut self,
packet: &P,
out: &mut Audio
) -> Result<bool, Error>
👎 Deprecated since 4.4.0:
Underlying API avcodec_decode_audio4 has been deprecated since FFmpeg 3.1; consider switching to send_packet() and receive_frame()
pub fn rate(&self) -> u32
pub fn channels(&self) -> u16
pub fn format(&self) -> Sample
pub fn request_format(&mut self, value: Sample)
pub fn frames(&self) -> usize
pub fn align(&self) -> usize
pub fn channel_layout(&self) -> ChannelLayout
pub fn set_channel_layout(&mut self, value: ChannelLayout)
pub fn request_channel_layout(&mut self, value: ChannelLayout)
pub fn audio_service(&mut self) -> AudioService
pub fn max_bit_rate(&self) -> usize
pub fn frame_size(&self) -> u32
pub fn frame_start(&self) -> Option<usize>
Methods from Deref<Target = Opened>
pub fn send_packet<P: Ref>(&mut self, packet: &P) -> Result<(), Error>
sourcepub fn send_eof(&mut self) -> Result<(), Error>
pub fn send_eof(&mut self) -> Result<(), Error>
Sends a NULL packet to the decoder to signal end of stream and enter draining mode.
pub fn receive_frame(&mut self, frame: &mut Frame) -> Result<(), Error>
pub fn bit_rate(&self) -> usize
pub fn delay(&self) -> usize
pub fn profile(&self) -> Profile
pub fn frame_rate(&self) -> Option<Rational>
pub fn flush(&mut self)
Methods from Deref<Target = Decoder>
Methods from Deref<Target = Context>
pub unsafe fn as_ptr(&self) -> *const AVCodecContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext
pub fn codec(&self) -> Option<Codec>
pub fn medium(&self) -> Type
pub fn set_flags(&mut self, value: Flags)
pub fn id(&self) -> Id
pub fn compliance(&mut self, value: Compliance)
pub fn debug(&mut self, value: Debug)
pub fn set_threading(&mut self, config: Config)
pub fn threading(&self) -> Config
pub fn set_parameters<P: Into<Parameters>>(
&mut self,
parameters: P
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Audio
impl Send for Audio
impl !Sync for Audio
impl Unpin for Audio
impl !UnwindSafe for Audio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more