FFmpeg
Data Structures | Macros | Functions | Variables
nellymoserdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/lfg.h"
#include "libavutil/random_seed.h"
#include "avcodec.h"
#include "fft.h"
#include "get_bits.h"
#include "internal.h"
#include "nellymoser.h"
#include "sinewin.h"

Go to the source code of this file.

Data Structures

struct  NellyMoserDecodeContext
 

Macros

#define BITSTREAM_READER_LE
 

Functions

static void nelly_decode_block (NellyMoserDecodeContext *s, const unsigned char block[NELLY_BLOCK_LEN], float audio[NELLY_SAMPLES])
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static int decode_tag (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_nellymoser_decoder
 

Detailed Description

The 3 alphanumeric copyright notices are md5summed they are from the original implementors. The original code is available from http://code.google.com/p/nelly2pcm/

Definition in file nellymoserdec.c.

Macro Definition Documentation

◆ BITSTREAM_READER_LE

#define BITSTREAM_READER_LE

Definition at line 39 of file nellymoserdec.c.

Function Documentation

◆ nelly_decode_block()

static void nelly_decode_block ( NellyMoserDecodeContext s,
const unsigned char  block[NELLY_BLOCK_LEN],
float  audio[NELLY_SAMPLES] 
)
static

Definition at line 60 of file nellymoserdec.c.

Referenced by decode_tag().

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 115 of file nellymoserdec.c.

◆ decode_tag()

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

Definition at line 141 of file nellymoserdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 190 of file nellymoserdec.c.

Variable Documentation

◆ ff_nellymoser_decoder

AVCodec ff_nellymoser_decoder
Initial value:
= {
.name = "nellymoser",
.long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"),
.priv_data_size = sizeof(NellyMoserDecodeContext),
.close = decode_end,
}

Definition at line 199 of file nellymoserdec.c.

init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: nellymoserdec.c:115
sample_fmts
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:686
decode_tag
static int decode_tag(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: nellymoserdec.c:141
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
NellyMoserDecodeContext
Definition: nellymoserdec.c:48
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: nellymoserdec.c:190
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:981
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:59
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
AV_CODEC_CAP_PARAM_CHANGE
#define AV_CODEC_CAP_PARAM_CHANGE
Codec supports changed parameters at any point.
Definition: avcodec.h:1045
AV_SAMPLE_FMT_FLT
@ AV_SAMPLE_FMT_FLT
float
Definition: samplefmt.h:63
AV_CODEC_ID_NELLYMOSER
@ AV_CODEC_ID_NELLYMOSER
Definition: avcodec.h:597