This commit is contained in:
devdesk 2024-02-23 02:12:30 +02:00
parent c993f74511
commit b1a7baae19
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ fn main(streamer: Arc<Mutex<Streamer>>) -> anyhow::Result<()> {
.unwrap()
.as_secs_f64();
let dt = now - start;
let cutoff = mid + f64::sin(dt / hz) * 0.5 * range;
let cutoff = mid + f64::sin(dt * hz) * 0.5 * range;
// swap the bytes, we are using LE, not BE, 16 bit grayscale
// possibly limitation of current v4l2loopback or v4l rust wrapper or libv4l2
for i in 0..FRAME_LEN / 2 {