pub enum SignalFormat {
Show 14 variants
Format0,
Format8,
Format16,
Format24,
Format32,
Format61,
Format80,
Format160,
Format212,
Format310,
Format311,
Flac8,
Flac16,
Flac24,
}Expand description
The format of a waveform signal data.
Refer to WFDB Format Specification for more details.
Variants§
Format0
Null signal format, nothing to read or write.
Format8
First differences stored as signed 8-bit integers.
Format16
16-bit two’s complement integers (little-endian).
Format24
24-bit two’s complement integers (little-endian).
Format32
32-bit two’s complement integers (little-endian).
Format61
16-bit two’s complement integers (big-endian).
Format80
8-bit offset binary (unsigned 8-bit, subtract 128 to recover).
Format160
16-bit offset binary (unsigned 16-bit, subtract 32,768 to recover).
Format212
Packed 12-bit two’s complement samples (compact format, common in PhysioBank).
Format310
Packed 10-bit two’s complement samples (legacy format).
Format311
Alternative packed 10-bit samples (different packing from 310).
Flac8
Signals compressed with FLAC (8 bits per sample). (Format 508)
Flac16
Signals compressed with FLAC (16 bits per sample). (Format 516)
Flac24
Signals compressed with FLAC (24 bits per sample). (Format 524)
Trait Implementations§
Source§impl Clone for SignalFormat
impl Clone for SignalFormat
Source§fn clone(&self) -> SignalFormat
fn clone(&self) -> SignalFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignalFormat
impl Debug for SignalFormat
Source§impl From<SignalFormat> for u16
impl From<SignalFormat> for u16
Source§fn from(format: SignalFormat) -> Self
fn from(format: SignalFormat) -> Self
Converts a SignalFormat enum to corresponding format code.