pub enum VideoEncoderSource {
DirectX(SendDirectX<IDirect3DSurface>),
Buffer(Vec<u8>),
}展开描述
VideoEncoder 使用的视频源。
- For
VideoEncoderSource::DirectX, the COM surface pointer is ref-counted; holding the pointer is sufficient. - For
VideoEncoderSource::Buffer, the encoder takes ownership of the bytes, allowing callers to return immediately.
变体§
自动 Trait 实现§
impl Freeze for VideoEncoderSource
impl RefUnwindSafe for VideoEncoderSource
impl Send for VideoEncoderSource
impl !Sync for VideoEncoderSource
impl Unpin for VideoEncoderSource
impl UnsafeUnpin for VideoEncoderSource
impl UnwindSafe for VideoEncoderSource
通用实现§
源代码§impl<T> IntoEither for T
impl<T> IntoEither for T
源代码§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
将
self 转换为 Left 变体,如果 Either<Self, Self>
当 into_left is true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多源代码§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 转换为 Left 变体,如果 Either<Self, Self>
当 into_left(&self) returns true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多