Libav
avresample.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 Justin Ruggles <justin.ruggles@gmail.com>
3  *
4  * This file is part of Libav.
5  *
6  * Libav is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * Libav is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with Libav; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVRESAMPLE_AVRESAMPLE_H
22 #define AVRESAMPLE_AVRESAMPLE_H
23 
96 #include "libavutil/avutil.h"
98 #include "libavutil/dict.h"
99 #include "libavutil/log.h"
100 
101 #include "libavresample/version.h"
102 
103 #define AVRESAMPLE_MAX_CHANNELS 32
104 
106 
113 };
114 
120 };
121 
129 };
130 
134 unsigned avresample_version(void);
135 
140 const char *avresample_configuration(void);
141 
145 const char *avresample_license(void);
146 
157 const AVClass *avresample_get_class(void);
158 
165 
173 
188 
197 
220 int avresample_build_matrix(uint64_t in_layout, uint64_t out_layout,
221  double center_mix_level, double surround_mix_level,
222  double lfe_mix_level, int normalize, double *matrix,
224 
237 int avresample_get_matrix(AVAudioResampleContext *avr, double *matrix,
238  int stride);
239 
258 int avresample_set_matrix(AVAudioResampleContext *avr, const double *matrix,
259  int stride);
260 
289  const int *channel_map);
290 
304 int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
305  int compensation_distance);
306 
351  int out_plane_size, int out_samples, uint8_t **input,
352  int in_plane_size, int in_samples);
353 
368 
385 
403 int avresample_read(AVAudioResampleContext *avr, uint8_t **output, int nb_samples);
404 
409 #endif /* AVRESAMPLE_AVRESAMPLE_H */