pub struct QpSelector { /* private fields */ }Expand description
Quantization parameter selector.
Implementations§
Source§impl QpSelector
impl QpSelector
Sourcepub fn set_strategy(&mut self, strategy: QpStrategy)
pub fn set_strategy(&mut self, strategy: QpStrategy)
Set QP selection strategy.
Sourcepub fn set_base_qp(&mut self, qp: f32)
pub fn set_base_qp(&mut self, qp: f32)
Set base QP.
Sourcepub fn set_i_qp_offset(&mut self, offset: i8)
pub fn set_i_qp_offset(&mut self, offset: i8)
Set I-frame QP offset.
Sourcepub fn set_p_qp_offset(&mut self, offset: i8)
pub fn set_p_qp_offset(&mut self, offset: i8)
Set P-frame QP offset.
Sourcepub fn set_b_qp_offset(&mut self, offset: i8)
pub fn set_b_qp_offset(&mut self, offset: i8)
Set B-frame QP offset.
Sourcepub fn set_aq_enabled(&mut self, enabled: bool)
pub fn set_aq_enabled(&mut self, enabled: bool)
Enable or disable adaptive quantization.
Sourcepub fn set_aq_strength(&mut self, strength: f32)
pub fn set_aq_strength(&mut self, strength: f32)
Set AQ strength.
Sourcepub fn set_psy_enabled(&mut self, enabled: bool)
pub fn set_psy_enabled(&mut self, enabled: bool)
Enable or disable psychovisual optimization.
Sourcepub fn set_psy_strength(&mut self, strength: f32)
pub fn set_psy_strength(&mut self, strength: f32)
Set psychovisual strength.
Sourcepub fn set_adaptation_speed(&mut self, speed: f32)
pub fn set_adaptation_speed(&mut self, speed: f32)
Set adaptation speed.
Sourcepub fn select_frame_qp(
&mut self,
frame_type: FrameType,
complexity: f32,
target_bits: u64,
frame_in_gop: u32,
) -> QpResult
pub fn select_frame_qp( &mut self, frame_type: FrameType, complexity: f32, target_bits: u64, frame_in_gop: u32, ) -> QpResult
Select QP for a frame.
Trait Implementations§
Source§impl Clone for QpSelector
impl Clone for QpSelector
Source§fn clone(&self) -> QpSelector
fn clone(&self) -> QpSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QpSelector
impl RefUnwindSafe for QpSelector
impl Send for QpSelector
impl Sync for QpSelector
impl Unpin for QpSelector
impl UnsafeUnpin for QpSelector
impl UnwindSafe for QpSelector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more