opus: properly create channel mapping tables
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 8 Dec 2011 18:45:27 +0000 (18:45 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 9 Dec 2011 15:04:20 +0000 (15:04 +0000)
commitb48b3c2c86b5017502c14e32822bd19987139a07
tree5e367538e3cf9bfbc76a09c8c4e4770287b683f1
parent7f8adea477493ef6e534f0a5bae91cf6be920aee
opus: properly create channel mapping tables

There are two of them, unintuitively enough; the one passed
to the encoder should not be the one that gets written to the
file. The former maps the input to an ordering which puts
paired channels first, while the latter moves the channels
to Vorbis order. So add code to calculate both, and we now
have properly paired channels where appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=665078
ext/opus/gstopuscommon.c
ext/opus/gstopuscommon.h
ext/opus/gstopusdec.c
ext/opus/gstopusenc.c
ext/opus/gstopusenc.h
ext/opus/gstopusheader.c
ext/opus/gstopusheader.h
ext/opus/gstopusparse.c