FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
cngdec.c File Reference
#include <math.h>
#include "libavutil/common.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
 

Functions

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)
 

Variables

AVCodec ff_comfortnoise_decoder
 

Function Documentation

static av_cold int cng_decode_close ( AVCodecContext avctx)
static

Definition at line 41 of file cngdec.c.

Referenced by cng_decode_init().

static av_cold int cng_decode_init ( AVCodecContext avctx)
static

Definition at line 52 of file cngdec.c.

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

Definition at line 79 of file cngdec.c.

Referenced by cng_decode_frame().

static void cng_decode_flush ( AVCodecContext avctx)
static

Definition at line 96 of file cngdec.c.

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

Definition at line 102 of file cngdec.c.

Variable Documentation

AVCodec ff_comfortnoise_decoder
Initial value:
= {
.name = "comfortnoise",
.priv_data_size = sizeof(CNGContext),
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
}

Definition at line 160 of file cngdec.c.