FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Audio channel masks
Audio related

A channel layout is a 64-bits integer with a bit set for every channel. 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.
 
#define AV_CH_STEREO_RIGHT   0x40000000
 See AV_CH_STEREO_LEFT.
 
#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.
 

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

#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

Definition at line 54 of file channel_layout.h.

Referenced by sane_layout(), and sniff_channel_order().

#define AV_CH_FRONT_LEFT_OF_CENTER   0x00000040
#define AV_CH_FRONT_RIGHT_OF_CENTER   0x00000080

Definition at line 56 of file channel_layout.h.

Referenced by sane_layout(), and sniff_channel_order().

#define AV_CH_BACK_CENTER   0x00000100
#define AV_CH_SIDE_LEFT   0x00000200
#define AV_CH_SIDE_RIGHT   0x00000400

Definition at line 59 of file channel_layout.h.

Referenced by sane_layout(), and sniff_channel_order().

#define AV_CH_TOP_CENTER   0x00000800

Definition at line 60 of file channel_layout.h.

#define AV_CH_TOP_FRONT_LEFT   0x00001000

Definition at line 61 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_TOP_FRONT_CENTER   0x00002000

Definition at line 62 of file channel_layout.h.

#define AV_CH_TOP_FRONT_RIGHT   0x00004000

Definition at line 63 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_TOP_BACK_LEFT   0x00008000

Definition at line 64 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_TOP_BACK_CENTER   0x00010000

Definition at line 65 of file channel_layout.h.

#define AV_CH_TOP_BACK_RIGHT   0x00020000

Definition at line 66 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_STEREO_LEFT   0x20000000

Stereo downmix.

Definition at line 67 of file channel_layout.h.

Referenced by mov_get_channel_label(), and sane_layout().

#define AV_CH_STEREO_RIGHT   0x40000000

See AV_CH_STEREO_LEFT.

Definition at line 68 of file channel_layout.h.

Referenced by mov_get_channel_label(), and sane_layout().

#define AV_CH_WIDE_LEFT   0x0000000080000000ULL

Definition at line 69 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_WIDE_RIGHT   0x0000000100000000ULL

Definition at line 70 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_SURROUND_DIRECT_LEFT   0x0000000200000000ULL

Definition at line 71 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_SURROUND_DIRECT_RIGHT   0x0000000400000000ULL

Definition at line 72 of file channel_layout.h.

Referenced by sane_layout().

#define AV_CH_LOW_FREQUENCY_2   0x0000000800000000ULL

Definition at line 73 of file channel_layout.h.

#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.

Referenced by dca_decode_frame(), and output_configure().