audio_get_channel_reorder_map
Description:
[ CCode ( cname = "gst_audio_get_channel_reorder_map" ) ]
public bool audio_get_channel_reorder_map (ChannelPosition[] from, ChannelPosition[] to, int[] reorder_map)
public bool audio_get_channel_reorder_map (ChannelPosition[] from, ChannelPosition[] to, int[] reorder_map)
Returns a reorder map for from
to to
that can be used in custom channel reordering code, e.g. to convert from or to
the GStreamer channel order.
from
and to
must contain the same number of positions and the same positions, only in a different order.
The resulting reorder_map
can be used for reordering by assigning channel i of the input to channel reorder_map[i] of the output.
Parameters:
from |
The channel positions to reorder from. |
to |
The channel positions to reorder to. |
reorder_map |
Pointer to the reorder map. |
channels |
The number of channels. |
Returns:
|
Namespace: Gst.Audio
Package: gstreamer-audio-1.0