Mercurial > libavcodec.hg
comparison avcodec.h @ 10515:0655a0dd3c74 libavcodec
Add CH_LAYOUT_NATIVE channel mask value to allow user to request native codec
channel order from the decoder rather than the default FFmpeg channel order.
| author | jbr |
|---|---|
| date | Tue, 10 Nov 2009 21:53:22 +0000 |
| parents | bea92d25f53e |
| children | d7ac0d3ddd95 |
comparison
equal
deleted
inserted
replaced
| 10514:368f82f6e2e3 | 10515:0655a0dd3c74 |
|---|---|
| 28 | 28 |
| 29 #include <errno.h> | 29 #include <errno.h> |
| 30 #include "libavutil/avutil.h" | 30 #include "libavutil/avutil.h" |
| 31 | 31 |
| 32 #define LIBAVCODEC_VERSION_MAJOR 52 | 32 #define LIBAVCODEC_VERSION_MAJOR 52 |
| 33 #define LIBAVCODEC_VERSION_MINOR 37 | 33 #define LIBAVCODEC_VERSION_MINOR 38 |
| 34 #define LIBAVCODEC_VERSION_MICRO 1 | 34 #define LIBAVCODEC_VERSION_MICRO 1 |
| 35 | 35 |
| 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ | 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |
| 37 LIBAVCODEC_VERSION_MINOR, \ | 37 LIBAVCODEC_VERSION_MINOR, \ |
| 38 LIBAVCODEC_VERSION_MICRO) | 38 LIBAVCODEC_VERSION_MICRO) |
| 384 #define CH_TOP_BACK_LEFT 0x00008000 | 384 #define CH_TOP_BACK_LEFT 0x00008000 |
| 385 #define CH_TOP_BACK_CENTER 0x00010000 | 385 #define CH_TOP_BACK_CENTER 0x00010000 |
| 386 #define CH_TOP_BACK_RIGHT 0x00020000 | 386 #define CH_TOP_BACK_RIGHT 0x00020000 |
| 387 #define CH_STEREO_LEFT 0x20000000 ///< Stereo downmix. | 387 #define CH_STEREO_LEFT 0x20000000 ///< Stereo downmix. |
| 388 #define CH_STEREO_RIGHT 0x40000000 ///< See CH_STEREO_LEFT. | 388 #define CH_STEREO_RIGHT 0x40000000 ///< See CH_STEREO_LEFT. |
| 389 | |
| 390 /** Channel mask value used for AVCodecContext.request_channel_layout | |
| 391 to indicate that the user requests the channel order of the decoder output | |
| 392 to be the native codec channel order. */ | |
| 393 #define CH_LAYOUT_NATIVE 0x8000000000000000LL | |
| 389 | 394 |
| 390 /* Audio channel convenience macros */ | 395 /* Audio channel convenience macros */ |
| 391 #define CH_LAYOUT_MONO (CH_FRONT_CENTER) | 396 #define CH_LAYOUT_MONO (CH_FRONT_CENTER) |
| 392 #define CH_LAYOUT_STEREO (CH_FRONT_LEFT|CH_FRONT_RIGHT) | 397 #define CH_LAYOUT_STEREO (CH_FRONT_LEFT|CH_FRONT_RIGHT) |
| 393 #define CH_LAYOUT_2_1 (CH_LAYOUT_STEREO|CH_BACK_CENTER) | 398 #define CH_LAYOUT_2_1 (CH_LAYOUT_STEREO|CH_BACK_CENTER) |
