De-bayering using nvivafilter

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

appsrc ===============> nvivafilter ==========================> omxh265enc

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

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


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