I am trying to use NvBufSurf::NvAllocate to store RAW10 image data (V4L2_PIX_FMT_SGRBG10). For the allocated colorFormat parameter, I selected a format that maintains the same pitch (3840 for an image width of 1920). However, only NVBUF_COLOR_FORMAT_YUYV family meets these conditions.
When I used this format, I encountered the following error:
you may using Applications Using V4L2 IOCTL Directly to store RAW10 image data.
for instance, $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1200,pixelformat=BA10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw
but… you still need hardware engine to do demosaic, right?
you may refer to Argus sample app, such as argus_demosaicOutput, which is added RGBA output support to ISP pipeline, it demonstrate the CVOutput capability.
please execute $ sudo apt install nvidia-l4t-jetson-multimedia-api to install MMAPI package.