Skip to main content

audio_channel_layout_from_ffmpeg

Function audio_channel_layout_from_ffmpeg 

Source
pub fn audio_channel_layout_from_ffmpeg(
    value: &ChannelLayout,
) -> AudioChannelLayout
Expand description

Builds a fully-populated AudioChannelLayout from an FFmpeg ChannelLayout.

  • Native / Ambisonic layouts populate native_mask from ChannelLayout::bits (clearing it to None if zero).
  • Custom layouts populate custom_channels from FFmpeg’s per-channel list (AVChannelLayout.u.map), with each label drawn from AVChannelCustom.name.
  • description carries the result of av_channel_layout_describe (FFmpeg’s human-readable rendering — e.g. "5.1(side)").