pub struct SaveOptions {
pub topic: Option<String>,
pub colormap: Colormap,
pub normalize: Option<bool>,
pub format: Option<String>,
pub compression: Compression,
pub packet_compression: PacketCompression,
}Expand description
Options for the save_stream / save_frame writers — the symmetric mirror of
LoadOptions. Most formats ignore every field; readers and writers agree on the rest.
Fields§
§topic: Option<String>Rosbag topic to write the dvs_msgs/EventArray messages on (defaults to
/davis/left/events, matching the reader).
colormap: ColormapPNG frame export only: the colour map (default Colormap::Viridis).
normalize: Option<bool>PNG frame export only: auto-contrast the field to its data range. None = true.
format: Option<String>Overrides the format the extension implies. Two cases need it: writing E2VID’s layout to a
.txt (which otherwise means eventcv’s own text format — .zip already implies it), and
choosing between the two Prophesee .raw encodings with "evt2" / "evt3". None
follows the extension.
compression: CompressionHDF5 only: how the event columns are filtered. Defaults to Compression::Gzip at level 4.
packet_compression: PacketCompressionAEDAT 4 only: how each packet body is compressed. Defaults to LZ4, which is what DV writes.
Implementations§
Source§impl SaveOptions
impl SaveOptions
Sourcepub fn evt_version(&self) -> EvtVersion
pub fn evt_version(&self) -> EvtVersion
The Prophesee .raw encoding format asks for, defaulting to EVT2.
EVT2 is the default because it is the encoding a reader can decode without carrying state across words, so a file eventcv writes stays the easiest thing for another tool to open; EVT3 is smaller and is chosen explicitly.
Trait Implementations§
Source§impl Clone for SaveOptions
impl Clone for SaveOptions
Source§fn clone(&self) -> SaveOptions
fn clone(&self) -> SaveOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SaveOptions
impl Debug for SaveOptions
Source§impl Default for SaveOptions
impl Default for SaveOptions
Source§fn default() -> SaveOptions
fn default() -> SaveOptions
Auto Trait Implementations§
impl Freeze for SaveOptions
impl RefUnwindSafe for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnsafeUnpin for SaveOptions
impl UnwindSafe for SaveOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more