#[non_exhaustive]pub enum FramePixels {
Rgba8(Arc<[u8]>),
LinearF16(Arc<[u16]>),
}Expand description
A frame’s pixels, rows packed without padding, in the precision its source has. Shared, never copied, with what the source keeps: a frame a source answers again (a still, a frame it holds) costs 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 floats (their bits),
in BT.709 primaries with 1.0 at SDR white; values above 1.0 and
below 0.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 Freeze 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.