Skip to content

Commit

Permalink
Extra logging for frame and row lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Mar 19, 2024
1 parent 6174d3d commit 38549df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/desktop/src-tauri/src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ impl MediaRecorder {
std::thread::spawn(move || {
let mut frame_data = Vec::with_capacity(capture_size);
let stride = w_cloned * 4;
println!("Frame length: {}", frame_clone.len());
println!("Stride: {}", stride);
let rt = tokio::runtime::Runtime::new().unwrap();

Expand All @@ -309,6 +310,8 @@ impl MediaRecorder {
for chunk in row_data.chunks_mut(4) {
chunk.swap(0, 2);
}
//print the row data length
println!("Row data length: {}", row_data.len());
frame_data.extend_from_slice(&row_data);
}

Expand Down

1 comment on commit 38549df

@vercel
Copy link

@vercel vercel bot commented on 38549df Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.