An array of #GstAudioChannelPosition.
The number of elements in pos
.
Custom fixate function. Elements that implement some sort of channel conversion algorithm should use this function for fixating on GstAudioChannelPosition properties. It will take care of equal channel positioning (left/right). Caller g_free()s the return value. The input properties may be (and are supposed to be) unfixed. Note that this function is mostly a hack because we currently have no way to add default fixation functions for new GTypes. set of #GstAudioChannelPosition values.
Retrieves a number of (fixed!) audio channel positions from the provided #GstStructure and returns it as a newly allocated array. The caller should g_free () this array. The caller should also check that the members in this #GstStructure are indeed "fixed" before calling this function. positions as provided in the given #GstStructure. Returns NULL on error.
Sets a (possibly non-fixed) list of possible audio channel positions (given in pos) on the given caps. Each of the structures of the caps, after this function has been called, will contain a "channel-positions" field with an array. Each value in the array will contain each of the values given in the pos array. Note that the size of the caps might be increased by this, since each structure with a "channel- positions" field needs to have a fixed "channels" field. The input caps is not required to have this.
#GstCaps to set the list of channel positions on.
the array containing one or more possible audio channel positions that we should add in each value of the array in the given structure.
the number of values in pos.
Adds a "channel-positions" field to the given #GstStructure, which will represent the channel positions as given in the provided #GstAudioChannelPosition array.
A #GstStructure to set channel positions on.
an array of channel positions. The number of members in this array should be equal to the (fixed!) number of the "channels" field in the given #GstStructure.
Sets a (possibly non-fixed) list of possible audio channel positions (given in pos) on the given structure. The structure, after this function has been called, will contain a "channel-positions" field with an array of the size of the "channels" field value in the given structure (note that this means that the channels field in the provided structure should be fixed!). Each value in the array will contain each of the values given in the pos array.
#GstStructure to set the list of channel positions on.
the array containing one or more possible audio channel positions that we should add in each value of the array in the given structure.
the number of values in pos.
Do not use anymore.
a #GstStructure
a set of #GstAudioFieldFlag
This functions checks if the given channel positions are valid. Channel positions are valid if:
No channel positions appears twice or all positions are %GST_AUDIO_CHANNEL_POSITION_NONE.
Either all or none of the channel positions are %GST_AUDIO_CHANNEL_POSITION_NONE.
%GST_AUDIO_CHANNEL_POSITION_FRONT_MONO and %GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT or %GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT don't appear together in the given positions.
and %FALSE otherwise.