FFmpeg
Data Structures | Functions | Variables
truespeech.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "truespeech_data.h"

Go to the source code of this file.

Data Structures

struct  TSContext
 TrueSpeech decoder context. More...
 

Functions

static av_cold int truespeech_decode_init (AVCodecContext *avctx)
 
static void truespeech_read_frame (TSContext *dec, const uint8_t *input)
 
static void truespeech_correlate_filter (TSContext *dec)
 
static void truespeech_filters_merge (TSContext *dec)
 
static void truespeech_apply_twopoint_filter (TSContext *dec, int quart)
 
static void truespeech_place_pulses (TSContext *dec, int16_t *out, int quart)
 
static void truespeech_update_filters (TSContext *dec, int16_t *out, int quart)
 
static void truespeech_synth (TSContext *dec, int16_t *out, int quart)
 
static void truespeech_save_prevvec (TSContext *c)
 
static int truespeech_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

const FFCodec ff_truespeech_decoder
 

Detailed Description

TrueSpeech decoder.

Definition in file truespeech.c.

Function Documentation

◆ truespeech_decode_init()

static av_cold int truespeech_decode_init ( AVCodecContext avctx)
static

Definition at line 63 of file truespeech.c.

◆ truespeech_read_frame()

static void truespeech_read_frame ( TSContext dec,
const uint8_t *  input 
)
static

Definition at line 81 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_correlate_filter()

static void truespeech_correlate_filter ( TSContext dec)
static

Definition at line 129 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_filters_merge()

static void truespeech_filters_merge ( TSContext dec)
static

Definition at line 148 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_apply_twopoint_filter()

static void truespeech_apply_twopoint_filter ( TSContext dec,
int  quart 
)
static

Definition at line 169 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_place_pulses()

static void truespeech_place_pulses ( TSContext dec,
int16_t *  out,
int  quart 
)
static

Definition at line 195 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_update_filters()

static void truespeech_update_filters ( TSContext dec,
int16_t *  out,
int  quart 
)
static

Definition at line 238 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_synth()

static void truespeech_synth ( TSContext dec,
int16_t *  out,
int  quart 
)
static

Definition at line 249 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_save_prevvec()

static void truespeech_save_prevvec ( TSContext c)
static

Definition at line 300 of file truespeech.c.

Referenced by truespeech_decode_frame().

◆ truespeech_decode_frame()

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

Definition at line 308 of file truespeech.c.

Variable Documentation

◆ ff_truespeech_decoder

const FFCodec ff_truespeech_decoder
Initial value:
= {
.p.name = "truespeech",
CODEC_LONG_NAME("DSP Group TrueSpeech"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(TSContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 358 of file truespeech.c.

truespeech_decode_init
static av_cold int truespeech_decode_init(AVCodecContext *avctx)
Definition: truespeech.c:63
truespeech_decode_frame
static int truespeech_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt)
Definition: truespeech.c:308
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
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
TSContext
TrueSpeech decoder context.
Definition: truespeech.c:40
AV_CODEC_ID_TRUESPEECH
@ AV_CODEC_ID_TRUESPEECH
Definition: codec_id.h:463