summaryrefslogtreecommitdiff
path: root/ext/opus/gstopuscommon.h
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-12-08 18:45:27 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-12-09 15:04:20 +0000
commitb48b3c2c86b5017502c14e32822bd19987139a07 (patch)
tree5e367538e3cf9bfbc76a09c8c4e4770287b683f1 /ext/opus/gstopuscommon.h
parent7f8adea477493ef6e534f0a5bae91cf6be920aee (diff)
downloadgstreamer-plugins-bad-b48b3c2c86b5017502c14e32822bd19987139a07.tar.gz
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
Diffstat (limited to 'ext/opus/gstopuscommon.h')
-rw-r--r--ext/opus/gstopuscommon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/opus/gstopuscommon.h b/ext/opus/gstopuscommon.h
index 65b944e9e..1fba5650d 100644
--- a/ext/opus/gstopuscommon.h
+++ b/ext/opus/gstopuscommon.h
@@ -28,6 +28,9 @@ G_BEGIN_DECLS
extern const GstAudioChannelPosition gst_opus_channel_positions[][8];
extern const char *gst_opus_channel_names[];
+extern void gst_opus_common_log_channel_mapping_table (GstElement *element,
+ GstDebugCategory * category, const char *msg,
+ int n_channels, const guint8 *table);
G_END_DECLS