katyo/linux-video-rs

Multiplanar querybuf returns Invalid Argument

FallingSnow opened this issue · 2 comments

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:

buffer.type_ = type_;
buffer.memory = memory;
buffer.index = index;

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

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

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