Browse code

Add 3 channel layout convenience macros.

Originally committed as revision 18609 to svn://svn.ffmpeg.org/ffmpeg/trunk

Justin Ruggles authored on 2009/04/19 03:51:01
Showing 2 changed files
... ...
@@ -108,6 +108,7 @@ static const struct {
108 108
     { "mono",        1,  CH_LAYOUT_MONO },
109 109
     { "stereo",      2,  CH_LAYOUT_STEREO },
110 110
     { "surround",    3,  CH_LAYOUT_SURROUND },
111
+    { "4.0",         4,  CH_LAYOUT_4POINT0 },
111 112
     { "quad",        4,  CH_LAYOUT_QUAD },
112 113
     { "5.0",         5,  CH_LAYOUT_5POINT0 },
113 114
     { "5.0",         5,  CH_LAYOUT_5POINT0_BACK },
... ...
@@ -30,7 +30,7 @@
30 30
 #include "libavutil/avutil.h"
31 31
 
32 32
 #define LIBAVCODEC_VERSION_MAJOR 52
33
-#define LIBAVCODEC_VERSION_MINOR 26
33
+#define LIBAVCODEC_VERSION_MINOR 27
34 34
 #define LIBAVCODEC_VERSION_MICRO  0
35 35
 
36 36
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
... ...
@@ -380,7 +380,10 @@ enum SampleFormat {
380 380
 /* Audio channel convenience macros */
381 381
 #define CH_LAYOUT_MONO              (CH_FRONT_CENTER)
382 382
 #define CH_LAYOUT_STEREO            (CH_FRONT_LEFT|CH_FRONT_RIGHT)
383
+#define CH_LAYOUT_2_1               (CH_LAYOUT_STEREO|CH_BACK_CENTER)
383 384
 #define CH_LAYOUT_SURROUND          (CH_LAYOUT_STEREO|CH_FRONT_CENTER)
385
+#define CH_LAYOUT_4POINT0           (CH_LAYOUT_SURROUND|CH_BACK_CENTER)
386
+#define CH_LAYOUT_2_2               (CH_LAYOUT_STEREO|CH_SIDE_LEFT|CH_SIDE_RIGHT)
384 387
 #define CH_LAYOUT_QUAD              (CH_LAYOUT_STEREO|CH_BACK_LEFT|CH_BACK_RIGHT)
385 388
 #define CH_LAYOUT_5POINT0           (CH_LAYOUT_SURROUND|CH_SIDE_LEFT|CH_SIDE_RIGHT)
386 389
 #define CH_LAYOUT_5POINT1           (CH_LAYOUT_5POINT0|CH_LOW_FREQUENCY)