De-bayering using nvivafilter

Is it possible to perform debayaring using nvivafilter or something similar to that? I’m hoping for something like:

---------video/x-bayer----------------video/x-raw(memory:NVMM)-------------
appsrc ===============> nvivafilter ==========================> omxh265enc

Inspecting nvivafilter caps, this does not look possible. Is there another way of achieving this?

Hi,
nvivafilter supports only YUV420 input format. For de-bayering, You may implement the algorithm via CUDA.

tegra_multimedia_api\samples\v4l2cuda

Above tegra_multimedia_api sample demonstrates how to get buffers via v4l2. For your reference.