ndi_sdk_sys/buffer_info.rs
1//! Contains information about the memory layout of video frame buffers
2
3use crate::{enums::NDIFieldedFrameMode, resolution::Resolution, subsampling::Subsampling};
4
5/// Contains information about the memory layout of video frame buffers
6#[non_exhaustive]
7#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
8pub struct BufferInfo {
9 /// The size of the buffer in bytes. Takes into account the field mode.
10 pub size: usize,
11 /// The stride/size of a single line in bytes.
12 pub line_stride: usize,
13
14 pub resolution: Resolution,
15 /// The field mode of the frame (progressive or interlaced).
16 pub field_mode: NDIFieldedFrameMode,
17 /// Information about chroma subsampling.
18 pub subsampling: Subsampling,
19}