#[non_exhaustive]#[repr(u32)]pub enum BufferType {
Show 14 variants
VideoCapture = 1,
VideoOutput = 2,
VideoOverlay = 3,
VbiCapture = 4,
VbiOutput = 5,
SlicedVbiCapture = 6,
SlicedVbiOutput = 7,
VideoOutputOverlay = 8,
VideoCaptureMplane = 9,
VideoOutputMplane = 10,
SdrCapture = 11,
SdrOutput = 12,
MetaCapture = 13,
MetaOutput = 14,
}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.
VideoCapture = 1
VideoOutput = 2
VideoOverlay = 3
VbiCapture = 4
VbiOutput = 5
SlicedVbiCapture = 6
SlicedVbiOutput = 7
VideoOutputOverlay = 8
VideoCaptureMplane = 9
VideoOutputMplane = 10
SdrCapture = 11
SdrOutput = 12
MetaCapture = 13
MetaOutput = 14
Implementations§
Source§impl BufferType
impl BufferType
Sourcepub const VIDEO_SPLANE: [Self; 2]
pub const VIDEO_SPLANE: [Self; 2]
Single-planar video buffer types
Sourcepub const VIDEO_MPLANE: [Self; 2]
pub const VIDEO_MPLANE: [Self; 2]
Multi-planar video buffer types
Sourcepub const VIDEO_OVERLAY: [Self; 2]
pub const VIDEO_OVERLAY: [Self; 2]
Overlay video buffer types
Sourcepub fn is_supported(self, capabilities: CapabilityFlag) -> bool
pub fn is_supported(self, capabilities: CapabilityFlag) -> bool
Check that buffer type is supported according to capabilities
Sourcepub fn content(&self) -> ContentType
pub fn content(&self) -> ContentType
Get corresponding content type
Source§impl BufferType
impl BufferType
pub fn is_multiplanar(&self) -> bool
pub fn is_output(&self) -> bool
pub fn is_capture(&self) -> bool
Trait Implementations§
Source§impl AsRef<u32> for BufferType
impl AsRef<u32> for BufferType
Source§impl Clone for BufferType
impl Clone for BufferType
Source§fn clone(&self) -> BufferType
fn clone(&self) -> BufferType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferType
impl Debug for BufferType
Source§impl Deref for BufferType
impl Deref for BufferType
Source§impl Display for BufferType
impl Display for BufferType
Source§impl From<BufferType> for Format
impl From<BufferType> for Format
Source§fn from(type_: BufferType) -> Self
fn from(type_: BufferType) -> Self
Converts to this type from the input type.
Source§impl From<BufferType> for StreamParm
impl From<BufferType> for StreamParm
Source§fn from(type_: BufferType) -> Self
fn from(type_: BufferType) -> Self
Converts to this type from the input type.
Source§impl From<BufferType> for u32
impl From<BufferType> for u32
Source§fn from(data: BufferType) -> Self
fn from(data: BufferType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BufferType
impl PartialEq for BufferType
Source§impl TryFrom<u32> for BufferType
impl TryFrom<u32> for BufferType
impl Copy for BufferType
impl Eq for BufferType
impl StructuralPartialEq for BufferType
Auto Trait Implementations§
impl Freeze for BufferType
impl RefUnwindSafe for BufferType
impl Send for BufferType
impl Sync for BufferType
impl Unpin for BufferType
impl UnwindSafe for BufferType
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