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?


There are some Bayer predefined patterns in the VPI:
You can also define your own pattern with the below function:

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