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/mem_internal.h"
#include "libavutil/tx.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.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, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec 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 40 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 62 of file nellymoserdec.c.

Referenced by decode_tag().

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 117 of file nellymoserdec.c.

◆ decode_tag()

static int decode_tag ( AVCodecContext avctx,
AVFrame frame,
int got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 147 of file nellymoserdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 185 of file nellymoserdec.c.

Variable Documentation

◆ ff_nellymoser_decoder

const FFCodec ff_nellymoser_decoder
Initial value:
= {
.p.name = "nellymoser",
CODEC_LONG_NAME("Nellymoser Asao"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(NellyMoserDecodeContext),
.close = decode_end,
.p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT,
}

Definition at line 194 of file nellymoserdec.c.

decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: nellymoserdec.c:117
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
NellyMoserDecodeContext
Definition: nellymoserdec.c:49
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: nellymoserdec.c:185
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:106
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:56
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
decode_tag
static int decode_tag(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: nellymoserdec.c:147
AV_CODEC_CAP_PARAM_CHANGE
#define AV_CODEC_CAP_PARAM_CHANGE
Codec supports changed parameters at any point.
Definition: codec.h:118
AV_SAMPLE_FMT_FLT
@ AV_SAMPLE_FMT_FLT
float
Definition: samplefmt.h:60
AV_CODEC_ID_NELLYMOSER
@ AV_CODEC_ID_NELLYMOSER
Definition: codec_id.h:473