FFmpeg
Data Structures | Functions | Variables
libspeexdec.c File Reference
#include <speex/speex.h>
#include <speex/speex_header.h>
#include <speex/speex_stereo.h>
#include <speex/speex_callbacks.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  LibSpeexContext
 

Functions

static av_cold int libspeex_decode_init (AVCodecContext *avctx)
 
static int libspeex_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 
static av_cold int libspeex_decode_close (AVCodecContext *avctx)
 
static av_cold void libspeex_decode_flush (AVCodecContext *avctx)
 

Variables

const AVCodec ff_libspeex_decoder
 

Function Documentation

◆ libspeex_decode_init()

static av_cold int libspeex_decode_init ( AVCodecContext avctx)
static

Definition at line 40 of file libspeexdec.c.

◆ libspeex_decode_frame()

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

Definition at line 125 of file libspeexdec.c.

◆ libspeex_decode_close()

static av_cold int libspeex_decode_close ( AVCodecContext avctx)
static

Definition at line 176 of file libspeexdec.c.

◆ libspeex_decode_flush()

static av_cold void libspeex_decode_flush ( AVCodecContext avctx)
static

Definition at line 186 of file libspeexdec.c.

Variable Documentation

◆ ff_libspeex_decoder

const AVCodec ff_libspeex_decoder
Initial value:
= {
.name = "libspeex",
.long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
.priv_data_size = sizeof(LibSpeexContext),
.wrapper_name = "libspeex",
}

Definition at line 192 of file libspeexdec.c.

libspeex_decode_init
static av_cold int libspeex_decode_init(AVCodecContext *avctx)
Definition: libspeexdec.c:40
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
AV_CODEC_ID_SPEEX
@ AV_CODEC_ID_SPEEX
Definition: codec_id.h:457
libspeex_decode_flush
static av_cold void libspeex_decode_flush(AVCodecContext *avctx)
Definition: libspeexdec.c:186
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
flush
static void flush(AVCodecContext *avctx)
Definition: aacdec_template.c:593
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:109
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
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:117
libspeex_decode_close
static av_cold int libspeex_decode_close(AVCodecContext *avctx)
Definition: libspeexdec.c:176
LibSpeexContext
Definition: libspeexdec.c:31
AV_CODEC_CAP_DELAY
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:82
AV_CODEC_CAP_SUBFRAMES
#define AV_CODEC_CAP_SUBFRAMES
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time,...
Definition: codec.h:100
libspeex_decode_frame
static int libspeex_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: libspeexdec.c:125