Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust_action_test_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: sudo apt-get install -y portaudio19-dev build-essential libpulse-dev libdbus-1-dev pkg-config libx11-dev libatk1.0-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev ffmpeg

- name: Check project
run: cargo check -p adder-codec-core -p adder-codec-rs -p adder-info -p adder-to-dvs -p adder-viz --features "compression"
run: cargo check --all-targets -p adder-codec-core -p adder-codec-rs -p adder-info -p adder-to-dvs -p adder-viz --features "compression"

- name: Build binaries for testing
run: cargo build -p adder-info
Expand Down
8 changes: 4 additions & 4 deletions adder-codec-rs/benches/framed_to_adder_hd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ fn simul_proc(video_path: &str, scale: f64, thread_count: u8, _chunk_rows: usize
output_events_filename: "".parse().unwrap(),
output_raw_video_filename: manifest_path_str + "/benches/run/bench_out",
scale,
c_thresh_pos: 0,
c_thresh_neg: 0,
thread_count, // Multithreading causes some issues in testing
time_mode: "delta_t".to_string(),
crf: todo!(),
integration_mode: todo!(),
};
let source: Framed<BufWriter<File>> =
Framed::new(args.input_filename, args.color_input, args.scale)
Expand All @@ -62,8 +62,8 @@ fn simul_proc(video_path: &str, scale: f64, thread_count: u8, _chunk_rows: usize
DeltaT,
)
.unwrap();

simul_processor.run().unwrap();
let frame_max = todo!();
simul_processor.run(frame_max).unwrap();
sleep(Duration::from_secs(2));

let output_path = "./benches/run/bench_out";
Expand Down
3 changes: 2 additions & 1 deletion adder-codec-rs/src/utils/simulproc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use std::error::Error;
use std::fs::File;
use std::io;
use std::io::{BufWriter, Write};
use std::path::PathBuf;

use adder_codec_core::SourceCamera::FramedU8;
use adder_codec_core::SourceType::U8;
Expand Down Expand Up @@ -54,7 +55,7 @@ pub struct SimulProcArgs {

/// Path to input file
#[clap(short, long, default_value = "./in.mp4")]
pub input_filename: String,
pub input_filename: PathBuf,

/// Path to output events file
#[clap(long, default_value = "")]
Expand Down
Loading