00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AVUTIL_AUDIOCONVERT_H
00023 #define AVUTIL_AUDIOCONVERT_H
00024
00025 #include <stdint.h>
00026
00032
00033 #define AV_CH_FRONT_LEFT 0x00000001
00034 #define AV_CH_FRONT_RIGHT 0x00000002
00035 #define AV_CH_FRONT_CENTER 0x00000004
00036 #define AV_CH_LOW_FREQUENCY 0x00000008
00037 #define AV_CH_BACK_LEFT 0x00000010
00038 #define AV_CH_BACK_RIGHT 0x00000020
00039 #define AV_CH_FRONT_LEFT_OF_CENTER 0x00000040
00040 #define AV_CH_FRONT_RIGHT_OF_CENTER 0x00000080
00041 #define AV_CH_BACK_CENTER 0x00000100
00042 #define AV_CH_SIDE_LEFT 0x00000200
00043 #define AV_CH_SIDE_RIGHT 0x00000400
00044 #define AV_CH_TOP_CENTER 0x00000800
00045 #define AV_CH_TOP_FRONT_LEFT 0x00001000
00046 #define AV_CH_TOP_FRONT_CENTER 0x00002000
00047 #define AV_CH_TOP_FRONT_RIGHT 0x00004000
00048 #define AV_CH_TOP_BACK_LEFT 0x00008000
00049 #define AV_CH_TOP_BACK_CENTER 0x00010000
00050 #define AV_CH_TOP_BACK_RIGHT 0x00020000
00051 #define AV_CH_STEREO_LEFT 0x20000000
00052 #define AV_CH_STEREO_RIGHT 0x40000000
00053
00054
00057 #define AV_CH_LAYOUT_NATIVE 0x8000000000000000LL
00058
00059
00060 #define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER)
00061 #define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT)
00062 #define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER)
00063 #define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER)
00064 #define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER)
00065 #define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
00066 #define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
00067 #define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT)
00068 #define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY)
00069 #define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
00070 #define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY)
00071 #define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
00072 #define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT)
00073 #define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER)
00074 #define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT)
00075
00079 int64_t av_get_channel_layout(const char *name);
00080
00088 void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);
00089
00093 int av_get_channel_layout_nb_channels(int64_t channel_layout);
00094
00095 #endif