[FFmpeg-cvslog] avutil/channel_layout: Group pre-defined channel layouts
Marvin Scholz
git at videolan.org
Mon Oct 17 11:00:36 EEST 2022
ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Sep 24 19:06:30 2022 +0200| [f29dde49d292a4dbba0e1efaf686dda0eebdd8f1] | committer: Anton Khirnov
avutil/channel_layout: Group pre-defined channel layouts
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f29dde49d292a4dbba0e1efaf686dda0eebdd8f1
---
libavutil/channel_layout.h | 5 +++++
1 file changed, 5 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list