channelmix: reuse more functions

Make some copy/vol functions and reuse them.
Reuse the 2->3p1 upmix code, tweak it a little to that the widen
param is always used.
This commit is contained in:
Wim Taymans 2022-04-12 11:54:27 +02:00
parent e12e4295cf
commit 66e4334c92
3 changed files with 110 additions and 242 deletions

View file

@ -138,7 +138,6 @@ DEFINE_FUNCTION(f32_n_m, c);
DEFINE_FUNCTION(f32_1_2, c);
DEFINE_FUNCTION(f32_2_1, c);
DEFINE_FUNCTION(f32_4_1, c);
DEFINE_FUNCTION(f32_3p1_1, c);
DEFINE_FUNCTION(f32_2_4, c);
DEFINE_FUNCTION(f32_2_3p1, c);
DEFINE_FUNCTION(f32_2_5p1, c);