Data Structures | Functions | Variables
cngdec.c File Reference
#include <math.h>
#include "libavutil/common.h"
#include "libavutil/ffmath.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "celp_filters.h"
#include "internal.h"
#include "libavutil/lfg.h"

Go to the source code of this file.

Data Structures

struct  CNGContext


static av_cold int cng_decode_close (AVCodecContext *avctx)
static av_cold int cng_decode_init (AVCodecContext *avctx)
static void make_lpc_coefs (float *lpc, const float *refl, int order)
static void cng_decode_flush (AVCodecContext *avctx)
static int cng_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)


AVCodec ff_comfortnoise_decoder

Function Documentation

static av_cold int cng_decode_close ( AVCodecContext avctx)

Definition at line 43 of file cngdec.c.

static av_cold int cng_decode_init ( AVCodecContext avctx)

Definition at line 54 of file cngdec.c.

static void make_lpc_coefs ( float *  lpc,
const float *  refl,
int  order 

Definition at line 80 of file cngdec.c.

Referenced by cng_decode_frame().

static void cng_decode_flush ( AVCodecContext avctx)

Definition at line 97 of file cngdec.c.

static int cng_decode_frame ( AVCodecContext avctx,
void data,
int got_frame_ptr,
AVPacket avpkt 

Definition at line 103 of file cngdec.c.

Variable Documentation

AVCodec ff_comfortnoise_decoder
Initial value:
= {
.name = "comfortnoise",
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
.priv_data_size = sizeof(CNGContext),
.close = cng_decode_close,
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static void flush(AVCodecContext *avctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
static int cng_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: cngdec.c:103
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:102
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:115
static void cng_decode_flush(AVCodecContext *avctx)
Definition: cngdec.c:97
Audio sample formats.
Definition: samplefmt.h:58
signed 16 bits
Definition: samplefmt.h:61
static av_cold int cng_decode_close(AVCodecContext *avctx)
Definition: cngdec.c:43
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:940
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50
static av_cold int cng_decode_init(AVCodecContext *avctx)
Definition: cngdec.c:54

Definition at line 164 of file cngdec.c.