#[non_exhaustive]pub enum FramePixels {
Rgba8(Arc<[u8]>),
LinearF16(Arc<[u16]>),
}Expand description
A frame’s tightly packed pixels, in the source’s precision. Shared with the source’s cache, so repeated frames cost no copy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rgba8(Arc<[u8]>)
Premultiplied, sRGB-encoded RGBA8.
LinearF16(Arc<[u16]>)
Premultiplied linear-light RGBA as IEEE 754 half-float bits, BT.709 primaries, 1.0 at
SDR white; values outside 0.0..=1.0 are kept.
Implementations§
Trait Implementations§
Source§impl Clone for FramePixels
impl Clone for FramePixels
Source§impl Debug for FramePixels
impl Debug for FramePixels
impl Eq for FramePixels
Source§impl PartialEq for FramePixels
impl PartialEq for FramePixels
impl StructuralPartialEq for FramePixels
Auto Trait Implementations§
impl Forget for FramePixels
impl Freeze for FramePixels
impl Move for FramePixels
impl RefUnwindSafe for FramePixels
impl Send for FramePixels
impl Sync for FramePixels
impl Unpin for FramePixels
impl UnsafeUnpin for FramePixels
impl UnwindSafe for FramePixels
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.