All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
cngenc.c File Reference
#include <math.h>
#include "libavutil/common.h"
#include "avcodec.h"
#include "internal.h"
#include "lpc.h"

Go to the source code of this file.

Data Structures

struct  CNGContext


static av_cold int cng_encode_close (AVCodecContext *avctx)
static av_cold int cng_encode_init (AVCodecContext *avctx)
static int cng_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)


AVCodec ff_comfortnoise_encoder

Function Documentation

static av_cold int cng_encode_close ( AVCodecContext avctx)

Definition at line 36 of file cngenc.c.

Referenced by cng_encode_init().

static av_cold int cng_encode_init ( AVCodecContext avctx)

Definition at line 45 of file cngenc.c.

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

Definition at line 69 of file cngenc.c.

Variable Documentation

AVCodec ff_comfortnoise_encoder
Initial value:
= {
.name = "comfortnoise",
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
.priv_data_size = sizeof(CNGContext),
.encode2 = cng_encode_frame,
.close = cng_encode_close,
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static av_cold int cng_encode_close(AVCodecContext *avctx)
Definition: cngenc.c:36
Audio sample formats.
Definition: samplefmt.h:58
static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: cngenc.c:69
signed 16 bits
Definition: samplefmt.h:61
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
static av_cold int cng_encode_init(AVCodecContext *avctx)
Definition: cngenc.c:45

Definition at line 105 of file cngenc.c.