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   0x00000001
 
#define AV_CH_FRONT_RIGHT   0x00000002
 
#define AV_CH_FRONT_CENTER   0x00000004
 
#define AV_CH_LOW_FREQUENCY   0x00000008
 
#define AV_CH_BACK_LEFT   0x00000010
 
#define AV_CH_BACK_RIGHT   0x00000020
 
#define AV_CH_FRONT_LEFT_OF_CENTER   0x00000040
 
#define AV_CH_FRONT_RIGHT_OF_CENTER   0x00000080
 
#define AV_CH_BACK_CENTER   0x00000100
 
#define AV_CH_SIDE_LEFT   0x00000200
 
#define AV_CH_SIDE_RIGHT   0x00000400
 
#define AV_CH_TOP_CENTER   0x00000800
 
#define AV_CH_TOP_FRONT_LEFT   0x00001000
 
#define AV_CH_TOP_FRONT_CENTER   0x00002000
 
#define AV_CH_TOP_FRONT_RIGHT   0x00004000
 
#define AV_CH_TOP_BACK_LEFT   0x00008000
 
#define AV_CH_TOP_BACK_CENTER   0x00010000
 
#define AV_CH_TOP_BACK_RIGHT   0x00020000
 
#define AV_CH_STEREO_LEFT   0x20000000
 Stereo downmix. More...
 
#define AV_CH_STEREO_RIGHT   0x40000000
 See AV_CH_STEREO_LEFT. More...
 
#define AV_CH_WIDE_LEFT   0x0000000080000000ULL
 
#define AV_CH_WIDE_RIGHT   0x0000000100000000ULL
 
#define AV_CH_SURROUND_DIRECT_LEFT   0x0000000200000000ULL
 
#define AV_CH_SURROUND_DIRECT_RIGHT   0x0000000400000000ULL
 
#define AV_CH_LOW_FREQUENCY_2   0x0000000800000000ULL
 
#define AV_CH_LAYOUT_NATIVE   0x8000000000000000ULL
 Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order. More...
 

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   0x00000001

Definition at line 49 of file channel_layout.h.

◆ AV_CH_FRONT_RIGHT

#define AV_CH_FRONT_RIGHT   0x00000002

Definition at line 50 of file channel_layout.h.

◆ AV_CH_FRONT_CENTER

#define AV_CH_FRONT_CENTER   0x00000004

Definition at line 51 of file channel_layout.h.

◆ AV_CH_LOW_FREQUENCY

#define AV_CH_LOW_FREQUENCY   0x00000008

Definition at line 52 of file channel_layout.h.

◆ AV_CH_BACK_LEFT

#define AV_CH_BACK_LEFT   0x00000010

Definition at line 53 of file channel_layout.h.

◆ AV_CH_BACK_RIGHT

#define AV_CH_BACK_RIGHT   0x00000020

Definition at line 54 of file channel_layout.h.

◆ AV_CH_FRONT_LEFT_OF_CENTER

#define AV_CH_FRONT_LEFT_OF_CENTER   0x00000040

Definition at line 55 of file channel_layout.h.

◆ AV_CH_FRONT_RIGHT_OF_CENTER

#define AV_CH_FRONT_RIGHT_OF_CENTER   0x00000080

Definition at line 56 of file channel_layout.h.

◆ AV_CH_BACK_CENTER

#define AV_CH_BACK_CENTER   0x00000100

Definition at line 57 of file channel_layout.h.

◆ AV_CH_SIDE_LEFT

#define AV_CH_SIDE_LEFT   0x00000200

Definition at line 58 of file channel_layout.h.

◆ AV_CH_SIDE_RIGHT

#define AV_CH_SIDE_RIGHT   0x00000400

Definition at line 59 of file channel_layout.h.

◆ AV_CH_TOP_CENTER

#define AV_CH_TOP_CENTER   0x00000800

Definition at line 60 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_LEFT

#define AV_CH_TOP_FRONT_LEFT   0x00001000

Definition at line 61 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_CENTER

#define AV_CH_TOP_FRONT_CENTER   0x00002000

Definition at line 62 of file channel_layout.h.

◆ AV_CH_TOP_FRONT_RIGHT

#define AV_CH_TOP_FRONT_RIGHT   0x00004000

Definition at line 63 of file channel_layout.h.

◆ AV_CH_TOP_BACK_LEFT

#define AV_CH_TOP_BACK_LEFT   0x00008000

Definition at line 64 of file channel_layout.h.

◆ AV_CH_TOP_BACK_CENTER

#define AV_CH_TOP_BACK_CENTER   0x00010000

Definition at line 65 of file channel_layout.h.

◆ AV_CH_TOP_BACK_RIGHT

#define AV_CH_TOP_BACK_RIGHT   0x00020000

Definition at line 66 of file channel_layout.h.

◆ AV_CH_STEREO_LEFT

#define AV_CH_STEREO_LEFT   0x20000000

Stereo downmix.

Definition at line 67 of file channel_layout.h.

◆ AV_CH_STEREO_RIGHT

#define AV_CH_STEREO_RIGHT   0x40000000

See AV_CH_STEREO_LEFT.

Definition at line 68 of file channel_layout.h.

◆ AV_CH_WIDE_LEFT

#define AV_CH_WIDE_LEFT   0x0000000080000000ULL

Definition at line 69 of file channel_layout.h.

◆ AV_CH_WIDE_RIGHT

#define AV_CH_WIDE_RIGHT   0x0000000100000000ULL

Definition at line 70 of file channel_layout.h.

◆ AV_CH_SURROUND_DIRECT_LEFT

#define AV_CH_SURROUND_DIRECT_LEFT   0x0000000200000000ULL

Definition at line 71 of file channel_layout.h.

◆ AV_CH_SURROUND_DIRECT_RIGHT

#define AV_CH_SURROUND_DIRECT_RIGHT   0x0000000400000000ULL

Definition at line 72 of file channel_layout.h.

◆ AV_CH_LOW_FREQUENCY_2

#define AV_CH_LOW_FREQUENCY_2   0x0000000800000000ULL

Definition at line 73 of file channel_layout.h.

◆ AV_CH_LAYOUT_NATIVE

#define AV_CH_LAYOUT_NATIVE   0x8000000000000000ULL

Channel mask value used for AVCodecContext.request_channel_layout to indicate that the user requests the channel order of the decoder output to be the native codec channel order.

Definition at line 78 of file channel_layout.h.