#include "avcodec.h"
#include <amrnb/interf_dec.h>
#include <amrnb/interf_enc.h>
Go to the source code of this file.
Data Structures | |
struct | AMR_bitrates |
Functions | |
static int | getBitrateMode (int bitrate) |
static void | amr_decode_fix_avctx (AVCodecContext *avctx) |
Variables | |
static const char | nb_bitrate_unsupported [] |
static const char | wb_bitrate_unsupported [] |
This code implements both an AMR-NarrowBand (AMR-NB) and an AMR-WideBand (AMR-WB) audio encoder/decoder through external reference code from http://www.3gpp.org/. The license of the code from 3gpp is unclear so you have to download the code separately. Two versions exists: One fixed-point and one floating-point. For some reason the float encoder is significantly faster at least on a P4 1.5GHz (0.9s instead of 9.9s on a 30s audio clip at MR102). Both float and fixed point are supported for AMR-NB, but only float for AMR-WB.
Definition in file libamr.c.
static void amr_decode_fix_avctx | ( | AVCodecContext * | avctx | ) | [static] |
const char nb_bitrate_unsupported[] [static] |
const char wb_bitrate_unsupported[] [static] |