pub struct Encoder(pub Video);
Tuple Fields§
§0: Video
Implementations§
Methods from Deref<Target = Video>§
pub fn set_width(&mut self, value: u32)
pub fn width(&self) -> u32
pub fn set_height(&mut self, value: u32)
pub fn height(&self) -> u32
pub fn set_gop(&mut self, value: u32)
pub fn set_format(&mut self, value: Pixel)
pub fn format(&self) -> Pixel
pub fn set_max_b_frames(&mut self, value: usize)
pub fn set_b_quant_factor(&mut self, value: f32)
pub fn set_b_quant_offset(&mut self, value: f32)
pub fn set_i_quant_factor(&mut self, value: f32)
pub fn set_i_quant_offset(&mut self, value: f32)
pub fn set_lumi_masking(&mut self, value: f32)
pub fn set_temporal_cplx_masking(&mut self, value: f32)
pub fn set_spatial_cplx_masking(&mut self, value: f32)
pub fn set_p_masking(&mut self, value: f32)
pub fn set_dark_masking(&mut self, value: f32)
pub fn set_aspect_ratio<R: Into<Rational>>(&mut self, value: R)
pub fn set_me_comparison(&mut self, value: Comparison)
pub fn set_me_sub_comparison(&mut self, value: Comparison)
pub fn set_mb_comparison(&mut self, value: Comparison)
pub fn set_ildct_comparison(&mut self, value: Comparison)
pub fn set_dia_size(&mut self, value: usize)
pub fn set_last_predictors(&mut self, value: usize)
pub fn set_me_pre_comparison(&mut self, value: Comparison)
pub fn set_pre_dia_size(&mut self, value: usize)
pub fn set_me_subpel_quality(&mut self, value: usize)
pub fn set_me_range(&mut self, value: usize)
pub fn set_mb_decision(&mut self, value: Decision)
pub fn set_mb_lmin(&mut self, value: i32)
pub fn set_mb_lmax(&mut self, value: i32)
pub fn set_intra_dc_precision(&mut self, value: u8)
pub fn set_qmin(&mut self, value: i32)
pub fn set_qmax(&mut self, value: i32)
pub fn set_global_quality(&mut self, value: i32)
pub fn set_colorspace(&mut self, value: Space)
pub fn colorspace(&self) -> Space
pub fn set_color_range(&mut self, value: Range)
pub fn color_range(&self) -> Range
Methods from Deref<Target = Super>§
pub fn send_frame(&mut self, frame: &Frame) -> Result<(), Error>
Sourcepub fn send_eof(&mut self) -> Result<(), Error>
pub fn send_eof(&mut self) -> Result<(), Error>
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>
pub fn set_bit_rate(&mut self, value: usize)
pub fn set_max_bit_rate(&mut self, value: usize)
pub fn set_tolerance(&mut self, value: usize)
pub fn set_quality(&mut self, value: usize)
pub fn set_compression(&mut self, value: Option<usize>)
pub fn set_time_base<R: Into<Rational>>(&mut self, value: R)
pub fn set_frame_rate<R: Into<Rational>>(&mut self, value: Option<R>)
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: AsPtr<AVCodecParameters>>( &mut self, parameters: P, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl !RefUnwindSafe for Encoder
impl Send for Encoder
impl !Sync for Encoder
impl Unpin for Encoder
impl !UnwindSafe for Encoder
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