FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
truespeech.c File Reference

TrueSpeech decoder. More...

#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bswapdsp.h"
#include "get_bits.h"
#include "internal.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, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

AVCodec ff_truespeech_decoder
 

Detailed Description

TrueSpeech decoder.

Definition in file truespeech.c.

Function Documentation

static av_cold int truespeech_decode_init ( AVCodecContext avctx)
static

Definition at line 61 of file truespeech.c.

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

Definition at line 78 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_correlate_filter ( TSContext dec)
static

Definition at line 126 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_filters_merge ( TSContext dec)
static

Definition at line 146 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_apply_twopoint_filter ( TSContext dec,
int  quart 
)
static

Definition at line 167 of file truespeech.c.

Referenced by truespeech_decode_frame().

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

Definition at line 193 of file truespeech.c.

Referenced by truespeech_decode_frame().

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

Definition at line 236 of file truespeech.c.

Referenced by truespeech_decode_frame().

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

Definition at line 247 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_save_prevvec ( TSContext c)
static

Definition at line 298 of file truespeech.c.

Referenced by truespeech_decode_frame().

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

Definition at line 306 of file truespeech.c.

Variable Documentation

AVCodec ff_truespeech_decoder
Initial value:
= {
.name = "truespeech",
.long_name = NULL_IF_CONFIG_SMALL("DSP Group TrueSpeech"),
.priv_data_size = sizeof(TSContext),
.capabilities = CODEC_CAP_DR1,
}
static int truespeech_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: truespeech.c:306
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int truespeech_decode_init(AVCodecContext *avctx)
Definition: truespeech.c:61
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:794
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
TrueSpeech decoder context.
Definition: truespeech.c:38
static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avpkt)
Definition: ccaption_dec.c:522

Definition at line 357 of file truespeech.c.