Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ac-freeman committed Jan 2, 2024
1 parent f5e377e commit 59692c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion adder-codec-rs/examples/framed_video_to_adder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extern crate core;

use adder_codec_core::codec::{EncoderOptions, EncoderType};
use adder_codec_core::SourceCamera::FramedU8;
use adder_codec_core::TimeMode;
use adder_codec_core::{PixelMultiMode, TimeMode};
use adder_codec_rs::transcoder::source::framed::Framed;
use adder_codec_rs::transcoder::source::video::{Source, VideoBuilder};
use rayon::current_num_threads;
Expand All @@ -27,6 +27,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.write_out(
FramedU8,
TimeMode::DeltaT,
PixelMultiMode::Normal,
EncoderType::Raw,
EncoderOptions::default(plane),
writer,
Expand Down
4 changes: 2 additions & 2 deletions adder-codec-rs/src/bin/adder_simulproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
FramedU8,
time_mode,
integration_mode,
EncoderType::Raw,
EncoderType::Compressed,
EncoderOptions::default(plane),
BufWriter::new(file),
)?;
Expand Down Expand Up @@ -228,7 +228,7 @@ mod tests {
TimeMode::default(),
)?;

simul_processor.run().unwrap();
simul_processor.run(0).unwrap();
sleep(Duration::from_secs(5));

let output_path = "./tests/samples/TEST_lake_scaled_hd_crop";
Expand Down
1 change: 1 addition & 0 deletions adder-codec-rs/src/bin_cv/davis_to_adder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
.write_out(
DavisU8,
TimeMode::AbsoluteT,
PixelMultiMode::Collapse,
EncoderType::Raw,
EncoderOptions::default(PlaneSize::new(346, 260, 1)?),
writer,
Expand Down

0 comments on commit 59692c7

Please sign in to comment.