pub(super) struct Negotiated {Show 18 fields
pub profile: VAProfile,
pub entrypoint: VAEntrypoint,
pub packed: u32,
pub rc_mode: u32,
pub width: u32,
pub height: u32,
pub fps: FrameRate,
pub bits_per_second: u32,
pub dpb: u32,
pub dpb_level: u32,
pub fullcolor: bool,
pub bit_depth: u32,
pub min_qp: u32,
pub max_qp: u32,
pub qp_floor: u32,
pub unit_qp_deltas: bool,
pub h264_driver_level: u32,
pub roi_regions: u32,
}Expand description
What the session negotiated at open, which the codec arms read.
Fields§
§profile: VAProfile§entrypoint: VAEntrypoint§packed: u32The packed headers the driver takes, VA_ENC_PACKED_HEADER_* bits.
rc_mode: u32The rate-control mode, VA_RC_CQP or VA_RC_CBR.
width: u32§height: u32§fps: FrameRate§bits_per_second: u32§dpb: u32The reference frames the decoded picture buffer holds.
dpb_level: u32The level the decoded picture buffer was sized for, the lowest an H.264 or HEVC sequence declares.
fullcolor: bool§bit_depth: u32§min_qp: u32The quantizer bounds of a constant-rate session in the codec’s own domain, 0 for none.
max_qp: u32§qp_floor: u32The finest quantizer the entry point codes a constant-quantizer picture at
(h265::INTEL_LOW_POWER_MIN_QP on Intel’s low-power HEVC encoder, 1 elsewhere).
unit_qp_deltas: boolWhether the driver’s rate control codes its quantizer in every coding unit as a delta
from the slice’s (Intel’s full HEVC encoder), which the slice’s quantizer then has to keep
within the syntax’s range (h265::Arm::configure).
h264_driver_level: u32The highest H.264 level the driver is told (Device::h264_driver_level); the
packed SPS still declares the level the stream needs.
roi_regions: u32The regions of interest a frame may name with a quantizer delta
(VAConfigAttribEncROI), 0 where the driver takes none, or none under its rate control
at a constant rate.
Trait Implementations§
Source§impl Clone for Negotiated
impl Clone for Negotiated
Source§fn clone(&self) -> Negotiated
fn clone(&self) -> Negotiated
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Negotiated
Auto Trait Implementations§
impl Freeze for Negotiated
impl RefUnwindSafe for Negotiated
impl Send for Negotiated
impl Sync for Negotiated
impl Unpin for Negotiated
impl UnsafeUnpin for Negotiated
impl UnwindSafe for Negotiated
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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)
&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)
&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> ⓘ
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> ⓘ
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