IntelRealSense / realsense_mipi_platform_driver

Intel® RealSense™ camera driver for GMSL* interface
GNU General Public License v2.0
15 stars 14 forks source link

Rectify Metadata size in the NVCSI driver and its internal allocation… #106

Closed ev-mp closed 2 years ago

ev-mp commented 2 years ago

The internal buffer max size is set to be 255 instead of 256 bytes. The insonsistency was producing segfault when using mmap files to enquie/dequeu kernel buffers. The actual size temporally aligned to 68 bytes as required by MIPI metadata. Bumping the version to 1.0.1.9. Tracked on : DSO-18197

xzhangxa commented 2 years ago

Could you point me to the UVC spec where it mentions the metadata size requirement? As the original JetPack kernel code shows the metadata width is configurable or just the frame width and metadata height is 1. So it's that just UVC requires the metadata size no more than 255?

dmipx commented 2 years ago

the length is u8, so maximum value is 255 for length in UVC payload header https://www.kernel.org/doc/html/v5.5/media/uapi/v4l/pixfmt-meta-uvc.html