This commit is contained in:
devdesk 2024-02-23 02:12:30 +02:00
parent c993f74511
commit b1a7baae19

View File

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