Commit 877d6fae authored by Mathieu Duponchelle's avatar Mathieu Duponchelle
Browse files

[API]: gst_audio_channel_mixer_new_with_matrix

+ Refactor previous constructor to call on that new constructor

+ Reimplement is_passthrough to strictly check whether the matrix
  is an identity matrix, comparing channel-masks was incorrect:
  the mixer may be remixing from a list of positions to the same
  list of positions, but ordered differently, and reciprocally,
  the mixer may be remixing from a list of positions to another
  list of positions identically ordered

+ Remove unused tmp field, must have been a refactoring leftover

https://bugzilla.gnome.org/show_bug.cgi?id=785471
parent 7a407b69
......@@ -581,6 +581,7 @@ gst_audio_channel_positions_to_string
GstAudioChannelMixer
GstAudioChannelMixerFlags
gst_audio_channel_mixer_new
gst_audio_channel_mixer_new_with_matrix
gst_audio_channel_mixer_free
gst_audio_channel_mixer_is_passthrough
gst_audio_channel_mixer_samples
......
This diff is collapsed.
......@@ -54,6 +54,13 @@ GstAudioChannelMixer * gst_audio_channel_mixer_new (GstAudioChannelMixerFlags
gint out_channels,
GstAudioChannelPosition *out_position);
GST_EXPORT
GstAudioChannelMixer * gst_audio_channel_mixer_new_with_matrix (GstAudioChannelMixerFlags flags,
GstAudioFormat format,
gint in_channels,
gint out_channels,
gfloat **matrix);
GST_EXPORT
void gst_audio_channel_mixer_free (GstAudioChannelMixer *mix);
......
......@@ -33,6 +33,7 @@ EXPORTS
gst_audio_channel_mixer_free
gst_audio_channel_mixer_is_passthrough
gst_audio_channel_mixer_new
gst_audio_channel_mixer_new_with_matrix
gst_audio_channel_mixer_samples
gst_audio_channel_position_get_type
gst_audio_channel_positions_from_mask
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment