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 "codec_internal.h"
#include "decode.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, AVFrame *frame, 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 FFCodec ff_libspeex_decoder
 

Function Documentation

◆ libspeex_decode_init()

static av_cold int libspeex_decode_init ( AVCodecContext avctx)
static

Definition at line 41 of file libspeexdec.c.

◆ libspeex_decode_frame()

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

Definition at line 127 of file libspeexdec.c.

◆ libspeex_decode_close()

static av_cold int libspeex_decode_close ( AVCodecContext avctx)
static

Definition at line 177 of file libspeexdec.c.

◆ libspeex_decode_flush()

static av_cold void libspeex_decode_flush ( AVCodecContext avctx)
static

Definition at line 187 of file libspeexdec.c.

Variable Documentation

◆ ff_libspeex_decoder

const FFCodec ff_libspeex_decoder
Initial value:
= {
.p.name = "libspeex",
CODEC_LONG_NAME("libspeex Speex"),
.p.type = AVMEDIA_TYPE_AUDIO,
.p.capabilities =
AV_CODEC_CAP_SUBFRAMES |
.p.wrapper_name = "libspeex",
.priv_data_size = sizeof(LibSpeexContext),
}

Definition at line 193 of file libspeexdec.c.

libspeex_decode_init
static av_cold int libspeex_decode_init(AVCodecContext *avctx)
Definition: libspeexdec.c:41
FF_CODEC_CAP_NOT_INIT_THREADSAFE
#define FF_CODEC_CAP_NOT_INIT_THREADSAFE
The codec is not known to be init-threadsafe (i.e.
Definition: codec_internal.h:35
AV_CODEC_ID_SPEEX
@ AV_CODEC_ID_SPEEX
Definition: codec_id.h:476
libspeex_decode_flush
static av_cold void libspeex_decode_flush(AVCodecContext *avctx)
Definition: libspeexdec.c:187
libspeex_decode_frame
static int libspeex_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: libspeexdec.c:127
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
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:368
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
libspeex_decode_close
static av_cold int libspeex_decode_close(AVCodecContext *avctx)
Definition: libspeexdec.c:177
LibSpeexContext
Definition: libspeexdec.c:32
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:76