[FFmpeg-devel] [PATCH] [RFC] channel_layout: add support for ambisonics
cus at passwd.hu
Thu Nov 29 23:55:37 EET 2018
On Thu, 29 Nov 2018, Rostislav Pehlivanov wrote:
> This is an RFC to add support for tagging channel layouts as ambisonics
> in a backward-compatible way.
> For now ambisonics up to third order are supported.
> The functions have been updated to support and propagate the
> AV_CH_LAYOUT_AMBISONICS flag.
> This is messy but does not require a new API for layouts. Perhaps the
> new proposed API might be a better solution, comments are welcome.
> doc/APIchanges | 4 ++
> libavutil/channel_layout.c | 85 +++++++++++++++++++++-----------------
> libavutil/channel_layout.h | 19 ++++++++-
> libavutil/version.h | 4 +-
> 4 files changed, 72 insertions(+), 40 deletions(-)
Using separate channel_layout bits for each (up to 16) ambisonic channel
seems a lot cleaner.
More information about the ffmpeg-devel