FFmpeg
Macros
Audio channel masks

A channel layout is a 64-bits integer with a bit set for every channel. The number of bits set must be equal to the number of channels. The value 0 means that the channel layout is not known. More...

Macros

#define AV_CH_FRONT_LEFT   (1ULL << AV_CHAN_FRONT_LEFT )
 
#define AV_CH_FRONT_RIGHT   (1ULL << AV_CHAN_FRONT_RIGHT )
 
#define AV_CH_FRONT_CENTER   (1ULL << AV_CHAN_FRONT_CENTER )
 
#define AV_CH_LOW_FREQUENCY   (1ULL << AV_CHAN_LOW_FREQUENCY )
 
#define AV_CH_BACK_LEFT   (1ULL << AV_CHAN_BACK_LEFT )
 
#define AV_CH_BACK_RIGHT   (1ULL << AV_CHAN_BACK_RIGHT )
 
#define AV_CH_FRONT_LEFT_OF_CENTER   (1ULL << AV_CHAN_FRONT_LEFT_OF_CENTER )
 
#define AV_CH_FRONT_RIGHT_OF_CENTER   (1ULL << AV_CHAN_FRONT_RIGHT_OF_CENTER)
 
#define AV_CH_BACK_CENTER   (1ULL << AV_CHAN_BACK_CENTER )
 
#define AV_CH_SIDE_LEFT   (1ULL << AV_CHAN_SIDE_LEFT )
 
#define AV_CH_SIDE_RIGHT   (1ULL << AV_CHAN_SIDE_RIGHT )
 
#define AV_CH_TOP_CENTER   (1ULL << AV_CHAN_TOP_CENTER )
 
#define AV_CH_TOP_FRONT_LEFT   (1ULL << AV_CHAN_TOP_FRONT_LEFT )
 
#define AV_CH_TOP_FRONT_CENTER   (1ULL << AV_CHAN_TOP_FRONT_CENTER )
 
#define AV_CH_TOP_FRONT_RIGHT   (1ULL << AV_CHAN_TOP_FRONT_RIGHT )
 
#define AV_CH_TOP_BACK_LEFT   (1ULL << AV_CHAN_TOP_BACK_LEFT )
 
#define AV_CH_TOP_BACK_CENTER   (1ULL << AV_CHAN_TOP_BACK_CENTER )
 
#define AV_CH_TOP_BACK_RIGHT   (1ULL << AV_CHAN_TOP_BACK_RIGHT )
 
#define AV_CH_STEREO_LEFT   (1ULL << AV_CHAN_STEREO_LEFT )
 
#define AV_CH_STEREO_RIGHT   (1ULL << AV_CHAN_STEREO_RIGHT )
 
#define AV_CH_WIDE_LEFT   (1ULL << AV_CHAN_WIDE_LEFT )
 
#define AV_CH_WIDE_RIGHT   (1ULL << AV_CHAN_WIDE_RIGHT )
 
#define AV_CH_SURROUND_DIRECT_LEFT   (1ULL << AV_CHAN_SURROUND_DIRECT_LEFT )
 
#define AV_CH_SURROUND_DIRECT_RIGHT   (1ULL << AV_CHAN_SURROUND_DIRECT_RIGHT)
 
#define AV_CH_LOW_FREQUENCY_2   (1ULL << AV_CHAN_LOW_FREQUENCY_2 )
 
#define AV_CH_TOP_SIDE_LEFT   (1ULL << AV_CHAN_TOP_SIDE_LEFT )
 
#define AV_CH_TOP_SIDE_RIGHT   (1ULL << AV_CHAN_TOP_SIDE_RIGHT )
 
#define AV_CH_BOTTOM_FRONT_CENTER   (1ULL << AV_CHAN_BOTTOM_FRONT_CENTER )
 
#define AV_CH_BOTTOM_FRONT_LEFT   (1ULL << AV_CHAN_BOTTOM_FRONT_LEFT )
 
#define AV_CH_BOTTOM_FRONT_RIGHT   (1ULL << AV_CHAN_BOTTOM_FRONT_RIGHT )
 
#define AV_CH_SIDE_SURROUND_LEFT   (1ULL << AV_CHAN_SIDE_SURROUND_LEFT )
 
#define AV_CH_SIDE_SURROUND_RIGHT   (1ULL << AV_CHAN_SIDE_SURROUND_RIGHT )
 
#define AV_CH_TOP_SURROUND_LEFT   (1ULL << AV_CHAN_TOP_SURROUND_LEFT )
 
#define AV_CH_TOP_SURROUND_RIGHT   (1ULL << AV_CHAN_TOP_SURROUND_RIGHT )
 
#define AV_CH_BINAURAL_LEFT   (1ULL << AV_CHAN_BINAURAL_LEFT )
 
#define AV_CH_BINAURAL_RIGHT   (1ULL << AV_CHAN_BINAURAL_RIGHT )
 

Detailed Description

A channel layout is a 64-bits integer with a bit set for every channel. The number of bits set must be equal to the number of channels. The value 0 means that the channel layout is not known.

Note
this data structure is not powerful enough to handle channels combinations that have the same channel multiple times, such as dual-mono.

Macro Definition Documentation

◆ AV_CH_FRONT_LEFT

#define AV_CH_FRONT_LEFT   (1ULL << AV_CHAN_FRONT_LEFT )

Definition at line 175 of file channel_layout.h.

◆ AV_CH_FRONT_RIGHT

#define AV_CH_FRONT_RIGHT   (1ULL << AV_CHAN_FRONT_RIGHT )

Definition at line 176 of file channel_layout.h.

◆ AV_CH_FRONT_CENTER

#define AV_CH_FRONT_CENTER   (1ULL << AV_CHAN_FRONT_CENTER )

Definition at line 177 of file channel_layout.h.

◆ AV_CH_LOW_FREQUENCY

#define AV_CH_LOW_FREQUENCY   (1ULL << AV_CHAN_LOW_FREQUENCY )

Definition at line 178 of file channel_layout.h.

◆ AV_CH_BACK_LEFT

#define AV_CH_BACK_LEFT   (1ULL << AV_CHAN_BACK_LEFT )

Definition at line 179 of file channel_layout.h.

◆ AV_CH_BACK_RIGHT

#define AV_CH_BACK_RIGHT   (1ULL << AV_CHAN_BACK_RIGHT )

Definition at line 180 of file channel_layout.h.

◆ AV_CH_FRONT_LEFT_OF_CENTER

#define AV_CH_FRONT_LEFT_OF_CENTER   (1ULL << AV_CHAN_FRONT_LEFT_OF_CENTER )

Definition at line 181 of file channel_layout.h.

◆ AV_CH_FRONT_RIGHT_OF_CENTER

#define AV_CH_FRONT_RIGHT_OF_CENTER   (1ULL << AV_CHAN_FRONT_RIGHT_OF_CENTER)

Definition at line 182 of file channel_layout.h.

◆ AV_CH_BACK_CENTER

#define AV_CH_BACK_CENTER   (1ULL << AV_CHAN_BACK_CENTER )

Definition at line 183 of file channel_layout.h.

◆ AV_CH_SIDE_LEFT

#define AV_CH_SIDE_LEFT   (1ULL << AV_CHAN_SIDE_LEFT )

Definition at line 184 of file channel_layout.h.

◆ AV_CH_SIDE_RIGHT

#define AV_CH_SIDE_RIGHT   (1ULL << AV_CHAN_SIDE_RIGHT )

Definition at line 185 of file channel_layout.h.

◆ AV_CH_TOP_CENTER

#define AV_CH_TOP_CENTER   (1ULL << AV_CHAN_TOP_CENTER )

Definition at line 186 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_LEFT

#define AV_CH_TOP_FRONT_LEFT   (1ULL << AV_CHAN_TOP_FRONT_LEFT )

Definition at line 187 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_CENTER

#define AV_CH_TOP_FRONT_CENTER   (1ULL << AV_CHAN_TOP_FRONT_CENTER )

Definition at line 188 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_RIGHT

#define AV_CH_TOP_FRONT_RIGHT   (1ULL << AV_CHAN_TOP_FRONT_RIGHT )

Definition at line 189 of file channel_layout.h.

◆ AV_CH_TOP_BACK_LEFT

#define AV_CH_TOP_BACK_LEFT   (1ULL << AV_CHAN_TOP_BACK_LEFT )

Definition at line 190 of file channel_layout.h.

◆ AV_CH_TOP_BACK_CENTER

#define AV_CH_TOP_BACK_CENTER   (1ULL << AV_CHAN_TOP_BACK_CENTER )

Definition at line 191 of file channel_layout.h.

◆ AV_CH_TOP_BACK_RIGHT

#define AV_CH_TOP_BACK_RIGHT   (1ULL << AV_CHAN_TOP_BACK_RIGHT )

Definition at line 192 of file channel_layout.h.

◆ AV_CH_STEREO_LEFT

#define AV_CH_STEREO_LEFT   (1ULL << AV_CHAN_STEREO_LEFT )

Definition at line 193 of file channel_layout.h.

◆ AV_CH_STEREO_RIGHT

#define AV_CH_STEREO_RIGHT   (1ULL << AV_CHAN_STEREO_RIGHT )

Definition at line 194 of file channel_layout.h.

◆ AV_CH_WIDE_LEFT

#define AV_CH_WIDE_LEFT   (1ULL << AV_CHAN_WIDE_LEFT )

Definition at line 195 of file channel_layout.h.

◆ AV_CH_WIDE_RIGHT

#define AV_CH_WIDE_RIGHT   (1ULL << AV_CHAN_WIDE_RIGHT )

Definition at line 196 of file channel_layout.h.

◆ AV_CH_SURROUND_DIRECT_LEFT

#define AV_CH_SURROUND_DIRECT_LEFT   (1ULL << AV_CHAN_SURROUND_DIRECT_LEFT )

Definition at line 197 of file channel_layout.h.

◆ AV_CH_SURROUND_DIRECT_RIGHT

#define AV_CH_SURROUND_DIRECT_RIGHT   (1ULL << AV_CHAN_SURROUND_DIRECT_RIGHT)

Definition at line 198 of file channel_layout.h.

◆ AV_CH_LOW_FREQUENCY_2

#define AV_CH_LOW_FREQUENCY_2   (1ULL << AV_CHAN_LOW_FREQUENCY_2 )

Definition at line 199 of file channel_layout.h.

◆ AV_CH_TOP_SIDE_LEFT

#define AV_CH_TOP_SIDE_LEFT   (1ULL << AV_CHAN_TOP_SIDE_LEFT )

Definition at line 200 of file channel_layout.h.

◆ AV_CH_TOP_SIDE_RIGHT

#define AV_CH_TOP_SIDE_RIGHT   (1ULL << AV_CHAN_TOP_SIDE_RIGHT )

Definition at line 201 of file channel_layout.h.

◆ AV_CH_BOTTOM_FRONT_CENTER

#define AV_CH_BOTTOM_FRONT_CENTER   (1ULL << AV_CHAN_BOTTOM_FRONT_CENTER )

Definition at line 202 of file channel_layout.h.

◆ AV_CH_BOTTOM_FRONT_LEFT

#define AV_CH_BOTTOM_FRONT_LEFT   (1ULL << AV_CHAN_BOTTOM_FRONT_LEFT )

Definition at line 203 of file channel_layout.h.

◆ AV_CH_BOTTOM_FRONT_RIGHT

#define AV_CH_BOTTOM_FRONT_RIGHT   (1ULL << AV_CHAN_BOTTOM_FRONT_RIGHT )

Definition at line 204 of file channel_layout.h.

◆ AV_CH_SIDE_SURROUND_LEFT

#define AV_CH_SIDE_SURROUND_LEFT   (1ULL << AV_CHAN_SIDE_SURROUND_LEFT )

Definition at line 205 of file channel_layout.h.

◆ AV_CH_SIDE_SURROUND_RIGHT

#define AV_CH_SIDE_SURROUND_RIGHT   (1ULL << AV_CHAN_SIDE_SURROUND_RIGHT )

Definition at line 206 of file channel_layout.h.

◆ AV_CH_TOP_SURROUND_LEFT

#define AV_CH_TOP_SURROUND_LEFT   (1ULL << AV_CHAN_TOP_SURROUND_LEFT )

Definition at line 207 of file channel_layout.h.

◆ AV_CH_TOP_SURROUND_RIGHT

#define AV_CH_TOP_SURROUND_RIGHT   (1ULL << AV_CHAN_TOP_SURROUND_RIGHT )

Definition at line 208 of file channel_layout.h.

◆ AV_CH_BINAURAL_LEFT

#define AV_CH_BINAURAL_LEFT   (1ULL << AV_CHAN_BINAURAL_LEFT )

Definition at line 209 of file channel_layout.h.

◆ AV_CH_BINAURAL_RIGHT

#define AV_CH_BINAURAL_RIGHT   (1ULL << AV_CHAN_BINAURAL_RIGHT )

Definition at line 210 of file channel_layout.h.