Use 4 CPU for Multithreading using C in xavier NX

What’s your camera output format?
If bayer below can be reference.