Files
Ayoub Nabil Boubagrat 5c395992f9 swresample/rematrix: handle top-back channels
top-back channels are currently left unaccounted and can be dropped during downmixing.

when the output retains top-front channels, follow IAMF 1.1.0 and fold top-back into top-front at 0.707. prefer this path over ear-level rear channels to preserve the height layer in x.1.4 to x.1.2 downmixes.

when no matching height output remains, map top-back to back or side channels, then fall back to front or mono outputs. handle top-back center separately and add direct tests for every matrix path.

Signed-off-by: Ayoub Nabil Boubagrat <237098474+ayoubnabil@users.noreply.github.com>
2026-08-07 02:33:33 +00:00

30 lines
945 B
Makefile

NAME = swresample
DESC = FFmpeg audio resampling library
FFLIBS = avutil
HEADERS = swresample.h \
version.h \
version_major.h \
OBJS = audioconvert.o \
dither.o \
options.o \
rematrix.o \
resample.o \
resample_dsp.o \
swresample.o \
swresample_frame.o \
version.o \
OBJS-$(CONFIG_LIBSOXR) += soxr_resample.o
# Objects duplicated from other libraries for shared builds
SHLIBOBJS += log2_tab.o
# Windows resource file
SHLIBOBJS-$(HAVE_GNU_WINDRES) += swresampleres.o
TESTPROGS = rematrix \
swresample \
swresample_resample_realloc \