cngenc.c File Reference
#include <math.h>
#include "libavutil/common.h"
#include "avcodec.h"
#include "internal.h"
#include "lpc.h"
Include dependency graph for cngenc.c:

Go to the source code of this file.

Data Structures

struct  CNGContext
 

Typedefs

typedef struct CNGContext CNGContext
 

Functions

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)
 

Variables

AVCodec ff_comfortnoise_encoder
 

Typedef Documentation

typedef struct CNGContext CNGContext

Function Documentation

static av_cold int cng_encode_close ( AVCodecContext avctx)
static

Definition at line 36 of file cngenc.c.

Referenced by cng_encode_init().

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

Definition at line 69 of file cngenc.c.

static av_cold int cng_encode_init ( AVCodecContext avctx)
static

Definition at line 45 of file cngenc.c.

Variable Documentation

AVCodec ff_comfortnoise_encoder
Initial value:
= {
.name = "comfortnoise",
.priv_data_size = sizeof(CNGContext),
.encode2 = cng_encode_frame,
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
signed 16 bits
Definition: samplefmt.h:52
struct CNGContext CNGContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static av_cold int cng_encode_close(AVCodecContext *avctx)
Definition: cngenc.c:36
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: cngenc.c:69
AVSampleFormat
Audio Sample Formats.
Definition: samplefmt.h:49
static av_cold int cng_encode_init(AVCodecContext *avctx)
Definition: cngenc.c:45

Definition at line 105 of file cngenc.c.