Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Jan 8, 2025
1 parent 62cfcc4 commit 4620bc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/kornia-io/src/stream/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ impl StreamCapture {
.map_err(|_| StreamCaptureError::LockError)?;

last_frame.take().map_or(Ok(None), |frame_buffer| {
// TODO: solve the zero copy issue
// https://discourse.gstreamer.org/t/zero-copy-video-frames/3856/2
let img = Image::<u8, 3>::new(
[frame_buffer.width, frame_buffer.height].into(),
frame_buffer.buffer.to_owned(),
Expand Down

0 comments on commit 4620bc9

Please sign in to comment.