[−][src]Struct ffmpeg_next::codec::encoder::encoder::Encoder
Implementations
impl Encoder
[src]
pub fn video(self) -> Result<Video, Error>
[src]
pub fn audio(self) -> Result<Audio, Error>
[src]
pub fn subtitle(self) -> Result<Subtitle, Error>
[src]
pub fn send_frame(&mut self, frame: &Frame) -> Result<(), Error>
[src]
pub fn send_eof(&mut self) -> Result<(), Error>
[src]
Sends a NULL packet to the encoder to signal end of stream and enter draining mode.
pub fn receive_packet<P: Mut>(&mut self, packet: &mut P) -> Result<(), Error>
[src]
pub fn set_bit_rate(&mut self, value: usize)
[src]
pub fn set_max_bit_rate(&mut self, value: usize)
[src]
pub fn set_tolerance(&mut self, value: usize)
[src]
pub fn set_quality(&mut self, value: usize)
[src]
pub fn set_compression(&mut self, value: Option<usize>)
[src]
pub fn set_time_base<R: Into<Rational>>(&mut self, value: R)
[src]
pub fn set_frame_rate<R: Into<Rational>>(&mut self, value: Option<R>)
[src]
Methods from Deref<Target = Context>
pub unsafe fn as_ptr(&self) -> *const AVCodecContext
[src]
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVCodecContext
[src]
pub fn codec(&self) -> Option<Codec>
[src]
pub fn medium(&self) -> Type
[src]
pub fn set_flags(&mut self, value: Flags)
[src]
pub fn id(&self) -> Id
[src]
pub fn compliance(&mut self, value: Compliance)
[src]
pub fn debug(&mut self, value: Debug)
[src]
pub fn set_threading(&mut self, config: Config)
[src]
pub fn threading(&self) -> Config
[src]
pub fn set_parameters<P: Into<Parameters>>(
&mut self,
parameters: P
) -> Result<(), Error>
[src]
&mut self,
parameters: P
) -> Result<(), Error>
Trait Implementations
impl AsMut<Context> for Encoder
[src]
impl AsRef<Context> for Encoder
[src]
impl Deref for Encoder
[src]
impl DerefMut for Encoder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Encoder
impl Send for Encoder
impl !Sync for Encoder
impl Unpin for Encoder
impl !UnwindSafe for Encoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,