Debayering with VPI

I’ve been digging in to the new VPI API and I’ve been looking for a way to convert a bayered image (RGGB8) to an RGB8 or BGR8 format. I can’t seem to find any bayered image formats in the VPI API.

Is there any example code or any way to debayer/demosaic a raw image with the VPI interface. It seems like most of the conversions available are between RGB/YUV/grayscale. Am I missing something? Or is the VPI API not currently capable of running an accelerated conversion from RGGB8 to RGB8/BGR8?

Hi,

There are some Bayer predefined patterns in the VPI:
https://docs.nvidia.com/vpi/group__VPI__ColorSpec.html#ga3992fdce156a7a194f8cda65571eefd5
You can also define your own pattern with the below function:
https://docs.nvidia.com/vpi/ImageFormat_8h.html#acc2f6594667a7335c440176a0e80af57

However, we don’t have a debayer/demosaic implementation currently.

Thanks.