katyo / linux-video-rs

Thin and safe Linux V4L2 API for Rust
MIT License
5 stars 1 forks source link

Multiplanar querybuf returns Invalid Argument #7

Open FallingSnow opened 4 months ago

FallingSnow commented 4 months ago

I don't believe this library currently supports multiplanar completely. I'm trying to use a raspberry pi which only supports the multiplanar API but get Invalid Argument when trying to start a stream. A strace shows it's failing a ioctl VIDIOC_QUERYBUF call.

We seem to be missing a portion of code to set the array of planes on a buffer.

This library: https://github.com/katyo/linux-video-rs/blob/5802bee38487328dc579042deaf71ee44a589aff/core/src/impls/buffer.rs#L114-L116

v4l2r implementation: https://github.com/Gnurou/v4l2r/blob/702dff5f3b3aac330a0f4f362db5d7a69f82eabc/lib/src/ioctl/querybuf.rs#L183

katyo commented 4 months ago

@FallingSnow Currently support is planned but hasn't implemente yet.

FallingSnow commented 4 months ago

I see, thanks. I'll live this ticket open in the hope that multiplanar support will close this one day.