Skip to main content

frame_count

Function frame_count 

Source
pub fn frame_count(
    dataset_bytes: u64,
    datatype: &Datatype,
    channel_count: usize,
) -> Result<u64, SigmfError>
Expand description

Returns the number of frames in dataset_bytes bytes of sample data.

dataset_bytes must exclude any capture header and trailing bytes.

ยงErrors

Returns SigmfError::InvalidMetadata if channel_count is zero, the frame size overflows, or dataset_bytes is not a whole number of frames.