audioconvert.h
Go to the documentation of this file.
1 /*
2  * audio conversion
3  * Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
4  * Copyright (c) 2008 Peter Ross
5  *
6  * This file is part of Libav.
7  *
8  * Libav is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * Libav is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with Libav; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_AUDIOCONVERT_H
24 #define AVCODEC_AUDIOCONVERT_H
25 
32 #include "libavutil/cpu.h"
33 #include "avcodec.h"
34 #include "libavutil/audioconvert.h"
35 
36 #if FF_API_OLD_SAMPLE_FMT
37 
41 void avcodec_sample_fmt_string(char *buf, int buf_size, int sample_fmt);
42 
47 const char *avcodec_get_sample_fmt_name(int sample_fmt);
48 
53 enum AVSampleFormat avcodec_get_sample_fmt(const char* name);
54 #endif
55 
56 #if FF_API_OLD_AUDIOCONVERT
57 
61 int64_t avcodec_get_channel_layout(const char *name);
62 
67 void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);
68 
73 int avcodec_channel_layout_num_channels(int64_t channel_layout);
74 #endif
75 
83 uint64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
84 
85 struct AVAudioConvert;
87 
99  enum AVSampleFormat in_fmt, int in_channels,
100  const float *matrix, int flags);
101 
106 
116  void * const out[6], const int out_stride[6],
117  const void * const in[6], const int in_stride[6], int len);
118 
119 #endif /* AVCODEC_AUDIOCONVERT_H */