#[non_exhaustive]pub struct BufferInfo {
pub size: usize,
pub line_stride: usize,
pub resolution: Resolution,
pub field_mode: NDIFieldedFrameMode,
pub subsampling: Subsampling,
}Expand description
Contains information about the memory layout of video frame buffers
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: usizeThe size of the buffer in bytes. Takes into account the field mode.
line_stride: usizeThe stride/size of a single line in bytes.
resolution: Resolution§field_mode: NDIFieldedFrameModeThe field mode of the frame (progressive or interlaced).
subsampling: SubsamplingInformation about chroma subsampling.
Trait Implementations§
Source§impl Clone for BufferInfo
impl Clone for BufferInfo
Source§fn clone(&self) -> BufferInfo
fn clone(&self) -> BufferInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BufferInfo
impl Debug for BufferInfo
Source§impl Hash for BufferInfo
impl Hash for BufferInfo
Source§impl PartialEq for BufferInfo
impl PartialEq for BufferInfo
impl Copy for BufferInfo
impl Eq for BufferInfo
impl StructuralPartialEq for BufferInfo
Auto Trait Implementations§
impl Freeze for BufferInfo
impl RefUnwindSafe for BufferInfo
impl Send for BufferInfo
impl Sync for BufferInfo
impl Unpin for BufferInfo
impl UnwindSafe for BufferInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)