pub struct Negotiate;Expand description
Format negotiator selecting the best feasible candidate from a codec’s supported list.
Implementations§
Source§impl Negotiate
impl Negotiate
Sourcepub fn select(
src: &PixelFormat,
supported: &[PixelFormat],
policy: &ConvertPolicy,
) -> Option<NegotiatedFormat>
pub fn select( src: &PixelFormat, supported: &[PixelFormat], policy: &ConvertPolicy, ) -> Option<NegotiatedFormat>
Select the best candidate from supported that satisfies policy.
Shares the planner’s deterministic feasibility checks (policy gates,
Transfer::Unknown linear-math guards, PQ/HLG anchor requirements,
feature gates, and CmsBackend::supports_formats) so selected candidates
do not unexpectedly fail in RowPlan::build.
Auto Trait Implementations§
impl Freeze for Negotiate
impl RefUnwindSafe for Negotiate
impl Send for Negotiate
impl Sync for Negotiate
impl Unpin for Negotiate
impl UnsafeUnpin for Negotiate
impl UnwindSafe for Negotiate
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