There's no need to do any of that, a table of function pointers to DSP functions works fine.
It can be useful to duplicate the entire code for 8-bit vs 10-bit pixels because that does affect nearly everything.
There's no need to do any of that, a table of function pointers to DSP functions works fine.
It can be useful to duplicate the entire code for 8-bit vs 10-bit pixels because that does affect nearly everything.