diff options
author | Marvin Scholz <epirat07@gmail.com> | 2022-09-24 19:06:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-17 09:51:47 +0200 |
commit | f29dde49d292a4dbba0e1efaf686dda0eebdd8f1 (patch) | |
tree | 30389f8be3c25ab7f1bb36db1b61e22839acacfc /libavutil | |
parent | 6c2ae2e994290133381221e89d23f629a6ac39d4 (diff) | |
download | ffmpeg-f29dde49d292a4dbba0e1efaf686dda0eebdd8f1.tar.gz |
avutil/channel_layout: Group pre-defined channel layouts
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/channel_layout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/channel_layout.h b/libavutil/channel_layout.h index e94aeb7b8c..29b8500e04 100644 --- a/libavutil/channel_layout.h +++ b/libavutil/channel_layout.h @@ -359,6 +359,10 @@ typedef struct AVChannelLayout { #define AV_CHANNEL_LAYOUT_MASK(nb, m) \ { .order = AV_CHANNEL_ORDER_NATIVE, .nb_channels = (nb), .u = { .mask = (m) }} +/** + * @name Common pre-defined channel layouts + * @{ + */ #define AV_CHANNEL_LAYOUT_MONO AV_CHANNEL_LAYOUT_MASK(1, AV_CH_LAYOUT_MONO) #define AV_CHANNEL_LAYOUT_STEREO AV_CHANNEL_LAYOUT_MASK(2, AV_CH_LAYOUT_STEREO) #define AV_CHANNEL_LAYOUT_2POINT1 AV_CHANNEL_LAYOUT_MASK(3, AV_CH_LAYOUT_2POINT1) @@ -390,6 +394,7 @@ typedef struct AVChannelLayout { #define AV_CHANNEL_LAYOUT_22POINT2 AV_CHANNEL_LAYOUT_MASK(24, AV_CH_LAYOUT_22POINT2) #define AV_CHANNEL_LAYOUT_AMBISONIC_FIRST_ORDER \ { .order = AV_CHANNEL_ORDER_AMBISONIC, .nb_channels = 4, .u = { .mask = 0 }} +/** @} */ struct AVBPrint; |