libavcodec/libvo-amrwbenc.c File Reference

#include <vo-amrwbenc/enc_if.h>
#include <stdio.h>
#include <stdlib.h>
#include "libavutil/avstring.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AMRWBContext

Defines

#define MAX_PACKET_SIZE   (1 + (477 + 7) / 8)

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, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)

Variables

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


Define Documentation

#define MAX_PACKET_SIZE   (1 + (477 + 7) / 8)

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

Referenced by amr_wb_encode_frame().


Function Documentation

static int amr_wb_encode_close ( AVCodecContext avctx  )  [static]

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

static int amr_wb_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int got_packet_ptr 
) [static]

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

static av_cold int amr_wb_encode_init ( AVCodecContext avctx  )  [static]

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

static int get_wb_bitrate_mode ( int  bitrate,
void *  log_ctx 
) [static]

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

Referenced by amr_wb_encode_frame(), and amr_wb_encode_init().


Variable Documentation

const { ... } [static]

av_default_item_name

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

Referenced by av_parse_cpu_caps(), and av_parse_cpu_flags().

Initial value:

 {
    .name           = "libvo_amrwbenc",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = AV_CODEC_ID_AMR_WB,
    .priv_data_size = sizeof(AMRWBContext),
    .init           = amr_wb_encode_init,
    .encode2        = amr_wb_encode_frame,
    .close          = amr_wb_encode_close,
    .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
                                                     AV_SAMPLE_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("Android VisualOn AMR-WB "
                                           "(Adaptive Multi-Rate Wide-Band)"),
    .priv_class     = &class,
}

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

Definition at line 49 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, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM },
    { NULL }
}

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


Generated on Fri Oct 26 02:50:06 2012 for FFmpeg by  doxygen 1.5.8