Revision e0b67c76

View differences:

libavcodec/amr.c
18 18
 * License along with FFmpeg; if not, write to the Free Software
19 19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
 */
21
 /*
22
    This code implements amr-nb and amr-wb audio encoder/decoder through external reference
23
    code from www.3gpp.org. The license of the code from 3gpp is unclear so you
24
    have to download the code separately. Two versions exists: One fixed-point
25
    and one with floats. For some reason the float-encoder is significant faster
26
    at least on a P4 1.5GHz (0.9s instead of 9.9s on a 30s audio clip at MR102).
27
    Both float and fixed point are supported for amr-nb, but only float for
28
    amr-wb.
29

  
30
    --AMR-NB--
31
    The fixed-point (TS26.073) can be downloaded from:
32
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-510.zip
33
    Extract the source into ffmpeg/libavcodec/amr
34
    To use the fixed version run "./configure" with "--enable-amr_nb-fixed"
35

  
36
    The float version (default) can be downloaded from:
37
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
38
    Extract the source into ffmpeg/libavcodec/amr_float
39

  
40
    The specification for amr-nb can be found in TS 26.071
41
    (http://www.3gpp.org/ftp/Specs/html-info/26071.htm) and some other
42
    info at http://www.3gpp.org/ftp/Specs/html-info/26-series.htm
43

  
44
    --AMR-WB--
45
    The reference code can be downloaded from:
46
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
47
    It should be extracted to "libavcodec/amrwb_float". Enable it with
48
    "--enable-amr_wb".
49

  
50
    The specification for amr-wb can be downloaded from:
51
    http://www.3gpp.org/ftp/Specs/archive/26_series/26.171/26171-500.zip
52

  
53
    If someone wants to use the fixed point version it can be downloaded
54
    from: http://www.3gpp.org/ftp/Specs/archive/26_series/26.173/26173-571.zip
55 21

  
22
 /** @file
23
 * Adaptive Multi-Rate (AMR) Audio decoder stub.
24
 *
25
 * This code implements both an AMR-NarrowBand (AMR-NB) and an AMR-WideBand
26
 * (AMR-WB) audio encoder/decoder through external reference code from
27
 * http://www.3gpp.org/. The license of the code from 3gpp is unclear so you
28
 * have to download the code separately. Two versions exists: One fixed-point
29
 * and one with floats. For some reason the float-encoder is significant faster
30
 * at least on a P4 1.5GHz (0.9s instead of 9.9s on a 30s audio clip at MR102).
31
 * Both float and fixed point are supported for AMR-NB, but only float for
32
 * AMR-WB.
33
 *
34
 * \section AMR-NB
35
 *
36
 * \subsection Float
37
 * The float version (default) can be downloaded from:
38
 * http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
39
 * Extract the source into \c "ffmpeg/libavcodec/amr_float".
40
 *
41
 * \subsection Fixed-point
42
 * The fixed-point (TS26.073) can be downloaded from:
43
 * http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-510.zip.
44
 * Extract the source into \c "ffmpeg/libavcodec/amr".
45
 * To use the fixed version run \c "./configure" with \c "--enable-amr_nb-fixed".
46
 *
47
 * \subsection Specification
48
 * The specification for AMR-NB can be found in TS 26.071
49
 * (http://www.3gpp.org/ftp/Specs/html-info/26071.htm) and some other
50
 * info at http://www.3gpp.org/ftp/Specs/html-info/26-series.htm.
51
 *
52
 * \section AMR-WB
53
 * \subsection Float
54
 * The reference code can be downloaded from:
55
 * http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
56
 * It should be extracted to \c "ffmpeg/libavcodec/amrwb_float". Enable it with
57
 * \c "--enable-amr_wb".
58
 *
59
 * \subsection Fixed-point
60
 * If someone wants to use the fixed point version it can be downloaded from:
61
 * http://www.3gpp.org/ftp/Specs/archive/26_series/26.173/26173-571.zip.
62
 *
63
 * \subsection Specification
64
 * The specification for AMR-WB can be downloaded from:
65
 * http://www.3gpp.org/ftp/Specs/archive/26_series/26.171/26171-500.zip.
66
 *
56 67
 */
57 68

  
58 69
#include "avcodec.h"

Also available in: Unified diff