libvo-amrwbenc.c File Reference
#include <vo-amrwbenc/enc_if.h>
#include "avcodec.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  AMRWBContext

Typedefs

typedef struct AMRWBContext AMRWBContext

Functions

static int get_wb_bitrate_mode (int bitrate, void *log_ctx)
static av_cold int amr_wb_encode_init (AVCodecContext *avctx)
static int amr_wb_encode_close (AVCodecContext *avctx)
static int amr_wb_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)

Variables

static const AVOption options []
class {
      libvo_amrwbenc
      av_default_item_name
      options
}; 
AVCodec ff_libvo_amrwbenc_encoder

Typedef Documentation

typedef struct AMRWBContext AMRWBContext

Function Documentation

static int amr_wb_encode_close ( AVCodecContext avctx)
static

Definition at line 96 of file libvo-amrwbenc.c.

static int amr_wb_encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void data 
)
static

Definition at line 105 of file libvo-amrwbenc.c.

static av_cold int amr_wb_encode_init ( AVCodecContext avctx)
static

Definition at line 71 of file libvo-amrwbenc.c.

static int get_wb_bitrate_mode ( int  bitrate,
void log_ctx 
)
static

Definition at line 45 of file libvo-amrwbenc.c.

Referenced by amr_wb_encode_frame(), and amr_wb_encode_init().

Variable Documentation

const { ... }
av_default_item_name

Definition at line 42 of file libvo-amrwbenc.c.

AVCodec ff_libvo_amrwbenc_encoder
Initial value:
{
.name = "libvo_amrwbenc",
.priv_data_size = sizeof(AMRWBContext),
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn Adaptive Multi-Rate "
"(AMR) Wide-Band"),
.priv_class = &class,
}

Definition at line 120 of file libvo-amrwbenc.c.

libvo_amrwbenc

Definition at line 42 of file libvo-amrwbenc.c.

Referenced by avcodec_register_all().

options
static
Initial value:
{
{ "dtx", "Allow DTX (generate comfort noise)", 0x42, AV_OPT_TYPE_INT, { 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM },
{ NULL }
}

Definition at line 36 of file libvo-amrwbenc.c.