• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

debian/tmp/usr/include/libavutil/audioconvert.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
00003  * Copyright (c) 2008 Peter Ross
00004  *
00005  * This file is part of FFmpeg.
00006  *
00007  * FFmpeg is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * FFmpeg is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with FFmpeg; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 
00022 #ifndef AVUTIL_AUDIOCONVERT_H
00023 #define AVUTIL_AUDIOCONVERT_H
00024 
00025 #include <stdint.h>
00026 
00032 /* Audio channel masks */
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  ///< Stereo downmix.
00052 #define AV_CH_STEREO_RIGHT           0x40000000  ///< See AV_CH_STEREO_LEFT.
00053 
00057 #define AV_CH_LAYOUT_NATIVE          0x8000000000000000LL
00058 
00059 /* Audio channel convenience macros */
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 /* AVUTIL_AUDIOCONVERT_H */

Generated on Fri Feb 22 2013 07:24:24 for FFmpeg by  doxygen 1.7.1