FFmpeg
|
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"
Include dependency graph for cngdec.c:
Go to the source code of this file.
Data Structures | |
struct | CNGContext |
Typedefs | |
typedef struct CNGContext | 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 |
Typedef Documentation
typedef struct CNGContext CNGContext |
Function Documentation
|
static |
Definition at line 41 of file cngdec.c.
Referenced by cng_decode_init().
|
static |
|
static |
|
static |
|
static |
Definition at line 79 of file cngdec.c.
Referenced by cng_decode_frame().
Variable Documentation
AVCodec ff_comfortnoise_decoder |
Initial value:
= {
.name = "comfortnoise",
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_COMFORT_NOISE,
.priv_data_size = sizeof(CNGContext),
.init = cng_decode_init,
.long_name = NULL_IF_CONFIG_SMALL("RFC 3389 comfort noise generator"),
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
}
static int cng_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: cngdec.c:102
Definition: samplefmt.h:50
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
#define CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: libavcodec/avcodec.h:770
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
struct CNGContext CNGContext
Definition: avutil.h:144
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
Generated on Fri Dec 20 2024 06:56:11 for FFmpeg by 1.8.11