FFmpeg
|
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 |
Definition at line 36 of file cngenc.c.
Referenced by cng_encode_init().
|
static |
|
static |
Variable Documentation
AVCodec ff_comfortnoise_encoder |
Initial value:
= {
.name = "comfortnoise",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_COMFORT_NOISE,
.priv_data_size = sizeof(CNGContext),
.init = cng_encode_init,
.encode2 = cng_encode_frame,
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
}
Definition: samplefmt.h:50
struct CNGContext CNGContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: avutil.h:144
static int cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: cngenc.c:69
Generated on Fri Dec 20 2024 06:56:11 for FFmpeg by 1.8.11