All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
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


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


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)


static const AVOption options []
static const AVClass amrwb_class
AVCodec ff_libvo_amrwbenc_encoder

Macro Definition 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 get_wb_bitrate_mode ( int  bitrate,
void log_ctx 

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

Referenced by amr_wb_encode_frame(), and amr_wb_encode_init().

static av_cold int amr_wb_encode_init ( AVCodecContext avctx)

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

static int amr_wb_encode_close ( AVCodecContext avctx)

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

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

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

Variable Documentation

const AVOption options[]
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 }
#define NULL
Definition: coverity.c:32
Definition: opt.h:278
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:276

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

const AVClass amrwb_class
Initial value:
= {
.class_name = "libvo_amrwbenc",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption options[]

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

AVCodec ff_libvo_amrwbenc_encoder
Initial value:
= {
.name = "libvo_amrwbenc",
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AMR-WB "
"(Adaptive Multi-Rate Wide-Band)"),
.priv_data_size = sizeof(AMRWBContext),
.encode2 = amr_wb_encode_frame,
.priv_class = &amrwb_class,
.wrapper_name = "libvo_amrwbenc",
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int amr_wb_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static const AVClass amrwb_class
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Audio sample formats.
Definition: samplefmt.h:58
signed 16 bits
Definition: samplefmt.h:61
static int amr_wb_encode_close(AVCodecContext *avctx)
static av_cold int amr_wb_encode_init(AVCodecContext *avctx)
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701

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