pub struct HwFrameDecision {
pub send: bool,
pub force_idr: bool,
pub target_qp: u32,
pub hold_qp: Option<u32>,
pub hold_band: Option<(f64, f64)>,
pub measure: bool,
}Expand description
Outcome of the full-frame send decision produced by decide_hw_fullframe.
Fields§
§send: bool§force_idr: bool§target_qp: u32The session quality index the frame is encoded at.
hold_qp: Option<u32>The quality index this frame is held at whatever the rate control: the cleanup of a
still screen, handed to the encoder’s hold_quantizer.
hold_band: Option<(f64, f64)>The share of the picture, from and to in raster order, hold_qp covers, the rest of the
frame held at the coarsest quantizer; None for the whole picture.
measure: boolWhether the encoder is asked to measure this frame’s reconstruction
(FrameEncoder::measure).
Implementations§
Source§impl HwFrameDecision
impl HwFrameDecision
Sourcepub fn prepare(&self, encoder: &mut FrameEncoder)
pub fn prepare(&self, encoder: &mut FrameEncoder)
Tell encoder what the decision asks of the frame it is about to code: the quantizer
it is held at and whether its reconstruction is measured.
Auto Trait Implementations§
impl Freeze for HwFrameDecision
impl RefUnwindSafe for HwFrameDecision
impl Send for HwFrameDecision
impl Sync for HwFrameDecision
impl Unpin for HwFrameDecision
impl UnsafeUnpin for HwFrameDecision
impl UnwindSafe for HwFrameDecision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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