libavcodec/libopencore-amr.c File Reference

#include "avcodec.h"
#include <opencore-amrnb/interf_dec.h>
#include <opencore-amrnb/interf_enc.h>
#include <opencore-amrwb/dec_if.h>
#include <opencore-amrwb/if_rom.h>

Go to the source code of this file.

Data Structures

struct  AMR_bitrates
struct  AMRContext
struct  AMRWB_bitrates
struct  AMRWBContext

Functions

static void amr_decode_fix_avctx (AVCodecContext *avctx)
static int getBitrateMode (int bitrate)
static av_cold int amr_nb_decode_init (AVCodecContext *avctx)
static av_cold int amr_nb_decode_close (AVCodecContext *avctx)
static int amr_nb_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int amr_nb_encode_init (AVCodecContext *avctx)
static av_cold int amr_nb_encode_close (AVCodecContext *avctx)
static int amr_nb_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static av_cold int amr_wb_decode_init (AVCodecContext *avctx)
static int amr_wb_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static int amr_wb_decode_close (AVCodecContext *avctx)

Variables

static const char nb_bitrate_unsupported []
AVCodec libopencore_amrnb_decoder
AVCodec libopencore_amrnb_encoder
static const char wb_bitrate_unsupported []
AVCodec libopencore_amrwb_decoder


Function Documentation

static void amr_decode_fix_avctx ( AVCodecContext avctx  )  [static]

Definition at line 24 of file libopencore-amr.c.

Referenced by amr_nb_decode_init(), and amr_wb_decode_init().

static av_cold int amr_nb_decode_close ( AVCodecContext avctx  )  [static]

Definition at line 101 of file libopencore-amr.c.

static int amr_nb_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 109 of file libopencore-amr.c.

static av_cold int amr_nb_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 80 of file libopencore-amr.c.

static av_cold int amr_nb_encode_close ( AVCodecContext avctx  )  [static]

Definition at line 187 of file libopencore-amr.c.

static int amr_nb_encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void *  data 
) [static]

Definition at line 196 of file libopencore-amr.c.

static av_cold int amr_nb_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 154 of file libopencore-amr.c.

static int amr_wb_decode_close ( AVCodecContext avctx  )  [static]

Definition at line 305 of file libopencore-amr.c.

static int amr_wb_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 275 of file libopencore-amr.c.

static av_cold int amr_wb_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 258 of file libopencore-amr.c.

static int getBitrateMode ( int  bitrate  )  [static]

Definition at line 53 of file libopencore-amr.c.

Referenced by amr_nb_encode_frame(), and amr_nb_encode_init().


Variable Documentation

Initial value:

 {
    "libopencore_amrnb",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_AMR_NB,
    sizeof(AMRContext),
    amr_nb_decode_init,
    NULL,
    amr_nb_decode_close,
    amr_nb_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"),
}

Definition at line 142 of file libopencore-amr.c.

Initial value:

 {
    "libopencore_amrnb",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_AMR_NB,
    sizeof(AMRContext),
    amr_nb_encode_init,
    amr_nb_encode_frame,
    amr_nb_encode_close,
    NULL,
    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
    .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"),
}

Definition at line 216 of file libopencore-amr.c.

Initial value:

 {
    "libopencore_amrwb",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_AMR_WB,
    sizeof(AMRWBContext),
    amr_wb_decode_init,
    NULL,
    amr_wb_decode_close,
    amr_wb_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Wide-Band"),
}

Definition at line 313 of file libopencore-amr.c.

const char nb_bitrate_unsupported[] [static]

Initial value:

    "bitrate not supported: use one of 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k\n"

Definition at line 43 of file libopencore-amr.c.

Referenced by amr_nb_encode_frame(), and amr_nb_encode_init().

const char wb_bitrate_unsupported[] [static]

Initial value:

    "bitrate not supported: use one of 6.6k, 8.85k, 12.65k, 14.25k, 15.85k, 18.25k, 19.85k, 23.05k, or 23.85k\n"

Definition at line 242 of file libopencore-amr.c.


Generated on Tue Apr 20 17:39:34 2010 for FFmpeg by  doxygen 1.5.6