1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-19 14:26:57 +00:00
mpv/audio
wm4 015a7638fb audio: redo channel map fallback selection
Instead of somehow having 4 different cases with each their own weight,
do it with a single function that decides which channel layout is the
better fallback.

This is simpler, and also introduces new (fixed) semantics. The new test
added to test/chmap_sel.c actually works now. This is a mixed case with
no perfect upmix or downmix, but the better choice is the one which
loses the least channels from the original layout.

One test also changes. If the input is 7.1(wide-side), and the available
layouts are 7.1 and 5.1(side), the latter is now chosen instead of the
former. This makes sense: both layouts contain 6 out of 8 channels from
the original layout, but the 5.1(side) one is smaller. This follows the
general logic. The 7.1 layout has FLC/RLC speakers instead of BL/BR,
and judging by the names, "front left center" is completely different
from "back left". If these should be exchangeable, a separate exception
would have to be added.

(cherry picked from commit 3560a50029)
2015-05-09 21:14:15 +09:00
..
decode player: change video-bitrate and audio-bitrate properties 2015-04-20 20:52:16 +02:00
filter af: don't attempt to remove last filter for spdif filter removal 2015-05-07 10:51:30 +09:00
out audio: define only a single NA speaker ID 2015-05-09 21:13:21 +09:00
audio_buffer.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
audio_buffer.h audio: add mp_audio_buffer 2013-11-12 23:28:21 +01:00
audio.c audio: introduce mp_audio readonly bit 2015-05-07 10:46:53 +09:00
audio.h audio: introduce mp_audio readonly bit 2015-05-07 10:46:53 +09:00
chmap_sel.c audio: redo channel map fallback selection 2015-05-09 21:14:15 +09:00
chmap_sel.h chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap.c audio: remove UNKNOWN pseudo speakers 2015-05-09 21:13:52 +09:00
chmap.h audio: remove UNKNOWN pseudo speakers 2015-05-09 21:13:52 +09:00
fmt-conversion.c Update license headers 2015-04-13 12:10:01 +02:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
format.c Update license headers 2015-04-13 12:10:01 +02:00
format.h audio: minor cosmetics 2015-05-07 10:50:59 +09:00
mixer.c Update license headers 2015-04-13 12:10:01 +02:00
mixer.h Update license headers 2015-04-13 12:10:01 +02:00