pub enum VideoPixelFormat {
Nv12,
I420,
Rgba8,
Bgra8,
}Expand description
视频帧像素格式。
Variants§
Nv12
半平面 YUV 4:2:0(Y 平面 + 交错 UV 平面,硬件解码器最常用格式)。
I420
三平面 YUV 4:2:0(Y + U + V 独立平面)。
Rgba8
交错 RGBA8888。
Bgra8
交错 BGRA8888。
Trait Implementations§
Source§impl Clone for VideoPixelFormat
impl Clone for VideoPixelFormat
impl Copy for VideoPixelFormat
Source§impl Debug for VideoPixelFormat
impl Debug for VideoPixelFormat
impl Eq for VideoPixelFormat
Source§impl Hash for VideoPixelFormat
impl Hash for VideoPixelFormat
Source§impl PartialEq for VideoPixelFormat
impl PartialEq for VideoPixelFormat
impl StructuralPartialEq for VideoPixelFormat
Auto Trait Implementations§
impl Forget for VideoPixelFormat
impl Freeze for VideoPixelFormat
impl Move for VideoPixelFormat
impl RefUnwindSafe for VideoPixelFormat
impl Send for VideoPixelFormat
impl Sync for VideoPixelFormat
impl Unpin for VideoPixelFormat
impl UnsafeUnpin for VideoPixelFormat
impl UnwindSafe for VideoPixelFormat
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.Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。